blob: 3f57a849ff6b13acb939128927c850a4a9b71c81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
\usepackage{titlesec}
\providecommand*{\DUdocumentsubtitle}[1]{{\EBLigatures\selectfont\em\LARGE\begin{flushright}#1\end{flushright}}}
\makeatletter
%\def\@subtitle{\relax}
\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}}
\def\@maketitle{%
\begin{tcolorbox}[colback=sidecolor, sharp corners]
\begin{center}
\vspace*{1cm}
\textcolor{white}{\fontsize{1.2cm}{2cm}\CaviarDreamsFont\selectfont \@title}
\end{center}
\vspace*{1cm}
\end{tcolorbox}
}
\makeatother
\newcommand{\periodafter}[1]{#1.}
% Titre de niveau 1
\titleformat{\section}
{\CaviarDreamsFont\selectfont\Large\centering}
{\thesection}
{0em}
{\vspace{1cm}}
[]
% Titre de niveau 2
\titleformat{\subsection}
{\large}
{\thesubsection}
{}
{\textcolor{black!69}}
% Titre de niveau 3
\titleformat{\subsubsection}
{\bfseries\normalsize}
{\thesubsubsection}
{2em}
{}
{}
|