latex and xetex support

This commit is contained in:
2021-06-16 17:55:59 +02:00
parent 36ebf609ff
commit 9252349a70
3 changed files with 30 additions and 8 deletions

View File

@@ -7,19 +7,39 @@
fontsize=10pt,
foldmarks=MPvb,
backaddress=plain,
% fromlogo,
% fromalign=right,
pagenumber=footright,
refline=nodate
}
% font stuff
\RequirePackage[stretch=10]{microtype}
\RequirePackage{libertine}
\RequirePackage[T1]{fontenc}
\RequirePackage[libertine]{newtxmath}
\RequirePackage{iftex}
\ifpdftex
\RequirePackage{libertine}
\RequirePackage[libertine]{newtxmath}
\RequirePackage[T1]{fontenc}
\else\ifxetex
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\setmainfont[
Extension=.otf,
UprightFont={*-Regular},
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}]{LibertinusSerif}
\setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf}
\else\ifluatex
\RequirePackage{fontspec}
\RequirePackage{unicode-math}
\setmainfont[
Extension=.otf,
UprightFont={*-Regular},
BoldFont={*-Bold},
ItalicFont={*-Italic},
BoldItalicFont={*-BoldItalic}]{LibertinusSerif}
\setmathfont[Scale=MatchUppercase]{LibertinusMath-Regular.otf}
\fi\fi\fi
\RequirePackage[stretch=10]{microtype}
\RequirePackage{lastpage}
\RequirePackage{graphicx}