aboutsummaryrefslogtreecommitdiff
path: root/model_1/resources/10_title_style.tex
blob: f1fdc1677fe8d1ae8439fe627ee6489b165e852b (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
\usepackage{titlesec}

\providecommand{\DUdocumentsubtitle}[1]{%
  %\begin{nthcolumn}{1}
  \color{black}
  \em
  \EBLigatures\selectfont
  \Large
  #1
  %\end{nthcolumn}
}

\makeatletter

\def\@maketitle{%
  \vspace*{1cm}
  \begin{nthcolumn*}{1}%
  \raggedright
  \textcolor{orange}{%
    \fontsize{1.2cm}{2cm}\CaviarDreamsFont\selectfont \@title
  }
  \end{nthcolumn*}
}
\makeatother


\newcommand{\periodafter}[1]{#1.}

% Titre de niveau 1
\titleformat{\section}
  {\CaviarDreamsFont\selectfont\large}
  {\thesection}
  {0em}
  {\periodafter}
  [\titleline{{\color{backsidecolor}\titlerule[1pt]}}]

% Titre de niveau 2
\titleformat{\subsection}
  {\large}
  {\thesubsection}
  {}
  {\textcolor{backsidecolor}}

% Titre de niveau 3
\titleformat{\subsubsection}
  {\bfseries\normalsize}
  {\thesubsubsection}
  {2em}
  {}
  {}