chemfig
Horizontal reactions
2 Placement of compounds¶
All compounds are numbered c⟨n⟩ (where ⟨n⟩ is an integer) and are placed in boxes. The centers of all boxes are placed on the same horizontal line, which is drawn in red dots when the hreac debug option is enabled:
Vertical alignement vertical of compounds
\hreac[hreac debug]
\chemfig{*6(-=-=-=)}
+
\chemfig{X=[1]Y}
+
Z > X + Y
\endhreac
When \>{⟨dimension⟩} is encountered at the beginning of ⟨compound⟩, the latter is moved horizontally by {⟨dimension⟩}.
Horizontal adjustment of compounds
\hreac[hreac debug]
\chemfig{*6(-=-=-=)}
+
\>{-5pt}\chemfig{X=[1]Y}
+
\>{5pt}Z > X + Y
\endhreac
When \^{⟨dimension⟩} is encountered at the beginning of ⟨compound⟩, the latter (and only the latter) is moved vertically by {⟨dimension⟩}. In the starred version \^*{⟨dimension⟩}, the compound and all subsequent ones are affected.
Vertical adjustment of compounds
\hreac[hreac debug]
\chemfig{*6(-=-=-=)}
+
\^{10pt}\chemfig{X=[1]Y}
+
Z > X + Y
\endhreac\medbreak
\hreac[hreac debug]
\chemfig{*6(-=-=-=)}
+
\^*{10pt}\chemfig{X=[1]Y}
+
Z > X + Y
\endhreac