0

I need to draw a few molecular hybrid orbitals and I'm going to use chemmacros.

I've been reading about compatibility issues existing with this package, but I cannot get it loaded in anyway.

Using the chemmacros documentation examples:

This is the MWE

\documentclass{article}
\usepackage{chemfig,chemmacros}

\begin{document}

 \setbondoffset{0pt}
 \chemsetup[orbital]{
   overlay ,
   opacity = .75 ,
   p/scale = 1.6 ,
   s/color = blue!50 ,
   s/scale = 1.6
 }
 \chemfig{\orbital{s}-[:-20]{\orbital[scale=2]{p}}{\orbital[half,angle=0]{p}}{\orbital[angle=170,half]{p}}{\orbital[angle=-150,half]{p}}(-[:-150]\orbital{s})-\orbital{s}}

\end{document}

When compile this I get this output log:

http://ix.io/1v84

Screenshot of error messages and code: enter image description here

6
  • 3
    Please put the errors in textual form and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}
    – albert
    Commented Dec 3, 2018 at 12:10
  • I hope the changes will help you to reproduce my issue.
    – jfernandz
    Commented Dec 3, 2018 at 12:22
  • 2
    Indeed it would be better to include the code as text, then somebody who wants to answer does not have to re-type everything. Luckily this example is taken from the chemmacros manual, which allows to copy-paste the code. You can probably solve the issue by putting \chemsetup{modules=orbital} before \begin{document}.
    – Marijn
    Commented Dec 3, 2018 at 12:28
  • Thank you, @Marijn, that was the solution, where is this specified in the chemmacros docu?
    – jfernandz
    Commented Dec 3, 2018 at 12:30
  • This is described in Section 3.1 of the manual, however the manual is not very clear about this so it is completely understandable that you missed it.
    – Marijn
    Commented Dec 3, 2018 at 12:31

1 Answer 1

2

I completely missed out the 3.1 section in the chemmacros docu. So adding

\chemsetup{modules=all}

in the preamble, the problem fixes. Like this picture shows enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .