我正在尝试为我的论文选择一种衬线字体,并将我的选择范围缩小到两种(可能!)—— 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}