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

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

\makeatletter

\def\@maketitle{%
  \vspace*{0.5cm}
  \textcolor{altColor}{%
    \Garamond\selectfont
    \huge \@title
  }
  \vspace*{1.0cm}
}
\makeatother

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

  \node (A) at (0,0)
      {\Large{\textit{#1 }}};
  \node (B) at (5,0) {};
  \node (C) at (-5,0) {};

  % Change the color for the lines and apply the ornament
  \draw [altColor, line width=0.2mm] (C) to (A.west);
  \draw [altColor, line width=0.2mm] (A.east) to (B);
\end{tikzpicture}}

% Titre de niveau 1
% On affiche le Swash sur les initiales ici
\titleformat{\section}
  {\centering}
  {\thesection}
  {}
  {\SecTitle{\GaramondSwsh\selectfont{#1 }}}

% Titre de niveau 2
\titleformat{\subsection}
  {\bf\centering}
  {\thesubsection}
  {}
  {#1}

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