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.


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).

  • 4
    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? – user4686 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

  • 1
    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 – user2478 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


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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