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?


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

  • 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
  • 2
    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 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.