summaryrefslogtreecommitdiff
path: root/resources/title_style.tex
diff options
context:
space:
mode:
Diffstat (limited to 'resources/title_style.tex')
-rwxr-xr-xresources/title_style.tex67
1 files changed, 67 insertions, 0 deletions
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}
+ {}
+ {}
+