0

It is an error arise with package option \mhchemoptions{arrows=pgf} after last update 2016-08-08 to v4.05. Somebody can confirm?

\documentclass[]{article}
\RequirePackage[version=4]{mhchem}
\mhchemoptions{arrows=pgf}

\begin{document}
\ce{2H2 + O2 -> 2H2O}
\end{document}
1
  • Works if you do \usepackage[version=4,arrows=pgf]{mhchem}. I think this might be the intended behaviour, if I understand the manual correctly. Oct 8, 2016 at 16:34

1 Answer 1

4

If you write \usepackage[version=4,arrows=pgf]{mhchem}, mhchem loads the respective TikZ package automatically. (The same thing should happen with \RequirePackage.) When you switch to pgf arrows in another matter, after initial loading of the package, you have to make sure the TikZ package is already requested by some other means (e.g. you writing \usepackage{tikz}).

You must log in to answer this question.

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