euler-digits
option. Unfortunately, with the \setmathfont
also the digits within the DOI identifiers in my bibliography are changed, and thus look really ugly. I tried using and explicit \setmonofont
, that does change the letters and symbols, but still not the digits, whether I set the mono-spaced font before the math font or after it. Also note I only set the FreeMono as mono-spaced font for extra contrast to see what changed, I think it's rather ugly and definitely prefer a font better fitting with the rest of the text.Below are the files "test2.tex", and "test2.bib" (sorry, "test.tex" was already actively in use

Code: Select all
\documentclass{scrartcl}
\usepackage{amsfonts}
\usepackage{eulervm}
\usepackage{siunitx}
\sisetup{
detect-all
}
\usepackage{mathspec}
\setmainfont[
Ligatures={Common,TeX},
Numbers={OldStyle,Proportional}
]{Calluna}
\setsansfont[
Ligatures={Common,TeX},
Numbers={Lining,Proportional}
]{Calluna Sans}
% According to the manual this sets the digits to the regular arabics,
% while leaving the latin and greek letters untouched,
% this is intented, I want eulervm for maths letters.
\setmathfont(Digits,Latin,Greek)[%
Arabic=Regular,
Uppercase=Plain,
Lowercase=Plain,
Numbers={Lining,Proportional}
]{Calluna}
\setmonofont[
Ligatures={NoRequired,NoCommon,NoContextual},
Numbers={Lining,Monospaced}
]{FreeMono}
\usepackage[
style=authoryear-comp,
doi=true,
url=true,
sorting=nyvt,
backend=biber,
]{biblatex}
\usepackage[hidelinks]{hyperref}
\addglobalbib{test2.bib}
\begin{document}
\section{Verify sans font}
The following line shows the normal verb command is unaffected:
{\scshape DOI:}\ \verb|10.1016/j.sedgeo.2010.04.015|
The following is a sentence to test the various fonts for digits with or without
\verb|\sisetup{detect-all}| or \verb|\setmathfont|.
1234567890, \(1234567890\),
\SI{1234567890}{\metre}, \(\SI{1234567890}{\metre}\),
\num{1234567890}, \(\num{1234567890}\).
\textcite{Hay2011} shows the problem with the DOI, I included this one because it
has an ugly mixture of letters and digits, showing the problem to its full extent.
\printbibliography
\end{document}
Code: Select all
@Article{Hay2011,
Title = {Can humans force a return to a `Cretaceous' climate?},
Author = {William W. Hay},
Journaltitle = {Sedimentary Geology},
Year = {2011},
Doi = {10.1016/j.sedgeo.2010.04.015},
ISSN = {0037-0738},
Language = {english},
Note = {Causes of oxic - anoxic changes in Cretaceous marine environments and their implications for Earth systems },
Number = {1-2},
Pages = {5--26},
Volume = {235},
__markedentry = {[hugo:1]},
Journal = {Sedimentary Geology },
Keywords = {Cretaceous},
Owner = {hugo},
Timestamp = {2014.02.21}
}