Lets say I want to sum over i \in S
and i \in T
. Currently I use:
\displaystyle \sum_{i \in S, i \in T} i
But this will display the sum-overs one after the other and not one above the other like I want.
How can I do this?
thanks
\atop
doesn't give the right spacing. You should use amsmath
and use \substack
:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\sum_{i \in S \atop i \in T} i
\end{equation}
\begin{equation}
\sum_{\substack{i \in S\\ i \in T}} i
\end{equation}
\end{document}
The results, first with \atop
on the left and \substack
on the right:
And then one above the other, first \atop
:
limits using atop http://www.astro.virginia.edu/~as8ca/SO/atop.png
then \substack
:
limits using substack http://www.astro.virginia.edu/~as8ca/SO/substack.png
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With