
siunitx-Parameters를 사용 detect-all
하고 math-sf=\mathrm
수학 컨텍스트 내에서 단위를 serif 수학 글꼴로 조판하려고 \degreeCelsius
해도 \mathsf
.
의도적으로 그렇게 한 걸까요? 원하는 결과를 어떻게 얻을 수 있습니까?
\documentclass[]{standalone}
\usepackage[default]{opensans}
\usepackage{siunitx}
\sisetup{detect-all, math-sf = \mathrm}
\begin{document}
\begin{tabular}{ l l | l }
I get ... & & I want ... \\
in text mode: & in math mode: & in math mode: \\
\SI{5}{m} & $\SI{5}{m}$ & $5\,\mathrm{m}$ \\
\SI{5}{\degreeCelsius} & $\SI{5}{\degreeCelsius}$ & $5\,\si{\degree}\mathrm{C}$
\end{tabular}
\end{document}