I tried to align the equation and have some text on the equal sign. But it turns out that the equal sign that has text over it is no longer aligned to previous one anymore (I believe it is the text "ccc" that is aligned). How do I fix the problem to let the equal sign aligned but not text over it?

    a  &= b \\        
       &= e\\

You can use the mathtools package and the command \mathclap, which gives the text a width of 0, center aligned:

 & \overset{\mathclap{ccc}}{=}d\\
| improve this answer | |

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