When subscript in the expression \int\limits_{some stuff}
is large, it seems that LaTeX underestimates the space occupied by the subscript which leads to the wrong placement of e.g. \left\lvert
(vertical line touches the subscript, with no spacing in between). The issue is absent when \sum
is used instead of \int
, and the spacing on the left side looks good in this case. Similarly, using underbrace
on \int\limits_{some stuff}
creates a bracket shifted by around a millimeter to the right which again looks weird. As before, everything works well for \sum
instead of \int\limits
. Why is it so and how can the behavior of \int\limits
be fixed?
MWE:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[\left\lvert\int\limits_{0000000}\right\rvert\]
\[\underbrace{\int\limits_{0000000}}\]
\[\left\lvert\sum_{0000000}\right\rvert\]
\[\left\lvert\sum\limits_{0000000}\right\rvert\] %\limits doesn't impact \sum behavior as expected
\[\underbrace{\sum_{0000000}}\]
\end{document}