tags:

views:

181

answers:

2

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

+2  A: 

I don't understand the formula you are trying to typeset, but maybe this is what you want?

\sum_{i \in S \atop i \in T} i
Charles Stewart
+4  A: 

\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 result from \atop:

limits using atop

The result from \substack:

limits using substack

Alok