I have a strange problem when typesetting sums, integrals etc. with long limits. Using the \mathclap
command from mathtools
, I want to type something like this
$ A = \int\limits_{\text{a very long limit that would look prettier with mathclap}}^\infty \mathrm{d} x x^2 $
(unfortunately mathclap isn't supported here it seems). However, anytime I try to use {\mathclap{...}}
, like in this example
\documentclass[a4paper,10pt]{scrartcl}
\usepackage{amssymb,amsmath}
\usepackage[utf8]{inputenc}
\usepackage{mathtools}
\begin{document}
\[
\Delta \varphi = 2 \int_{\mathclap{0(\frac{b}{r} \to 0 as r \to \infty)}}^{w_1} d w \left( 1 - w^2 \left( 1 - \frac{2M}{b} w \right) \right)^{-\frac{1}{2}}
\]
\end{document}
all I get is something like this
No error codes or warnings are shown, it just doesn't render the lower limit, and I have no idea why. I'm using MiKTeX and TeXMaker on a Windows 10 machine. Normally I use pdfLaTeX to compile my .tex-files, but I've also tried XeLaTeX, to no avail.
\documentclass
etc... people willing too help will have faster go at copying pasting rather than recreating the whole mess, even if short.\dif
.pdflatex
although the result is ugly. Thus, please check if your MikTeX install is up-to-date.as
appearing as math