Is there an easier way to get numbers in $\num{}$ to be in the same font as normal text than using $\text{\num{}}$?
\documentclass[varwidth]{standalone}
\usepackage[sfdefault]{overlock}
\usepackage[detect-all]{siunitx}
\begin{document}
num in maths mode: $\num{1200}$
num in text in maths mode: $\text{\num{1200}}$
\end{document}
I am using pdflatex and I want all the numbers in maths mode to be in overlock font, so they are consistent with the rest of the document.


mode=text. It's really easy to miss its one mention in the siunitx manual. I can set it globallyusepackage[mode=text]{siunitx}or locally\num[mode=text]{1200}. It doesn't work if I setdetect-all, though, but I guess I don't really need it. – James Mar 28 '18 at 20:47