It seems that when I apply the [parse-numbers=false] option to \SI, this also applies this option to the \num macro if it is in the number parameter of \SI. I realize that there is usually no need for this, but it is needed when the "number" portion of the \SI macro has other content in it, for instance a \frac (last example in MWE).
This is probably on purpose, but I feel that it should not be this way. I think of the \num macro separately from the \SI macro. In my opinion, an option should only apply to a macro that is given to.
Question:
Is there a way I can setup the \siunitx macros so that \num does not inherit the options applied to \SI?
Notes:
Possible workaround include
- It seems that if I use
\num[parse-numbers=true], then things work, but I would prefer not to have to do that. - Another option is to use
$\frac{1}{\num{100000}}\,\si{\meter}$, but again I would prefer to use\SI[parse-numbers=false]macro for consistency instead of manual spacing.
Code:
\documentclass{article}
\usepackage{amsmath}
\usepackage{siunitx}
\usepackage{xcolor}
\begin{document}
\textbf{OK}
Outside of \verb|\SI|: \num{100000}
In a \verb|\frac|: $\frac{1}{\num{100000}}$
Inside of \verb|\SI| without \verb|\num|: \SI{100000}{\meter}
\medskip
\textbf{Problem}
Inside of \verb|\SI[parse-numbers=false]| with \verb|\num|:
\SI[parse-numbers=false]{\color{red}\num{100000}}{\meter}
$\SI[parse-numbers=false]{\color{red}\frac{1}{\num{100000}}}{\meter}$
\end{document}


\numshould inherit the options, nor a case where\num[parse-numbers=true]would be useful. – Peter Grill Jul 31 '16 at 11:45