From 7650b51fc758c84f6b3ea31febef275be5c74614 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 27 May 2024 10:08:28 +0000 Subject: [PATCH] Load STIX Two using fontspec. Loading the stix2 package forces T1 encoding and breaks some ligatures. Instead, we load STIX Two using fontspec, which retains TU encoding. --- ruthesis.sty | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ruthesis.sty b/ruthesis.sty index edcf6cf..b6162b0 100644 --- a/ruthesis.sty +++ b/ruthesis.sty @@ -76,8 +76,17 @@ % Standardized STIX2 fonts that print well, display on % e-readers/screens clearly, and have compatible licensing % requirements -\RequirePackage{stix2} +%\RequirePackage{stix2} % allows UTF encoding, needed for Icelandic and other accented characters +\RequirePackage{fontspec} +\RequirePackage{unicode-math} +\setmathfont{STIX Two Math} +\setmainfont{STIX Two Text}[ +Extension={.otf}, +UprightFont={*-Regular}, +BoldFont={*-Bold}, +ItalicFont={*-Italic}, +BoldItalicFont={*-BoldItalic}] \usepackage[useregional]{datetime2} %% Smart manipulation of dates