When I was reading some textbooks about LaTeX, I found that there is some environment causing a lot of confusion: align and alignat.
As I have mentioned, I can't distinguish these two environment because I think they have the same function: Choose the position of alignment. The only difference I can see is that alignat allows us to determine the horizontal space and the maximun number of columns.
Moreover, I can not know how I can distinguish between this column and another column in alignat environment. Is && the note to distinguish them?
Asked
Active
Viewed 231 times
0
Hoang Nam
- 133
amsmathpackage (where these environments are defined), you might want to do so. (texdoc amsmath) You are correct that an essential difference between the two is that withalignat, you are required to specify the number of columns, and can specify the spacing. Both environments treat elements in pairs, with positioning<right> & <left> & <right> & <left> & ...If the intention is to start with a left-aligned column, then the first input in a row should be&, or for a left-aligned column later, after a "paired" column, start with&&. – barbara beeton Jan 08 '20 at 02:44&, but can you explain more about&&, I still don't get it – Hoang Nam Jan 08 '20 at 02:59texdoc shortmathguide) that showsalignatwith an alignment that has an empty first (left) half of the second "equation" (i.e., left-right pair) on page 4. (The two&s aren't next to one another.) Does that make the concept clearer? This technique is useful for providing short explanatory texts, which should be aligned to the left. – barbara beeton Jan 08 '20 at 05:12