I am trying to write a chemical reaction in which I want to include a chemical structure. I am having some trouble regarding alignment and bond length. Here is a minimal working example:
\documentclass[a4paper,article]{memoir}
\usepackage[version=3]{mhchem}
\usepackage{chemfig}
\begin{document}
\ce{3CH3CHOHCH3 + Cr2O7^{2-} -> 3\chemfig{C(-[:0]CH_3)(-[:180]CH_3)(=[:270]O)} + 2Cr^{3+} + 7H2O}
\end{document}
Which produces the following output:
The problems I'm having are:
- Bond length: Despite the two CH3 groups being identical, the bond lengths are not the same. Scaling each bond individually would be somewhat of a hassle (this is one of the simpler structures I'm working with), so I would prefer if there were some way to ensure constant bond length.
- Alignment with the rest of the reaction: It seems like the bottom of the subscript "3" aligns with the baseline of the rest of the reaction, which I would like to avoid. Is there any way to (preferably automatically, but I'll take what I can get) align the baseline of the upper row of the structure with the baseline of the rest?
- Height of subscripts: The subscripts created by the mhchem package are different in height to the ones created by the chemfig package. I have tried including \ce commands in the \chemfig command, but it seems like chemfig treats the formulas produced this way as images, which gets in the way of aligning bonds to specific atoms. This also messes with the vertical location of the bonds relative to the CH3 groups.
I know that chemfig can also be used to typeset reactions, but looking at things like this, it seems that mhchem is much more user-friendly in this regard.
Any help with this would be much appreciated.