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.

I have a problem with the subscript under the sum,

\sum_{i \in X} \sum_{i \in \bar{X}}

for example gives the subscript at different heights for each sum. Does anyone know how to fix this?

share|improve this question
1  
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. –  Kurt Oct 12 '12 at 11:34

2 Answers 2

up vote 22 down vote accepted

This can be solved using the mathtools package and its command \adjustlimits:

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
  \adjustlimits\sum_{i \in X}\sum_{i \in \bar{X}}
\]
\end{document}

enter image description here

share|improve this answer

Vertical adjustments are also possible via \vphantom:

enter image description here

\documentclass{article}
\begin{document}
\[
  \sum_{i \in X}\sum_{i \in \bar{X}} \quad \mbox{compared to} \quad
  \sum_{i \in X\vphantom{\bar{X}}}\sum_{i \in \bar{X}}
\]
\end{document}\end{document}​
share|improve this answer

Your Answer

 
discard

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.