\RequirePackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont[% Script=Default,% make small caps work for both latn and grek ItalicFont=STIX2Text-Italic.otf, BoldFont=STIX2Text-Bold.otf, BoldItalicFont=STIX2Text-BoldItalic.otf, % RawFeature=+pnum,% variable width numbers SmallCapsFeatures={Numbers=OldStyle}]{STIX2Text-Regular.otf} \RequirePackage{unicode-math} \setmathfont{STIX2Math.otf} \endinput