Slightly customize chapter and section title styles.

This commit is contained in:
Sergiu Ivanov 2024-01-07 19:57:18 +01:00
parent e92389d3b0
commit ee9eaf9689

13
hdr.tex
View file

@ -25,6 +25,7 @@
\usepackage[language=english]{lipsum} \usepackage[language=english]{lipsum}
\usepackage{fontspec} \usepackage{fontspec}
\usepackage{polyglossia} \usepackage{polyglossia}
\usepackage{titlesec}
\hypersetup{ \hypersetup{
pdfauthor={Sergiu Ivanov}, pdfauthor={Sergiu Ivanov},
@ -50,6 +51,18 @@
\setdefaultlanguage{english} \setdefaultlanguage{english}
\setotherlanguages{french} \setotherlanguages{french}
\titleformat{\chapter}[frame]
{\itshape\color{Prune}}
{\filright
\normalsize
\enspace Chapter \thechapter\enspace}
{10mm}
{\fontsize{35}{20}\selectfont\normalfont\bfseries\filright\hspace{1ex}}
\titleformat{\section}{\Large\normalfont\bfseries\color{Prune}}{\thesection \hspace{1ex}}{1ex}{}
\titleformat{\subsection}{\large\normalfont\bfseries\color{Prune}}{\thesubsection \hspace{1ex}}{1ex}{}
\titleformat{\subsubsection}{\normalsize\normalfont\bfseries\color{Prune}}{}{1ex}{}
\graphicspath{{pics/}} \graphicspath{{pics/}}
\usetikzlibrary{calc} \usetikzlibrary{calc}