While illustrating atomic orbitals for 1,3-butadiene guided by examples in chemmacros
' manual, I receive the following error:
Argument of \orbital has an extra }. }
MWE:
\documentclass{article}
\usepackage{chemmacros}
\chemsetup{modules = all}
\chemsetup[orbital]{overlay}
\usepackage{chemfig}
\setchemfig{
atom sep = 2.5em
}
\begin{document}
\chemfig{
\orbital{p}
-[:30]\orbital{p}
-[:-30]{\orbital[phase=-]{p}}
-[:30]{\orbital[phase=-]{p}}
}
\end{document}
pdflatex
produces the following [incorrect] structure:
The same error occurs for the examples from the manual where optional arguments are passed to \orbital[...]{...}
inside \chemfig{...}
. I'm using fully updated TeXLive 2018.
Update (2019-10-19)
I tried the above MWE again and it compiles as expected using chemfig
v1.41 from TeX Live 2019, so the problem seems to be fixed.