How do you remove unnecessary horizontal space in an amsmath align environment between two &?




Version 1:
a &= b = d\\ 
bb &= cc = d 

Version 2:
a &= b &= d\\ 
bb &= cc &= d 


I want all the equal signs to line up. I could do manual spacing, but thats a horrible solution.

I apologize if this a repost: I cannot find this answer anywhere.


you should use the alignat environment, which removes the space between the pairs of left and right hand sides. Skipping the left hand side of the second equation gives the result :

a &= b &&= d\\ 
bb &= cc &&= d 

See for instance this question for a more detailed explanation.

|improve this answer|||||

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.