Take the 2-minute tour ×
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.

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"?

share|improve this question
    
this is very like the question how-can-i-break-an-align-environment-for-a-paragraph –  barbara beeton Jun 25 '12 at 16:50
    
Welcome to TeX.SE. For future questions, please keep in mind that while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages. –  Peter Grill Jun 25 '12 at 18:40
add comment

1 Answer

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

share|improve this answer
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
add comment

Your Answer

 
discard

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.