Use libertinus-otf with luatex

This commit is contained in:
2024-06-28 18:36:32 +02:00
parent 9988451b1e
commit 900ec10de4

View File

@@ -6,14 +6,22 @@
\linespread{1.15} \linespread{1.15}
% Typography % Typography
\usepackage{iftex}
\ifluatex
\usepackage{libertinus-otf}
\else
\usepackage{mathtools} % Math improvements \usepackage{mathtools} % Math improvements
\usepackage[T1]{fontenc} % Use T1 font encoding
\usepackage[english]{babel} % Typographical rules
\usepackage[varqu, varl]{inconsolata} % Better monospace font (with alternative "quote" [varqu] and "l" [varl])
\usepackage{libertinus} % Libertinus font for text and math \usepackage{libertinus} % Libertinus font for text and math
\usepackage[T1]{fontenc} % Use T1 font encoding
\usepackage{textcomp} % Additional symbols
\usepackage[varqu, varl]{inconsolata} % Better monospace font (with alternative "quote" [varqu] and "l" [varl])
%\usepackage{libertinust1math} % Libertinus math font
\fi
\usepackage[english]{babel} % Typographical rules
\usepackage{microtype} % Micro-typography improvements (slightly more compact, better to read) \usepackage{microtype} % Micro-typography improvements (slightly more compact, better to read)
% Use sans-serif font for sections % Use sans-serif font for sectionss
\usepackage{sectsty} \usepackage{sectsty}
\chapterfont{\sffamily} \chapterfont{\sffamily}
\allsectionsfont{\sffamily} \allsectionsfont{\sffamily}