Take the 2-minute tour ×
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 want to write expression \sum_{i=0}^n i with i\neq 4 under the summation symbol. How can I write this?

share|improve this question
@Werner: Yep that has a better answer as well. –  Peter Grill Nov 5 '12 at 6:34
add comment

marked as duplicate by Werner, Peter Grill, lockstep, Thorsten, zeroth Nov 5 '12 at 7:32

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.

1 Answer

up vote 9 down vote accepted

You can use \substack:

enter image description here

If this is desired in inline math you can use \limits to obtain the limits underneath the summation symbol:

enter image description here

However this is not recommended as it may not look good depending on how much adjacent text there is as it will affect interline spacing.


  \sum_{\substack{i=0 \\ i\neq 4}}^n i

In inline math: $\sum_{\substack{i=0 \\ i\neq 4}}^n i$, or
$\sum\limits_{\substack{i=0 \\ i\neq 4}}^n i$
share|improve this answer
add comment

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