I've just started using the chemfig package for drawing some chemistry. However there is a problem with vertical alignment. The vertical alignment of "2 Water", reaction arrow and "2 ABC" is complety random. How can I align them to the same vertical position?
Also I would like to know, how to rotate the second ring to align it into the same orientation as the first one?
\documentclass{article}
\usepackage{chemfig}
\usepackage{tikz}
\usepackage[ngerman]{babel}
\usetikzlibrary{babel}
\tikzstyle{arrow}=[draw, -latex]
\begin{document}
\schemestart
2 Water + \chemfig{O=[:-90]*5(-[@{b1}]O-[@{b2}](@{a1})-(@{a2})-[@{b4}]O-[@{b5}])} \arrow{->[+2 $H^+$]} \chemfig{*5(-[@{b1}]O-[@{b2}](@{a1})-(@{a2})-[@{b4}]O-[@{b5}])} + 2 ABC
\schemestop
\end{document}
Best Answer
chemfig
always places the first atom of the molecule on the baseline, so you have to rewrite the molecule with the atom you want to be on the baseline first. For example,gives
Note that
\usepackage{tikz}
;chemformula
's\ch
command.\arrow
to keep the molecules aligned. They're described in Chemfig's manual, from p. 50.