I am trying to understand how & behaves in an aligned environment. So far I have been getting what I need by trial and error.
Consider the following MWE
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
A =& & & B, \\
& &+&C
\end{align*}
\begin{align*}
A =& &B, \\
&+&C
\end{align*}
\end{document}
I think of aligned as a table. So the first equation has 4 columns and 2 rows. For some reason, the second column introduces a lot of spacing (and is left aligned, which is not shown in this example).
In the second example, there are 3 columns on every line. However, again for some reason, the + is left-aligned while B and C are right-aligned.
Can someone explain to me what the rules are? Or point me to a place where I can find them?
rlrlrl...Afterlcolumns, space is autoadded (Can't recall amount). If you want to avoid space added, you can usealignatwith slightly altered syntax – Steven B. Segletes Mar 19 '20 at 12:47lcolumns? How much space is added? (just read your edit). – Tohiko Mar 19 '20 at 12:51tabstackenginepackage also has some aligning macros (not environments) that will allow you to customize (or eliminate) the amount of space added afterlcolumns. As I said in earlier comment,alignatenvironments can be used to eliminate space added afterlcolumns, for example,\begin{alignat*}{2} A =& &B, \\ &+&C \end{alignat*}– Steven B. Segletes Mar 19 '20 at 12:53A&=B\\&\quad+C(I assume you don't want a comma before +?) – David Carlisle Mar 19 '20 at 13:58amsmathuser guide (texdoc amsldoc)? If it isn't clear, please say why, and (if possible) suggest how it can be improved. – barbara beeton Mar 19 '20 at 18:58