blob: e3cf026b7ec24143ed9fc8b72270cd8a00c00f35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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}
{}
{}
|