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 was wanting to know how is it possible to create a math symbol in color to position correctly. I have used the following but the top limit does not center properly. Sorry for the verbage as I don't know how to word the question precise and clearly. Here is a mwe of the problem:



\[ \sum_{\color{red} m=0}^{\color{red}{\infty}}  \]


Which produces the following below:

enter image description here

share|improve this question
up vote 10 down vote accepted

Use \textcolor instead, such as

\[ \sum_{\textcolor{red}{m=0}}^{\textcolor{red}{\infty}}  \]

color in math example

\color is a switch / declaration, it requires grouping to limit its effect such as by additional curly braces. \textcolor affects just its argument and works for math as well.

share|improve this answer
Thanks. Seems like I did that but not for both. I thought since color worked for the lower limit I could leave that alone and alter the top limit by doing this. \[ \sum_{\color{red}{m=0}^{\textcolor{red}{\infty}} \]. But I see now that does not work :) Thanks for the quick response. – night owl Aug 10 '11 at 10:16

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.