Sign up ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Separate long math text under sum symbol into different lines?

I'm trying to write a math formula like this:

\sum_{ \frac{n=0}{(n+k-i) \text{~even}} }^{k-i}

This looks just as I want it, but I don't want the bar between n=0 and (n+k-i) text.

enter image description here

I tried using the matrix env,

\sum_{ \begin{matrix}{n=0}\\{(n+k-i) \text{~even}}\end{matrix} }^{k-i}

enter image description here

But that looks really bad, because the (n+k-i) text is too large.

share|improve this question

marked as duplicate by yo', Gonzalo Medina, egreg, lockstep, Jake Sep 3 '12 at 18:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I think you want substack there's quite a few very similar question on this site, like separate-long-math-text-under-sum-symbol-into-different-lines. Let us know if it's not a duplicate :) – cmhughes Sep 3 '12 at 17:57
There is an answer using genfrac, basically \genfrac{}{}{0pt}{}{x}{y} – bobobobo Feb 2 '13 at 22:16
Another solution is to use a minipage with limited width – bobobobo Feb 2 '13 at 22:33

1 Answer 1



\sum_{\substack{n=0\\ (n+k-i) \rm{~even}}}^{k-i}

maybe this is what you want to achieve.

share|improve this answer

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