aboutsummaryrefslogtreecommitdiff
path: root/model_2/resources/10_title_style.tex
blob: f3914173f112ee4cf7a1b51fec2be7ff531ab518 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
\usepackage{titlesec}
\usepackage[many]{tcolorbox}


\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}
  {}
  {}

\newcommand{\DUtitletitle}[1]{%
  \begin{tcolorbox}[colback=sidecolor, sharp corners]%
  \begin{center}%
  \begin{CaviarDreamsBoldFont}%
      {\textbf\selectfont\color{white}{\scriptsize\uppercase{#1}}}%
  \end{CaviarDreamsBoldFont}%
  \end{center}
  \end{tcolorbox}
 }

\let\oldtitle\maketitle
\renewcommand{\maketitle}{%
  {\oldtitle}
  \begin{paracol}{2}
}