From 900ec10de4b6a5e0a054d3c42b1d6003bc4c52ba Mon Sep 17 00:00:00 2001 From: Erwan Normand Date: Fri, 28 Jun 2024 18:36:32 +0200 Subject: [PATCH] Use libertinus-otf with luatex --- config/template.tex | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/config/template.tex b/config/template.tex index 52e8070..1eab6bc 100644 --- a/config/template.tex +++ b/config/template.tex @@ -6,14 +6,22 @@ \linespread{1.15} % Typography -\usepackage{mathtools} % Math improvements -\usepackage[T1]{fontenc} % Use T1 font encoding +\usepackage{iftex} +\ifluatex + \usepackage{libertinus-otf} +\else + \usepackage{mathtools} % Math improvements + \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[varqu, varl]{inconsolata} % Better monospace font (with alternative "quote" [varqu] and "l" [varl]) -\usepackage{libertinus} % Libertinus font for text and math \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} \chapterfont{\sffamily} \allsectionsfont{\sffamily}