1

Normally, we can use \limits to put something under a math operator. However, when I declare a new math operator, \limits seems not working. Here's the code:

\documentclass[10pt]{article}
\usepackage{amsmath}
\DeclareMathOperator{\colim}{colim}

\begin{document}
$\colim\limits_U$\qquad$\lim\limits_U$
\end{document}

The code gives:

enter image description here

Which part should I change to make \limits works for \colim?

3
  • You need to use \DeclareMathOperator*{\colim}{colim} Commented Sep 11 at 22:04
  • @mbert Your method works, thanks a lot. By the way, may I ask what are the differences between \DeclareMathOperator* and \DeclareMathOperator? Commented Sep 11 at 22:06
  • See the amsmath documentation Commented Sep 11 at 22:07

1 Answer 1

2

You should just use the starred version of \DeclareMathOperator.

\documentclass[10pt]{article}
\usepackage{amsmath}
\DeclareMathOperator*{\colim}{colim}

\begin{document}
$\colim\limits_U$\qquad$\lim\limits_U$
\end{document}

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.