siunitx 在 math-sf 中使用了錯誤的 \ DegreeCelsius 字體

siunitx 在 math-sf 中使用了錯誤的 \ DegreeCelsius 字體

儘管我使用 siunitx-Parametersdetect-allmath-sf=\mathrm在數學上下文中使用襯線數學字體排版單位,但\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}

上述Latex文檔程式碼的輸出

相關內容