En-têtes communes pour LaTeX
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.0 KiB

  1. % Définition des polices du document
  2. \usepackage{fontspec}
  3. \defaultfontfeatures[EBGaramond]{Ligatures=TeX,Numbers={Lining,Proportional}}
  4. \setmainfont[
  5. Extension = .otf,
  6. UprightFont = *-Regular,
  7. ItalicFont = *-Italic,
  8. BoldFont = *-Bold,
  9. BoldItalicFont = *-BoldItalic
  10. ]{EBGaramond}
  11. % Police pour les mathématiques
  12. \usepackage[math-style=french,warnings-off={mathtools-colon,mathtools-overbracket}]{unicode-math}
  13. \setmathfont[StylisticSet={2}]{Garamond-Math.otf}
  14. %StylisticSet
  15. %2 → Curved \partial
  16. %7 → \int variant
  17. %8 → Garamond-compatible \mathcal (experimental)
  18. % Micro-typography
  19. \usepackage[factor=500,tracking,babel=true]{microtype}
  20. \SetTracking{encoding={*}, shape=sc}{0} % Fix bug with microtype tracking in TeX Live 2019+
  21. % Lettrine
  22. \usepackage{lettrine}
  23. \setcounter{DefaultLines}{4}
  24. \renewcommand{\LettrineFontHook}{\color[gray]{0.5}}
  25. % Utilisation de babel pour les paramètres de langues
  26. \usepackage[english,main=french]{babel}
  27. \frenchbsetup{ItemLabels=\textendash}