-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.tex
86 lines (73 loc) · 2.91 KB
/
config.tex
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
\usepackage{kpfonts} % police kp personnalisée
\usepackage{geometry} % setup des marges du document
\usepackage{fancyhdr} % modif des headers/footers
\usepackage{titling} % setup du pre/post title
\usepackage{tikz}
\usepackage{caption} % cutomise les caption
\usepackage{xcolor}
\usepackage{fontspec} % dépendance de FontAwesome
\usepackage{fontawesome5} % icones FontAwesome
%% Définition des couleurs
\definecolor{light}{HTML}{EEEEEE}
\definecolor{highlight}{HTML}{750E21}
\definecolor{dark}{HTML}{393E46}
\definecolor{titles}{HTML}{222831}
\definecolor{StackOgray}{HTML}{e3e6e8}
\definecolor{colgraph1}{HTML}{4e6766}
\definecolor{colgraph2}{HTML}{a5c882}
\definecolor{colgraph3}{HTML}{5ab1bb}
%% Définition des marges, headers et footers
\geometry{a4paper, left=20mm, top=25mm, bottom=20mm, right=20mm}
\pagestyle{fancy}
\fancyhead{}
\renewcommand{\headrulewidth}{0pt} % retire la ligne du fancy header
\fancyfoot[R]{\includegraphics[width=30pt]{imgs/MECEN_logo.png}}
%\fancyfoot[L]{\faIcon{creative-commons-by}}
%% Page de garde
\pretitle{
\vspace{-7.5em}
\begin{center}
\LARGE{\textsc{Master Économiste d'Entreprise}\\
\vspace{2em}}
\begin{minipage}[t]{0.6\textwidth}
\includegraphics[width=\textwidth,height=0.25\textheight,keepaspectratio]{imgs/UT_logo.jpg}
\end{minipage}%
\begin{minipage}[t]{0.4\textwidth}
\raisebox{0.15\height}{\includegraphics[width=\textwidth,height=0.11\textheight,keepaspectratio]{imgs/MECEN_logo.png}}
\end{minipage}\\
\vspace{7.5em}
\Large{\textsc{Recherche, Réalisation, Restitution}}
\vspace{5em}\\
\rule{16cm}{2pt}\vspace{1em}
}
\posttitle{\rule{16cm}{2pt}\end{center}}
%% Améliore la commande `text`
\renewcommand{\texttt}[1]{\colorbox{light}{\color{highlight}{\ttfamily{#1}}}}
%% Améliore la commande footnote
\renewcommand*{\thefootnote}{\textcolor{highlight}{(\arabic{footnote})}}
%% Ajoute la commande pour faire ***
\newcommand{\macrostars}{
\vspace{2em}
\begin{center}
\textcolor{highlight!80!black}{\Large{$\ast\ast\ast$}}
\end{center}
}
%% Commande de divider
\newcommand{\divider}{\setlength{\parindent}{0pt}\textcolor{StackOgray!30}{\rule{\linewidth}{0.6pt}}\smallskip}
%% Caption de Figure et Table customisée
\DeclareCaptionFormat{myformat}{\textcolor{highlight}{\textbf{Figure \thefigure} $-$ }\ #3}
\captionsetup[figure]{format=myformat}
\DeclareCaptionFormat{mytableformat}{\textcolor{highlight}{\textbf{Table \thetable} $-$ }\ #3}
\captionsetup[table]{format=mytableformat}
%% Customisation du titre des chapitres
\makeatletter
\renewcommand{\chapter}{%
\clearpage % Nouvelle page avant chaque chapitre
\@startsection{chapter}%
{0} % Niveau de sectionnement
{0mm} % Indentation du titre
{-\baselineskip} % Espace avant
{2\baselineskip} % Espace après
{\normalfont\Huge\bfseries | \Huge\bfseries}% Style du titre avec le symbole "|"
}
\makeatother