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.
This commit is contained in:
11
ruthesis.sty
11
ruthesis.sty
@@ -76,8 +76,17 @@
|
|||||||
% Standardized STIX2 fonts that print well, display on
|
% Standardized STIX2 fonts that print well, display on
|
||||||
% e-readers/screens clearly, and have compatible licensing
|
% e-readers/screens clearly, and have compatible licensing
|
||||||
% requirements
|
% requirements
|
||||||
\RequirePackage{stix2}
|
%\RequirePackage{stix2}
|
||||||
% allows UTF encoding, needed for Icelandic and other accented characters
|
% 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}
|
\usepackage[useregional]{datetime2}
|
||||||
%% Smart manipulation of dates
|
%% Smart manipulation of dates
|
||||||
|
|||||||
Reference in New Issue
Block a user