8
votes
3answers
83 views

Spacing for subscripts in mathmode with \textcolor

It is possible to use \textcolor in math-mode; however, it changes the spacing of subscripts. \documentclass{article} \usepackage[usenames]{xcolor} \begin{document} $Y_i$ vs $\textcolor{red}{Y}_i$ vs ...
5
votes
2answers
149 views

Colored sub and super-scripts are misaligned

The title basically describes the problem. Here is a minimal example: \documentclass{article} \usepackage{xcolor} \begin{document} $$X_{\color{red}{135}}^{\color{cyan}{345}}$$ \end{document} ...