In this code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\begin{document}
\begin{align*}
&A B = C \qquad &D E = F \qquad &G H = I \qquad &K L M = N \\
&A B C = D \qquad &E F G = H \qquad &I J K = L M
\end{align*}
\end{document}
why is the first column aligned on left, the second on right, and the third on left?
How to have them always aligned on left (possibly by using align*
, or a built-in environment but no new package)?
&
's on each line is the2n-1
wheren
is the number of alignment columns. So if there are 2 alignments we have 3&
's and thus four coulumns alignedright
,left
(that's the first alignment pair), then&
to separate the pair, then againleft
,right
aligned (this is the second alignment pair). So on and so forth. You have four alignment columns here (you really should align on the=
, it makes it easier to see what is going on. So you should have 7&
on each row, but you only have 4 (you are missing the&
's that separates the pairs)=
so there really isn't any alignment needed here at all, so I would not usealign
or if you intended to align the=
use the usual, intended, markupA B &= C
not&A B = C
which is making an equation with no left hand side.