Changement titres avec police grasse

This commit is contained in:
François Pelletier 2024-07-18 09:19:04 -04:00
parent 9735228d95
commit 447f08672c
24 changed files with 244 additions and 0 deletions

View file

@ -46,6 +46,16 @@
\setsansfont[Path=font/tex-gyre-adventor/]{texgyreadventor-regular.otf}
\setmonofont[Path=font/SourceCodePro/]{SourceCodePro-Regular.ttf}
% Specify different font for section headings
\usepackage{titlesec}
\usepackage{titling}
\newfontfamily\headingfont[Path=font/tex-gyre-adventor/]{texgyreadventor-bold.otf}
\titleformat*{\section}{\LARGE\headingfont}
\titleformat*{\subsection}{\Large\headingfont}
\titleformat*{\subsubsection}{\large\headingfont}
\renewcommand{\maketitlehooka}{\headingfont}
\newcommand{\emoji}[1]{
{\setmainfont[Path=font/NotoColorEmoji/]{NotoColorEmoji.ttf}[Renderer=Harfbuzz]{#1}}
}