LaTeX command mathclap in mathtools package removes spaces between sum symbol and equation

If a subscript is too long, the spacing around the sum symbol is automatically adjusted by the subscript.

\[
\sum_{
    \substack{
        n \in \Lambda \\
        0 < i < \frac{\sqrt{n}}{2} + \sin n + n^{2p}
    }
} f_{n} (a_{i})

\[ \sum_{ \substack{ n \in \Lambda \\ 0 \lt i \lt \frac{\sqrt{n}}{2} + \sin n + n^{2p} } } f_{n} (a_{i}) \]

The command \mathclap in mathtools package fixes that issue and the additional spacing between the sum and equation disappears.

\[
\sum_{
    \mathclap{
        \substack{
            n \in \Lambda \\
            0 < i < \frac{\sqrt{n}}{2} + \sin n + n^{2p}
        }
    }
} f_{n} (a_{i})
\]

\[ \sum_{ \mathclap{ \substack{ n \in \Lambda \\ 0 \lt i \lt \frac{\sqrt{n}}{2} + \sin n + n^{2p} } } } f_{n} (a_{i}) \]

Comments

Powered by Markdown