![siunitx 中希腊字母 µ 在 Gentium 中为常规字体,但在 XCharter 中却为斜体 – 为什么?](https://linux22.com/image/300381/siunitx%20%E4%B8%AD%E5%B8%8C%E8%85%8A%E5%AD%97%E6%AF%8D%20%C2%B5%20%E5%9C%A8%20Gentium%20%E4%B8%AD%E4%B8%BA%E5%B8%B8%E8%A7%84%E5%AD%97%E4%BD%93%EF%BC%8C%E4%BD%86%E5%9C%A8%20XCharter%20%E4%B8%AD%E5%8D%B4%E4%B8%BA%E6%96%9C%E4%BD%93%20%E2%80%93%20%E4%B8%BA%E4%BB%80%E4%B9%88%EF%BC%9F.png)
我正在尝试为我的论文选择一种衬线字体,并将我的选择范围缩小到两种(可能!)—— Gentium 和 XCharter。我喜欢这两种字体,但后者在使用包中的宏时会将希腊语 µ(表示“微”)以斜体显示siunitx
——我不喜欢。这两个序言之间的唯一区别是加载的字体(MWE 显示为gentium
已加载并XCharter
注释掉;只需将它们反转即可看到区别)。
\documentclass[a4paper,12pt]{scrreprt}
\usepackage[greek, UKenglish]{babel}
\usepackage{siunitx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{gentium}
% \usepackage{XCharter}
\usepackage[libertine,bigdelims,vvarbb]{newtxmath}
\usepackage[cal=boondoxo]{mathalfa}
\sisetup{detect-all} % Uses current font for units ({siunitx})
\setlength{\parindent}{0cm}
\begin{document}
{\textbf{Gentium}} \\
% {\textbf{XCharter}} \\
Homogenate was drawn off into a \SI{2}{\ml} tube, and \SI{400}{\ul} chloroform was added to it.
\end{document}
为什么 XCharter 的行为不同?有没有解决方法?
答案1
\documentclass[a4paper,12pt]{scrreprt}
\usepackage[greek, UKenglish]{babel}
\usepackage{siunitx}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage{gentium}
\usepackage{XCharter}
\usepackage[libertine,bigdelims,vvarbb]{newtxmath}
\usepackage[cal=boondoxo]{mathalfa}
\sisetup{detect-all} % Uses current font for units ({siunitx})
\sisetup{
math-micro={\muup},
text-micro={\fontfamily{mdbch}\textmu},
}
\setlength{\parindent}{0cm}
\begin{document}
{\textbf{XCharter}} \\
Homogenate was drawn off into a \SI{2}{\ml} tube, and \SI{400}{\micro \litre} chloroform was added to it.
\end{document}