1

I'm using the align environment to align some equations, and I would like to insert some comments between them. The problem is that I'm using & to align the equals, and because my comments don't contain some, they make the equations shift to the right.

For example :

\begin{align*}
   1 &=& 3 - 2 \\
   \text{And because 2 = 1 + 1} \\
     &=& 3 - 1 - 1
 \end{align*}

Okay, this is a stupid example but the problem is the equals will be aligned after the comment "and because...". Do you have any idea of how I could tell LaTeX to "ignore" the comment and make it "float"?

David Carlisle
  • 757,742
Armael
  • 11

1 Answers1

3

Use \intertext in place of \text. See page 7 of the amsmath package documentation.

Ian Thompson
  • 43,767
  • 1
    and if \intertext leave too much space above and below, mathtools have a shorter version: \shortintertext. One useful biproduct of both, a page break is allowed at both inserted texts – daleif Jun 25 '12 at 15:01