[Tex/LaTex] Enable binary SI units with siunitx in MacTeX

errorssiunitx

I'm using TeXShop on OS X Lion (the MacTeX distro, which is kind of amazing) and I cannot do the following with siunitx:

\SI{4}{\giga\byte}

TeXShop says it's an "Undefined control sequence." According to the manual I should be able to do this:

\usepackage[detect-weight=true, binary-units=true]{siunitx}

or this:

\usepackage{siunitx}
\sisetup{ detect-weight=true, binary-units=true }

but that's not working, and I've tried small variants.

How can I make the "byte" unit work?

Best Answer

The issue has occurred as you've tried to use an option from a newer version of siunitx than you have installed. Always check the documentation for the version of siunitx you have installed, easiest to do using

texdoc siunitx

at the Command Prompt/Terminal.

(This is a general point: it's true of any package.)