aboutsummaryrefslogtreecommitdiff
path: root/model_6/resources/10_title_style.tex
diff options
context:
space:
mode:
Diffstat (limited to 'model_6/resources/10_title_style.tex')
-rwxr-xr-xmodel_6/resources/10_title_style.tex53
1 files changed, 53 insertions, 0 deletions
diff --git a/model_6/resources/10_title_style.tex b/model_6/resources/10_title_style.tex
new file mode 100755
index 0000000..05036f4
--- /dev/null
+++ b/model_6/resources/10_title_style.tex
@@ -0,0 +1,53 @@
+\usepackage[explicit]{titlesec}
+\usepackage{pgfplots}
+\pgfplotsset{compat=newest}
+
+\providecommand{\DUdocumentsubtitle}[1]{%
+ \color{gray}
+ \normalfont
+ \em
+ \huge
+ #1
+}
+
+\makeatletter
+
+\def\@maketitle{%
+ \vspace*{1cm}
+ \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}
+ {}
+ {}