The below snippet, within an equation array environment, gives the subsequent rendering:


Without color

But when I add color to the snippet (using the color package) as below (adding line breaks here to facilitate legibility) in the same environment I get the subsequent bit of unpleasantness:


With color

I get this whether or not I include the color codes for the super and subscripts prior to the ^ and _ or within the subsequent {}s.

1 Why am I getting this discrepancy?

2 Can I easily correct it in my code using these packages?

3 Is this a bug?

And here is a full document to illustrate:




A \color instruction inserts an empty math formula which makes it impossible for the subscript to be attached to the preceding atom.

Use \textcolor instead, whenever possible.





enter image description here

Never ever use eqnarray: see eqnarray vs align

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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