tikz.dev / chemfig Manual

chemfig

Horizontal reactions

Horizontal reactions

To typeset a horizontal reaction with a simpler syntax, you can use the environment “hreac”.

\hreac[⟨keys⟩=⟨values⟩] ⟨reaction⟩ \endhreac

As seen previously, the options can be set with \setchemfig{⟨keys⟩=⟨values⟩} if you want to set them for the rest of the document.

To apply settings to a single reaction only, use the optional argument of the environment.

Here is the complete list of parameters for the \hreac macro, their default values, and a short description.

KeyDefault valueDescription
harrow minwidth3emminimal length of an arrow
label xsep3ptwhen the arrow extends to fit its labels, its length is equal to the length of the longest label plus twice that dimension
label alignctext alignment in arrow labels (possible values ⟨c⟩, ⟨r⟩, or ⟨l⟩)
name sep1.5exminimum vertical distance between the compound boxes and its name
hreac anchortextanchor of the first compound
hreac sep0.5emhorizontal space between boxes containing compounds
hreac debugfalseif ⟨true⟩, draw the boundaries of the compounds, the anchors, the node names, and the horizon line
arrow label sep3ptfor this key and the following ones, see options of \schemestart section 1
arrow style⟨empty⟩
arrow double sep2pt
arrow double coeff0.6
arrow double harpoontrue
arrow label sep3pt
arrow head-CF
arrow coeff1