Blame view

core/preambule.tex 3.16 KB
3b1684cea   quillotm   First base structure
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
  \usepackage{import}
  \usepackage{todonotes}
  
  
  
  % Packages to use
  \usepackage{float}
  \usepackage{csquotes}
  \usepackage{amsmath,graphicx,epsfig,amssymb}
  \usepackage{cancel}
  \usepackage{tikz}
  \usetikzlibrary{shapes, positioning, arrows, fit, calc}
  \usepackage{rotating}
  \usepackage{multirow}
  \usepackage{booktabs}
  \usepackage[many]{tcolorbox}
  
  
  
  
  % Fonts
  \usepackage{lmodern}
  
  % All possible fonts, uncomment to use it
  % \usepackage{kpfonts}
  % \usepackage{libertine}
  % \usepackage{biolinum}
  
  
  % List of theme colors
  \definecolor{color1}{rgb}{0.10, 0.32, 0.46} 	% Bleu
  \definecolor{color2}{rgb}{0.91, 0.94, 0.96} 	% Gris
  \definecolor{color3}{rgb}{0.85, 0.96, 0.65} 	% Vert clair
  \definecolor{color4}{rgb}{1, 0.76, 0} 		% Orange
  \definecolor{color5}{rgb}{1, 0.34, 0.20} 	% Orange foncé
  \definecolor{color6}{rgb}{0.78, 0, 0.22} 		% Rouge
  
  
  % List of other colors
  \definecolor{crimsonglory}{rgb}{0.75, 0.0, 0.2}
  \definecolor{crimson}{rgb}{0.86, 0.08, 0.24}
  \definecolor{cerulean}{rgb}{0.0, 0.48, 0.65}
  \definecolor{tealblue}{rgb}{0.21, 0.46, 0.53}
  \definecolor{richelectricblue}{rgb}{0.03, 0.57, 0.82}
  \definecolor{tealgreen}{rgb}{0.0, 0.51, 0.5}
  \definecolor{midnightgreen}{rgb}{0.0, 0.29, 0.33}
  
  % Config tcolorbox for "encarts"
  \tcbset{
  	enhanced,
  	title filled=false,
  	coltitle=color2,
  	fonttitle=\large,
  	colbacktitle=color6,
  	fontupper=\small,
  	arc=1mm,
  	outer arc=1mm,
  	boxrule=1mm,
  	left=3mm,
  	right=3mm,
  	top=3mm,
  	bottom=3mm,
  	colframe=color2,
  	colback=color2,
  	lefttitle=3mm,
  	righttitle=3mm,
  	toptitle=3mm,
  	bottomtitle=3mm,
  	drop lifted shadow} 
  
  
  % Archived Commands we can use
  % \usepackage{FiraSans}
  
  
  
  % Change the fonts with sectsy package
  \usepackage{sectsty}
  \allsectionsfont{\color{color1}\sffamily}
  
  % Other examples of commands to change the fonts
  % \allsectionsfont{\firamedium}
  % \partfont{\color{crimsonglory}\sffamily}
  % \chapterfont{\color{midnightgreen}\sffamily}
  
  
  
  
  
  
  \usepackage{tocloft}
  \renewcommand\cftchapafterpnum{\vskip6pt}
  \renewcommand\cftsecafterpnum{\vskip6pt}
  \renewcommand\cftsubsecafterpnum{\vskip4pt}
  
  
  \renewcommand{\cfttoctitlefont}{\color{cerulean}\Huge\bfseries\sffamily}
  \renewcommand{\cftloftitlefont}{\color{cerulean}\Huge\bfseries\sffamily}
  \renewcommand{\cftlottitlefont}{\color{cerulean}\Huge\bfseries\sffamily}
  
  
  
  % Adjust sectional unit title fonts in ToC
  \renewcommand{\cftpartfont}{\large\bfseries\sffamily}
  \renewcommand{\cftchapfont}{\large\bfseries\sffamily}
  \renewcommand{\cftsecfont}{\rmfamily}
  \renewcommand{\cftsubsecfont}{\rmfamily}
  
  
  
  
  
  % Définition des encarts
  
  ewcounter{encartcounter}[chapter]
  
  ewcommand\encart[2]{\vspace{2.5em}
   \refstepcounter{encartcounter}
   \begin{tcolorbox}[title=Encart \thechapter.\theencartcounter~: #1]
    #2
   \end{tcolorbox}
   \vspace{1.5em}
  }
  
  
  
  \usepackage{siunitx}
  \sisetup{
   % load-configurations=abbreviations,
   % load-configurations=binary,
   abbreviations,
   binary-units,
   inter-unit-separator=\cdot,
   output-decimal-marker={,},
   range-phrase={--},
   range-units=single
  }
  
  
  \usepackage{hyperref}
  
  \usepackage[hyphenbreaks]{breakurl}
  
  \usepackage{parskip}
  \setlength{\parindent}{15px}
  % \raggedbottom % évite les grands blancs entre les paragraphes
  
  
  ewcommand{\citep}[1]{(\cite{#1})}
  
  
  
  \input{infos}
  
  \subimport{refs/}{content}