Friday, 7 June 2013

xkeyval gives error with siunitx on some LaTeX installations

xkeyval gives error with siunitx on some LaTeX installations

\documentclass{article}

\usepackage{siunitx}

\begin{document}

\SI[per-mode = fraction]{3.00e8}{\meter\per\second}

\end{document}
I've tested this on three different computers, all running TexLive 2009 (the one that comes with Ubuntu or Linux Mint), and got an error message on one of them:
! Package xkeyval Error: `per-mode' undefined in families `key'.
More generally, any attempt to provide an extra option to siunitx (e.g., output-decimal-marker = {,}, which I also need) leads to the same error.
I suspect this is a clash of versions between xkeyval and siunitx, but so far haven't been able to pinpoint what is different in that computer that produces the error. I even removed the LaTeX3 package to no avail.
A similar question was asked on Error: "per-mode" is undefined, but the question is now closed.

No comments:

Post a Comment