chemfig
Operation of chemfig
3 First atom’s role¶
It is important to understand that the placement of the entire molecule depends on the first atom placed, i.e. the first atom of the first group of atoms. For this first atom, its TikZ anchor "base east" is placed on the baseline of the current line (drawn in gray in the examples of this manual).
Influence of the first atom
\chemfig{A-B}\qquad
\chemfig{-B}\qquad
\chemfig{A^1-B}
To set an arbitrary vertical offset or place a group of atoms on the baseline, use the ⟨baseline⟩ key (see section 7.2).