TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

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.

share|improve this question
Welsome to TeX.SE. Btw., nice minimal working example (MWE)! – Svend Tveskæg Apr 10 '13 at 17:19
+1 for a MWE illustrating the point. – kan Apr 10 '13 at 17:41

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.

share|improve this answer
Perfect, thanks! – user28818 Apr 10 '13 at 17:18

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.