Fixed forced curly quotes in code listings
This had already been fixed in lecturecommon.sty, but chances are that documents using the XML framework won’t use that package anyway.
1 parent f5cfd20 commit ae061a166444beec20fe10b422c006e28f9d66e9
Nigel Stanger authored on 19 Feb 2019
Showing 1 changed file
View
19
xml2xslt.xsl
<xsl-out:value-of select="$latex-hyperref-boilerplate" />
 
<xsl-out:text>
\defaultfontfeatures{Mapping=tex-text}
\setmainfont{Minion Pro}
\setsansfont[Scale=MatchUppercase,BoldFont={Open Sans}]{Open Sans Light}
% The following line is equivalent to:
% \setmainfont{Minion Pro}
% \setmathsfont(Latin,Digits){Minion Pro}
% \setmathrm{Minion Pro}
\setprimaryfont[Mapping=tex-text]{Minion Pro}
\setsansfont[Mapping=tex-text, Scale=MatchUppercase, BoldFont={Open Sans}]{Open Sans Light}
% Explicitly specify Mapping=tex-text only for the primary and sans fonts,
% otherwise curly quotes will automatically appear in the mono font. Since
% this is pretty much exclusively used for code listings, this is a bad thing.
\setmonofont[Scale=MatchLowercase]{Letter Gothic 12 Pitch}
\setmathsfont(Latin,Digits){TeX Gyre Pagella}
 
% Hack to prevent digits in hyperlinks from being set in the main font instead of the mono font.
% From http://tex.stackexchange.com/questions/99770/problem-with-digits-in-urls-when-using-mathspec-and-hyperref
% Note: doesn't matter if this is executed multiple times.