I get the following errors and have no idea, why. I just updated all my packages. I am using MikTeX 2.9 on Windows 7 and TeXmaker 4.3.
Just spent like an hour searching for an answer and didn't get any.
Would be very good if anyone could help me.
The \ch{} command, however, works.
! LaTeX Error: Environment reaction undefined.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help…. \begin{reaction}
! LaTeX Error: Environment experimental undefined.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help…. \begin{experimental}
! Undefined control sequence. \data
! Undefined control sequence. \NMR
\documentclass[11pt,a4paper]{scrartcl}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{siunitx} %SI units
\usepackage{chemmacros} %formula, spectra, ...
\begin{document}
\ch{CH4}
\begin{reaction}
A -> B
\end{reaction}
\begin{experimental}
\data*{yield} \SI{555}{\milli\gram} ugly, brown whatever
\NMR{1,H}(250)[CDCl3] \val{9.99} (m, \#{5})
\end{experimental}
\end{document}
Best Answer
There have been some major changes to
chemmacros
with version 5.0. The package now features a more modular structure.You can either run in backwards compatibility mode via
Or you load
\usepackage{chemmacros}
(which loads the new modular structure if you version is >= 5.0) and then the required modules for your environments, namelyThe
reaction
environment needs thereactions
module,experimental
needs thespectroscopy
module.If you can't be bothered to check which modules you need you can simply load them all via
Refer to the
chemmacros
documentation for more details and a list of modules.