From 4e7461e9992cfbfdabbaf8d015a757de25341545 Mon Sep 17 00:00:00 2001 From: Holger Dell Date: Mon, 8 Aug 2022 15:23:49 +0200 Subject: [PATCH] feat: Improved font loading in Thesis.tex. I found that the explicit \setmainfont etc. commands may have loaded a system-provided font instead of the TeX-Live provided font, which caused various interoperability issues. Loading the packages is more appropriate as they will load the correct font variants for whatever variant of latex is being used. Preloading newtxmath is recommended as per: http://mirrors.ctan.org/fonts/ebgaramond-maths/ebgaramond-maths.pdf --- Thesis.tex | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Thesis.tex b/Thesis.tex index 634dab0..651e0a7 100644 --- a/Thesis.tex +++ b/Thesis.tex @@ -56,15 +56,12 @@ % Fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\ifxetexorluatex - \usepackage{unicode-math} - \setmainfont{EB Garamond} - \setmathfont{Garamond Math} - \setmonofont[Scale=MatchLowercase]{Source Code Pro} +\usepackage[cmintegrals,cmbraces]{newtxmath} +\usepackage{ebgaramond-maths} +\ifpdftex + \usepackage[scale=0.8]{sourcecodepro} \else - \usepackage[lf]{ebgaramond} - \usepackage[oldstyle,scale=0.7]{sourcecodepro} - \singlespacing + \usepackage[scale=MatchLowercase]{sourcecodepro} \fi \newacronym[description={Principal component analysis}]{PCA}{PCA}{principal component analysis}