[Tex/LaTex] Chemstyle xkeyval error

chemstyleerrorstexliveUbuntuxkeyval

I recently installed texlive-science from the Ubuntu repos and received the following error when I compile:

! Package xkeyval Error: `load-configurations' undefined in families `key'.

LaTeX works fine when chemstyle is not used. Any thoughts?

Minimal example:

\documentclass{article}
\usepackage{chemstyle}
\begin{document}
\begin{scheme}[H]
\begin{center}
\includegraphics[width=4in]{anyfile.eps}
\end{center}
\caption {trial {\bf 1}.\label{s_scheme}}
\end{scheme}
\end{document}

Abbreviated output:

) (./chemscheme.sty (/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty
 (/usr/share/texmf-texlive/tex/generic/oberdiek/kvsetkeys.sty
 (/usr/share/texmf-texlive/tex/latex/siunitx/config/si-abbr.cfg))
! Package xkeyval Error: `load-configurations' undefined in families `key'.
See the xkeyval package documentation for explanation.
Type H <return> for immediate help. 

Best Answer

In the minimal example, the graphics package is implicitly loaded. But the command

\includegraphics[width=4in]{anyfile.eps}

requires graphicx because of the key=value syntax in the optional argument. That's why the compilation must fail.

It's probably good to update to the most recent versions of chemstyle and siunitx. Ubuntu packages might be not up-to-date.

You may have a look at How can I manually install a package. Though the question was MiKTeX related, the answer contains general useful information and links to further resources.

Or filter our site by the tags installing+packages.