How can I achieve this?
Example 1: a = b b = c
Example 2: this equation is way longer than the others
Example 1: c = d e = f
All three lines are in a single align
environment, but I can't manage to get it right, using &&
I always get
Example 1: a = b b = c
Example 2: this equation is way longer than the others
Example 1: c = d e = f
because of the long second equation?
My code:
\begin{align*}
& Example 1: && a = b && b = c \\
& Example 2: && \text{this equation is way longer than the others} \\
& Example 1: && c = d && e = f
\end{align*}
Best Answer
Here are three possibilities, either with
align*
or withalignat*
(to have full control on the columns spacing. Also, I think, it would look better if the align environment started at the left margin, which can be done locally with thefleqn
environment fromnccmath
. Furthermore, the distance from the left margin where the environment starts can be set as an optional argument offleqn
: