josephwright / siunitx

A comprehensive (SI) units package for LaTeX
LaTeX Project Public License v1.3c
356 stars 26 forks source link

Inconsistent font outcomes if document body is sansetif #655

Closed josephwright closed 1 year ago

josephwright commented 1 year ago

From https://tex.stackexchange.com/questions/682749/make-siunitx-use-roman-font-in-math-mode-and-sans-font-in-text-in-a-sans-serif/682752#682752

\documentclass{article}
\usepackage{siunitx}
\renewcommand{\familydefault}{\sfdefault} % My document should be in sans serif
\begin{document}%
\qty{5}{\kilo\volt} vs $\qty{5}{\kilo\volt}$.
\end{document}

Likely it is best to adjust how beamer is supported here as it's the main reason.