When in displaystyle mode, using \varprojlim_{i \in I}^{1}
gives
However, I want to look more like
The above can be obtained by {\varprojlim_{i \in I}}^{1}
but I was wondering if there's some way to create a command (say, \limit
) such that \limit_{i \in I}^{1}
would give the desired result.
MWE:
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{equation*}
\varprojlim_{i \in I}^{1} \text{ vs. } {\varprojlim_{i \in I}}^{1}
\end{equation*}
\end{document}
Best Answer
You want that the subscript is centered on
\varprojlim
, without taking into account the exponent, so some measuring is necessary.I suggest to use a different name, such as
\invlim
for the operator. I also provide a modified\varprojlim
where the arrow is smaller.This only works in display style. If requested, we can make it to work also in text style, with the subscript on the side.
The “x” in front is just used to show the correct spacing.