|
|
% Définition des polices du document
|
|
|
\usepackage{fontspec}
|
|
|
\defaultfontfeatures[EBGaramond]{Ligatures=TeX,Numbers={Lining,Proportional}}
|
|
|
\setmainfont[
|
|
|
Extension = .otf,
|
|
|
UprightFont = *-Regular,
|
|
|
ItalicFont = *-Italic,
|
|
|
BoldFont = *-Bold,
|
|
|
BoldItalicFont = *-BoldItalic
|
|
|
]{EBGaramond}
|
|
|
|
|
|
% Police pour les mathématiques
|
|
|
\usepackage[math-style=french]{unicode-math}
|
|
|
\setmathfont[StylisticSet={2}]{Garamond-Math.otf}
|
|
|
%StylisticSet
|
|
|
%2 → Curved \partial
|
|
|
%7 → \int variant
|
|
|
%8 → Garamond-compatible \mathcal (experimental)
|
|
|
|
|
|
% Micro-typography
|
|
|
\usepackage[factor=500,tracking,babel=true]{microtype}
|
|
|
\SetTracking{encoding={*}, shape=sc}{0} % Fix bug with microtype tracking in TeX Live 2019+
|
|
|
|
|
|
% Lettrine
|
|
|
\usepackage{lettrine}
|
|
|
\setcounter{DefaultLines}{4}
|
|
|
\renewcommand{\LettrineFontHook}{\color[gray]{0.5}}
|
|
|
|
|
|
% Utilisation de babel pour les paramètres de langues
|
|
|
\usepackage[english,main=french]{babel}
|
|
|
\frenchbsetup{ItemLabels=\textendash}
|