I have a problem when using the siunitx
package, specifically when using the detect-all
option and trying to use the \pi
symbol as a number.
Minimum working example (MWE) below:
\documentclass{article}
\usepackage{XCharter}
\usepackage{siunitx}
\begin{document}
This works happily: \SI{2\pi e15}{\radian\per\second}
\sisetup{detect-all,}
But this gives an error : \SI{2\pi e15}{\radian\per\second}.
\end{document}
\sisetup{detect-all,}
do?\sisetup{detect-all}
is an option for thesiunitx
package, which essentially makes all usage of numbers and units with the package "fit in" with the text around them. So while\SI{10}{m}
will normally use whatever Maths font is loaded when used in the middle of a standard text section (which looks odd, in my opinion), it will instead change the font to the standard font if\sisetup{detect-all}
is enabled.\SI
macro.