0

I'm trying to select a serif font for my thesis, and have narrowed down my choices to two (probably!) – Gentium and XCharter. I like both, but the latter puts the Greek µ for 'micro' in italics when using macros from the siunitx package – which I don't like. The only difference between the two preambles is the font loaded (MWE shown with gentium loaded and XCharter commented out; just reverse these to see the difference).

\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}

Why does XCharter behave differently, and is there a workaround?

enter image description here

enter image description here

Manuel
  • 27,118

1 Answers1

4
\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}

enter image description here

jlk
  • 1,729