I use chemfig
to draw cyclic molecules. Quite often, it is desirable to reorient the molecule for which I use the optional directive [rotate=-18]
. Sometimes this is barely acceptable but most often just wrong.
How do I achieve the following -
- The letters should not be rotated even if the molecule is.
- The double bond should be rotated in its entirety.
- The molecule should not be shifted upward or downward.
Or is there any way to achieve my objectives.
My MWE is as follows
\documentclass{scrartcl}
\usepackage{chemfig}
\begin{document}
\begin{tabular}{ccc}
Unrotated & Rotated & \\
\chemfig{*6(-=-=-=)} & \chemfig[][rotate=-30]{*6(-=-=-=)} & Acceptable\\
\chemfig{*5(---O-(=[:145]O)-)} & \chemfig[][rotate=-55]{*5(---O-(=[:145]O)-)} & unacceptable \\
\chemfig{*5(-N(-H)-=-=)} & \chemfig[][rotate=-18]{*5(-N(-H)-=-=)} & unacceptable
\end{tabular}
\end{document}
pdflatex
.) BTW, if I had to guess, I'd try\chemfig[][rotate=-55,transform shape=false]{*5(---O-(=[:145]O)-)}
but this is just a guess.transform shape
... bothtrue
andfalse
are no different. I am using TeXLive 2019rotate
hack from docs. I just tried an ugly hack. I am not sure if it is supposed to work. Maybe TeXLive-2020 has explicitly barred it.pdflatex
. July 2019 installation.