I have multiple align
environments in my document, separated by a small paragraph of text:
\begin{align*}
foo &= something very very long compared to the other align
\end{align*}
explanation what I shall do now
\begin{align*}
foo' &= foo + short
\end{align*}
As the text in the second align
is considerably shorter, the =
signs don't line up, which is to be expected.
Is there some way to make the two equals signs line up with eachother?
Best Answer
From the
amsmath
documentation:So your example would be:
The
breqn
package also has this capability via itsdsuspend
environment.(Added in edit) From the comments, there appear to be a few different ways to achieve this effect. So to help with choosing, here's a sample of all those that I'm aware of. Anyone who knows more is welcome to either add directly to this answer or to make a comment and then I'll add it. Here's the result:
and here's the code that produced it: