diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2019-08-10 20:36:56 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2019-08-10 20:36:56 +0200 |
commit | f83e8b39df08ea9e9ca130a4578c749d48d55844 (patch) | |
tree | 2f774eaf9d5aeaa87d5b6e19697c123584aaa495 /model_2/resources/10_title_style.tex |
First commit
Diffstat (limited to 'model_2/resources/10_title_style.tex')
-rwxr-xr-x | model_2/resources/10_title_style.tex | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/model_2/resources/10_title_style.tex b/model_2/resources/10_title_style.tex new file mode 100755 index 0000000..3f57a84 --- /dev/null +++ b/model_2/resources/10_title_style.tex @@ -0,0 +1,46 @@ +\usepackage{titlesec}
+
+
+\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}
+ {}
+ {}
|