aboutsummaryrefslogtreecommitdiff
path: root/model_6/resources/10_title_style.tex
blob: a19435492cfac124f715b083b1e4f43fd6d89a7a (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
\usepackage[explicit]{titlesec}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}

\providecommand{\DUdocumentsubtitle}[1]{%
  \color{gray}
  \normalfont
  \em
  \huge
  #1
}

\makeatletter

\def\@maketitle{%
  \fontsize{1.2cm}{2cm}
  \TitleFont\selectfont \@title
}
\makeatother

\newcommand\SecTitle[1]{%
\begin{tikzpicture}

  \node (A) at (0,0)
      {\Large{\CaviarDreamsFont{#1}}};

  \draw [line width=1.5mm,color=altColor]
    (- \definitionWidth - 1.5cm,0) -- (A.west);

\end{tikzpicture}}

% Titre de niveau 1
\titleformat{\section}
  {}
  {\thesection}
  {}
  {\SecTitle{\textcolor{altColor}{#1}}}

% Titre de niveau 2
\titleformat{\subsection}
  {\large}
  {\thesubsection}
  {}
  {\textcolor{altColor}{\Large \bf {#1}}}

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