TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a question on how is it possible to create a \sum with two lower limits directly positioned right underneath each other. I have tried hard and cant seem to get anywhere with it.

share|improve this question
up vote 18 down vote accepted

I like it better when the i and j are aligned:

This is done by \mathrlap and \mathclap (see this TuGboat article). The article describes the use of some new macro's, including:


add these to your preamble (or load the mathtools package) and you can do something like this:

\sum\limits_{\substack{\mathllap{1\le} i \mathrlap{\le 10} \\ \mathllap{1 \le} j \mathrlap{\le 5}}}^\infty x^i y^j

which produces, in my opinion, a far superior result:


Note that I've added the upper limit \inftyas an example, although I don't see how i and j would be smaller than 10 of 5 and still run up to ininity (ah well, it's just an example).

share|improve this answer
maybe it should also be said that the \mathclap etc... macros (or some slightly improved version of them, according to the doc) are available via the mathtools package? – jfbu May 1 '11 at 7:53
ok yes, I didn't know that myself (I only skimmed the article once), great tip! – romeovs May 1 '11 at 7:56

  \sum_{\substack{1 \le i \le 10\\ 1 \le j \le 5}}^\infty x^{i} y^{j} \qquad
  \sum_{\mathclap{\substack{1 \le i \le 10\\ 1 \le j \le 5}}}^\infty x^{i} y^{j}


enter image description here

see also http://www.ctan.org/info/math/voss/mathmode/Mathmode.pdf

share|improve this answer
Thanks a ton. I never knew of this command. Could you please edit your answer to show how to also inlcude the top limit, say "infinity". – night owl May 1 '11 at 6:00
@night owl: it is done as usual, see edit – Herbert May 1 '11 at 6:30
you didn't update the image, so perhaps mention that \infty will indeed appear. – Bruno Le Floch May 1 '11 at 6:52

Use \substack, as in


  \sum_{\substack{1 \le i \le 10\\ 1 \le j \le 5}} x^{i} y^{j}


which produces: enter image description here

share|improve this answer
Thank You. Looks good. – night owl May 1 '11 at 6:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.