摄氏度单位和选项有问题detect-all
(见下文)。
我最终删除了detect-all
修复问题的选项,但这里可能仍然存在一些错误。
梅威瑟:
\documentclass[11pt,a4paper,openright,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{siunitx}
\begin{document}
\chapter{What is happening here?}
Good: \SI{50}{\celsius}, \SI{30}{\watt\per\meter}.\\
\sisetup{detect-all}
But after \verb=\sisetup{detect-all}=, the celsius unit (and only this one) is in math mode: \SI{50}{\celsius}, \SI{30}{\watt\per\meter}.
\end{document}