Fixing font spec so code compiles on macOS without any additional system fonts needing to be installed.

main
Vel 2022-09-12 13:19:30 +12:00
parent ff17b6992a
commit eb8543eb9f
6 changed files with 7 additions and 2 deletions

View File

@ -71,14 +71,19 @@ leftmargin=1cm,rightmargin=1cm
% http://mirrors.ctan.org/macros/latex/contrib/fontspec/fontspec.pdf
\usepackage{fontspec}
\defaultfontfeatures{Ligatures=TeX} % To support LaTeX quoting style
\defaultfontfeatures{Path=fonts/} % Specify the location of font files
% To get font name, run, for example:
% otfinfo -i `kpsewhich lmroman12-regular.otf` | grep "^Full name:"
% STIX
\setmainfont[Ligatures=TeX]{STIXGeneral-Regular}
% Latin Modern
\setmonofont{LMMono12-Regular}
\setmonofont{LMMono12-Regular.otf}
% Linux Biolinum
\setsansfont[Ligatures=TeX]{Linux Biolinum O}
\setsansfont{LinBiolinum}[ % Linux Biolinum
UprightFont=*_R.otf,
BoldFont=*_RB.otf,
ItalicFont=*_RI.otf
]
%%% END PREAMBLE FONTS %%%

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.