You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
The use of \defaultfontfeatures{Ligatures=TeX} here is applied to all fonts, including the monospace font. For some reason, this leads to double quotes in code listings turning into curly quotes (I have no clue why it doesn't happen to single quotes).
Because TeX ligatures are by default applied to setmainfont (see fontspec documentation https://texdoc.org/serve/fontspec/0 Part II, section 1), commenting this out should ensure that TeX ligatures are still used for the text (in Minion) but not for the listings such as this one:
That should fix the curly double quotes in the listings.
In principle I think I should re-add TeX ligatures for the math font because I really don't know if I've used them somewhere. It would be very odd for that to be the case, but anyway it can be done by just adding Ligatures=TeX as another option in \setmathfont.
The text was updated successfully, but these errors were encountered:
thesis/preamble/fonts.tex
Lines 5 to 29 in e25af25
The use of
\defaultfontfeatures{Ligatures=TeX}
here is applied to all fonts, including the monospace font. For some reason, this leads to double quotes in code listings turning into curly quotes (I have no clue why it doesn't happen to single quotes).Because TeX ligatures are by default applied to setmainfont (see fontspec documentation https://texdoc.org/serve/fontspec/0 Part II, section 1), commenting this out should ensure that TeX ligatures are still used for the text (in Minion) but not for the listings such as this one:
thesis/noah/parallel.tex
Lines 176 to 181 in e25af25
That should fix the curly double quotes in the listings.
In principle I think I should re-add TeX ligatures for the math font because I really don't know if I've used them somewhere. It would be very odd for that to be the case, but anyway it can be done by just adding
Ligatures=TeX
as another option in\setmathfont
.The text was updated successfully, but these errors were encountered: