Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

The simple expression:

$v_f = \SI[per-mode=fraction]{32}{\meter\per\second}$

when parsed, yields the following error:

! Package xkeyval Error: `per-mode' undefined in families `key'.

However, removing [per-mode=fraction] causes it to work fine. How can I print this as a fractional unit?

share|improve this question
4  
You're probably using an old version of siunitx. Try updating to the current version (2.5c). – Jake Sep 22 '12 at 23:02
@Jake How do I determine the version? – Lambda Knight Sep 22 '12 at 23:05
@Jake Okay, I've got version 1.3. I installed siunitx by installing the texlive-science package, so what is the best way of updating? – Lambda Knight Sep 22 '12 at 23:11
3  
@Arafinwe If you're using the TeX Live 2009 that's provided by Debian/Ubuntu you're out of luck. You can install the 2012 version with this PPA, but this method doesn't guarantee that the last version of packages is in the distribution. You may want to install a "vanilla TeX Live" – egreg Sep 22 '12 at 23:16
@Jake Thanks for your comment. If you should re-post that as an answer, I would accept it. – Lambda Knight Sep 23 '12 at 1:11

closed as too localized by Harish Kumar, lockstep, Marco Daniel, Tom Bombadil, Paul Gaborit Sep 23 '12 at 9:44

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

up vote 2 down vote accepted

The comments have suggested upgrade your siunitx, but that may not be so easy. The option for version one was called just per

\documentclass{article}
\usepackage{siunitx}
\sisetup{per = fraction}
\begin{document}
$v_f = \SI{32}{\meter\per\second}$
\end{document}

If you give a version one option in the preamble, version two will pick this up an act appropriately.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.