From a5696db7113a3b1d7350775aecb280300a08031c Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@dailly.me>
Date: Wed, 1 May 2024 14:34:22 +0200
Subject: Added a new model

---
 model_7/resources/10_title_style.tex | 61 ++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100755 model_7/resources/10_title_style.tex

(limited to 'model_7/resources/10_title_style.tex')

diff --git a/model_7/resources/10_title_style.tex b/model_7/resources/10_title_style.tex
new file mode 100755
index 0000000..993b625
--- /dev/null
+++ b/model_7/resources/10_title_style.tex
@@ -0,0 +1,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}
+  {}
+  {}
-- 
cgit v1.2.3

