From 3fc344bdae8cbfaaf7d49d13ef2e021e1a974770 Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@chimrod.com>
Date: Wed, 9 May 2018 08:16:05 +0200
Subject: Initial commit

---
 resources/title_style.tex | 67 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100755 resources/title_style.tex

(limited to 'resources/title_style.tex')

diff --git a/resources/title_style.tex b/resources/title_style.tex
new file mode 100755
index 0000000..e3cf026
--- /dev/null
+++ b/resources/title_style.tex
@@ -0,0 +1,67 @@
+\usepackage{titlesec}
+
+%% mise en page du titre
+
+%\let\oldtitle\title
+%\renewcommand{\title}[1]{\oldtitle {titre}}
+
+%\makeatletter
+%\def\maketitle{%
+%%\thispagestyle{empty} %si on veut que la premiere page n'ai pas d'en-tete
+%%	\vspace*{\fill}
+%%\begin{center}
+%%	\fcolorbox{grisfonce}{fondtitre}{
+%%	\begin{minipage}{0.97\textwidth}
+%%	\vspace*{0.8cm}
+%%	\begin{center}
+%%		\begin{Huge}\sffamily\color{blanc}
+%%			\@title
+%%		\end{Huge}
+%%		\vfill
+%%	\end{center}
+%%	\begin{flushright}\sffamily\color{blanc}
+%%%		\@date \\ %si pas d'en-tete premiere page, alors mettre date ici
+%%		\@author
+%%	\end{flushright}
+%%	\end{minipage}
+%%	}
+%%\end{center}
+%%\vspace*{\fill}
+%}
+%\makeatother
+
+\newcommand{\periodafter}[1]{#1.}
+
+\titleformat{\section}[display]% shape
+  {\huge\bfseries}% format
+  {
+    \makebox[0pt][l]{%
+      \raisebox{-66pt}[100pt][0pt]{%
+    \textcolor{black!30}{\fontsize{136pt}{136pt}\selectfont\thesection}%
+      }
+    }
+  }
+  {0pt}
+  {\CaviarDreamsFont\Huge\bfseries}
+
+\newlength\marginSecLen
+\setlength\marginSecLen{\dimexpr\oddsidemargin+0.8in+\hoffset\relax}
+
+% Titre de niveau 2
+\titleformat{\subsection}[block]
+  {\bfseries\Large}
+  {\llap{\hspace*{-\marginSecLen}\huge\textcolor{redColor}\thesubsection\hfill}}
+  {0em}
+  {}
+%  {\huge\textcolor{redColor}\thesubsection}
+%  {5pt}
+%  {}
+
+% Titre de niveau 3
+\titleformat{\subsubsection}
+  {\CaviarDreamsFont\selectfont\bfseries\large}
+  {\thesubsubsection}
+  {2em}
+  {}
+  {}
+
-- 
cgit v1.2.3

