I am trying to render figure captions in a sans-serif font.
I have gotten as far as setting up the caption package to use the sf font for text (easy) and math (via the sansmath package).
I am struggling to make siunitx fit into this. \SI or \qty will render the number in the serif'ed font.
This is sort of a follow-up question. Note that I am using all of siunitx's switches to detect math mode, font family etc.
Example:
\documentclass[11pt,a4paper]{scrarticle}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{sansmath}
\usepackage[separate-uncertainty=true, multi-part-units=single]{siunitx}
\sisetup{
mode = match,
propagate-math-font = true ,
reset-math-version = false ,
reset-text-family = false ,
reset-text-series = false ,
text-family-to-math = true ,
text-series-to-math = true
}
\parindent=0in
\begin{document}
\sansmath
\begin{tabular}{ll}
1. Plain serif text: & 123,m \
\sffamily 2. Plain sans math: & $123,m$ \
\sffamily 3. Plain sans text: & \sffamily 123,m \
\sffamily 4. siunitx sans text: & \sffamily\qty{123}{m} \
\sffamily 5. siunitx sans math: & \sffamily$\qty{123}{m}$
\end{tabular}
\end{document}
Output:
I understand what is going on in all but the last one. Why are the figures serif'ed?
PS: BTW, if I leave out the last \sffamily then also the unit is set with serifs.

text-series-to-mathoption. Makes no sense to me though. – polwel Sep 01 '21 at 15:30