I'm using the siunitx, i.e. in the preamble of my document I'm including \usepackage{siunitx}.
If I write in my document $\num{1234}$ it works very well, but if I try to use $\SI{\num{1234}}{s}$ I'm getting a syntax error (invalid token).
Why and how can I prevent this?
\numis meant for numbers only -- the first argument of\SIis designed to take the unit value – Jun 25 '16 at 18:25\numinside\SI. Simply write\SI{1234}{\second}. You don't need$-sign aroubd it either. Use the\sisetup{detect-all}if you wish. – Runar Jun 25 '16 at 18:27\SI[parse-numbers=false], but then this seems to apply this option to the\nummacro as well so that doesn't work. Related Question: [Use \num macro with \SIparse-numbers=false. – Peter Grill Jul 31 '16 at 09:07