Why doesn't the following code align the two equations in the middle?
It does only if I remove the alignment on the left.
\begin{align*}
&ABC &= ABC - AB\\
&ABCD &= ABC - ABCDEFG
\end{align*}
align
Why doesn't the following code align the two equations in the middle?
It does only if I remove the alignment on the left.
\begin{align*}
&ABC &= ABC - AB\\
&ABCD &= ABC - ABCDEFG
\end{align*}
Best Answer
An
align
oralign*
environment is a set ofrl
column pairs, with a wide space between each pair.You want to use
alignat
, which does the same, but adds no space between pairs of columns.With
\begin{alignat*}{2}
you allocate four columns, in the formrlrl
, so you want&
to get into thel
column and&&
to get in the nextl
column; note that cells inl
columns have an automatic{}
inserted so as to give correct spacing for the relation or operation symbols.