-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.sty
58 lines (44 loc) · 1.13 KB
/
layout.sty
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
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{titling}
\usepackage[explicit]{titlesec}
\usepackage{pifont} % Pour la puce de Gineste
\usepackage{soul} % Pour souligner
\usepackage{dirtree} % Pour afficher des arbres de fichiers, cf. https://tug.ctan.org/macros/generic/dirtree/dirtree.pdf
\def\@maketitle{%
\vspace{-1.5cm}%
\begin{center}%
\LARGE
\underline{\underline{\thetitle\hspace{0.2em}: }}\\
\SubTitle
\end{center}%
\par
\vskip 1.5em}
\titleformat{\section}
{\normalfont\Large\bfseries\color{redd}}
{\thesection .}
{1em}
{#1}
[{\titlerule[0.9pt]}]
\titleformat{\subsection}
{\normalfont\bfseries\color{blued}}
{\thesubsection.}
{1em}
{#1}
[{\titlerule[0.7pt]}]
\titleformat{\subsubsection}
{\normalfont\color{blued}}
{\thesubsubsection.}
{1em}
{#1}
[{\titlerule[0.4pt]}]
\pagestyle{fancy}
\renewcommand\headrulewidth{1pt}
\fancyhead[L]{\Subject\hspace{0.4em}- \@title}
\fancyhead[R]{\thedate}
\renewcommand\footrulewidth{1pt}
\fancyfoot[L]{\theauthor}
\fancyfoot[R]{\Place}
\fancyfoot[C]{\thepage/\pageref{LastPage}}
\fancypagestyle{plain}{}