TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

If you compile what's below, you'll observe a slight horizontal misalignment between the equations of aligned versus align. Is there a way to avoid that?

share|improve this question
up vote 6 down vote accepted

This is bizarre, but fixable. The control of the aligned environment in the amsmath package is governed by the command \start@aligned. In amsmath.sty, the start of this command resembles:

    \savecolumn@ % Assumption: called inside a group

The problem is the use of \null\, which adds a (spurious) \thinspace after \null, causing the misalignment. Use the etoolbox package's \patchcmd to fix/patch this. Try


in your preamble after loading amsmath:

Corrected aligned and align environments of amsmath

share|improve this answer
thanks, I'll try that. Do you think it is a bug in the amsmath package? What about modifying it? – pluton Aug 24 '11 at 20:15
The \patchcmd command modifies during compilation, but doesn't change it in the original file amsmath.sty. To modify this in future releases, I would suggest submitting it as a possible bug by clicking on the Technical Support address on the AMS website, or send an email to tech-support@ams.org. – Werner Aug 24 '11 at 20:19
sounds like it is a bug. They'll try to provide a solution or at least investigate, as soon as possible, as they say. Thanks! – pluton Aug 26 '11 at 19:43
I do not understand why they do not correct this bug? Why don't they update amsmath.sty on CTAN? Strange. – pluton May 7 '14 at 5:13

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.