现在我对 SI 的定义如下:
\usepackage{siunitx}
\sisetup{
group-digits=integer,
group-minimum-digits = 4,
detect-display-math = true,
detect-weight,
detect-mode = true,
group-separator = {,}
}
我的数字是衬线字体,而我使用的是 Arial,这是一种无衬线字体。是否可以仅在公式模式下让 SI 生成衬线字体?
示例方程:
\begin{subequations}
\label{eqn:decanterholdup}
\begin{align}
T & = 0.1\frac{\mu}{S_H - S_L} \\
& = 0.1 \frac{0.856551}{0.999492 - 0.88435} \nonumber\\
& = \SI{0.7439}{\hour}
\end{align}
\end{subequations}
文字字体:
\usepackage{helvet}
梅威瑟:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{siunitx}
\sisetup{
group-digits=integer,
group-minimum-digits = 4,
detect-display-math = true,
detect-weight,
detect-mode = true,
group-separator = {,}
}
\usepackage{amsmath}
\begin{document}
This is san serif. In the equation it is serif.
\begin{subequations}
\label{eqn:decanterholdup}
\begin{align}
T & = 0.1\frac{\mu}{S_H - S_L} \\
& = 0.1 \frac{0.856551}{0.999492 - 0.88435} \nonumber\\
& = \SI{0.7439}{\hour}
\end{align}
\end{subequations}
This text is san serif. \SI{5}{\cm}
\end{document}
数学环境中的数字是衬线字体,但带有 SI 的最后一行是无衬线字体。我怎样才能使数学环境中的最后一行变成衬线字体?