-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheatsht-preamble-general.tex
702 lines (658 loc) · 20.4 KB
/
cheatsht-preamble-general.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
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
% !TEX encoding = UTF-8 Unicode
% LaTeX Preamble for all cheatsheets
% Author : Gabriel Crépeault-Cauchon
% HOW-TO : copy-paste this file in the same directory as your .tex file, and add in your preamble the next command right after you have specified your documentclass :
% \input{preamble-cheatsht.tex}
% ---------------------------------------------
% ---------------------------------------------
% Extra note : this preamble creates document that are meant to be used inside the multicols environment. See the documentation on internet for further information.
%% -----------------------------
%% Encoding packages
%% -----------------------------
%% voir https://tex.stackexchange.com/questions/44694/fontenc-vs-inputenc pour une explication de ces deux paquetages
\usepackage[T1]{fontenc} % used for output of special characters
\usepackage[utf8]{inputenc} % used for user input of special characters (e.g. «»)
\usepackage{babel}
\usepackage{lmodern}
\usepackage[colorinlistoftodos]{todonotes}
%% -----------------------------
%% Variable definition
%% -----------------------------
\def\auteur{\href{https://github.com/ressources-act/Guide_de_survie_en_actuariat/blob/master/02_Cheatsheets/contributeurs/contributeurs-cheatshts.pdf}{\faGithub \ Liste des contributeurs}}
\def\BackgroundColor{white}
\usepackage{xargs} % for more logical new function creation
%% -----------------------------
%% Margin and layout
%% -----------------------------
% Determine the margin for cheatsheet
\usepackage[landscape, hmargin=1cm, vmargin=1.7cm]{geometry}
\usepackage{multicol}
\usepackage{multirow}
% Remove automatic indentation after section/subsection title.
\setlength{\parindent}{0cm}
% Save space in cheatsheet by removing space between align environment and normal text.
\usepackage{etoolbox}
\newcommand{\zerodisplayskips}{%
\setlength{\abovedisplayskip}{0pt}%
\setlength{\belowdisplayskip}{0pt}%
\setlength{\abovedisplayshortskip}{0pt}%
\setlength{\belowdisplayshortskip}{0pt}}
\appto{\normalsize}{\zerodisplayskips}
\appto{\small}{\zerodisplayskips}
\appto{\footnotesize}{\zerodisplayskips}
%% -----------------------------
%% URL and links
%% -----------------------------
\usepackage{titlesec}
\usepackage{hyperref}
\hypersetup{colorlinks = true, urlcolor = gray!70!white, linkcolor = black}
%% -----------------------------
%% Document policy (uncomment only one)
%% -----------------------------
% \usepackage{concrete}
\usepackage{mathpazo}
% \usepackage{frcursive} %% permet d'écrire en lettres attachées
% \usepackage{aeguill}
% \usepackage{mathptmx}
% \usepackage{fourier}
%% -----------------------------
%% Math configuration
%% -----------------------------
\usepackage[fleqn]{amsmath}
\usepackage{amsthm,amssymb,latexsym,amsfonts}
\usepackage{textcomp} %% j'avais un avertissement, voir https://latex.org/forum/viewtopic.php?f=4&t=3364#p13124 pour pourquoi j'import ce paquetage
\usepackage{gensymb}
\usepackage{empheq}
\usepackage{numprint}
\usepackage{dsfont} % Pour avoir le symbole du domaine Z
%\usepackage{bigints} % pour des gros intégrales
% Mathematics shortcuts
\usepackage{scalerel,stackengine,amsmath}
\newcommand\equalhat{\mathrel{\stackon[1.5pt]{=}{\stretchto{%
\scalerel*[\widthof{=}]{\wedge}{\rule{1ex}{3ex}}}{0.5ex}}}}
%% Créé des cercles avec des chiffres
%% Example usage: \circled{1} [creates an inline circle with 1]
%% + Within a list, \begin{enumerate}[label = \circled{\arabic*}]
\DeclareRobustCommand*\circled[2]{%
\tikz[baseline = (char.base)]{%
\node[%
shape = circle,%
fill = #2!40,% inner circle
draw = #2,% outer rim
inner sep = 2pt%
] (char) {#1};%
}%
}
\DeclareRobustCommand*\ellipsed[2]{%
\tikz[baseline = (char.base)]{%
\node[%
shape = rectangle,%
fill = #2!40,% inner circle
draw = #2,% outer rim
inner sep = 2pt,%
rounded corners = 4pt
] (char) {#1};%
}%
}
\DeclareRobustCommand*\rectangled[2]{%
\tikz[baseline = (char.base)]{%
\node[%
shape = rectangle,%
fill = #2!40,% inner circle
draw = #2,% outer rim
inner sep = 2pt%
] (char) {#1};%
}%
}
\newcommand{\reels}{\mathbb{R}}
\newcommand{\entiers}{\mathbb{Z}}
\newcommand{\naturels}{\mathbb{N}}
\newcommand{\eval}{\biggr \rvert}
\usepackage{cancel}
\newcommand{\derivee}[1]{\frac{\partial}{\partial #1}}
\newcommand{\prob}[1]{\Pr \left( #1 \right)}
\newcommand{\esp}[1]{\mathrm{E} \left[ #1 \right]} % espérance
\newcommand{\variance}[1]{\mathrm{Var} \left( #1 \right)}
\newcommand{\covar}[1]{\mathrm{Cov} \left( #1 \right)}
\newcommand{\laplace}{\mathcal{L}}
\newcommand{\deriv}[3][]{\frac{\partial^{#1}#3}{\partial #2^{#1}}}
\newcommand{\e}[1]{\mathrm{e}^{#1}}
\newcommand{\te}[1]{\text{exp}\left\{#1\right\}}
\DeclareMathSymbol{\shortminus}{\mathbin}{AMSa}{"39}
%% Example usage: \sumz{n}{i = 1} <=> \overset{n}{\underset{i = 1}{\sum}}
\newcommand{\sumz}[2]{\overset{#1}{\underset{#2}{\sum}}}
%% Example usage: \limz{h}{0} <=> \underset{h \rightarrow 0}{\lim}
\newcommand{\limz}[2]{\underset{#1 \rightarrow #2}{\lim}}
%% Example usage: \LVx{h} <=> \actsymb[h]{L}{}[]
%% \LVx[n]{h} <=> \actsymb[h]{L}{}[n]
\newcommand{\LVx}[2][]{\actsymb[#2]{L}{}[#1]}
\DeclareMathOperator*{\argmax}{arg\,max}
\DeclareMathOperator*{\argmin}{arg\,min}
%%% \icbox{<frame color>}{<background color>}{<text>}
\newcommandx{\icbox}[3][1 = bleudefrance, 2 = beaublue]{\fcolorbox{#1}{#2}{#3}}
%% other good color combo is azure(colorwheel) arsenic
\usepackage{longfbox}
% voir cette page, paquetage avec CSS https://ctan.math.illinois.edu/macros/latex/contrib/longfbox/longfbox.html
\newfboxstyle{rappel}{
background-color = tealblue!20!white,
border-style = outset,
breakable = true,
%
border-color = tealblue,
border-radius = 1ex,
%
padding-bottom = 0.2ex,
padding-top = 0.2ex,
padding-left = 0.4ex,
padding-right = 0.4ex,
%
border-top-width = 0.3ex,
border-bottom-width = 0.3ex,
%
border-left-width = 1ex,
border-bottom-left-radius = 0.2ex,
%
border-right-width = 1ex,
border-top-right-radius = 0.2ex,
%
}
\newfboxstyle{formula}{
background-color = beaublue,
border-color = bleudefrance
}
\newfboxstyle{imphl}{
padding = 0pt,
margin = 0pt,
baseline-skip = false,
background-color = palechestnut!60!white,
border-color = white
}
\newfboxstyle{conditions}{
background-color = palechestnut,
border-color = red
}
\newcommandx{\rcbox}[3][1 = bleudefrance, 2 = beaublue]{\lfbox[border-radius = 0.5ex, background-color = #2, border-color = #1]{#3}}
% To indicate equation number on a specific line in align environment
\newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}}
%
% Actuarial notation packages
%
\usepackage{actuarialsymbol}
\usepackage{actuarialangle}
%
% Matrix notation for math symbols (\bm{•})
%
\usepackage{bm}
% Matrix notation variable (bold style)
\newcommand{\matr}[1]{\mathbf{#1}}
%% -----------------------------
%% tcolorbox configuration
%% -----------------------------
\usepackage[many]{tcolorbox}
\tcbuselibrary{xparse}
\tcbuselibrary{breakable}
%%% Explanation of various arugments :
%% colframe: colour of the rim.
%% ex.: colframe = blue
%% colback: colour of the box.
%% ex.: colback = blue
%% --------
%% fonttitle: font of the title
%% ex.: fonttitle = \bfseries
%% title: actual title text.
% ex.: title = Reasons why LaTeX is useful
%% --------
%% arc: arc of corners' turn.
%% ex.: arc = 12pt
%% + an arc of 0 implies a rectangle.
%% < type > corners = < location >: Creates < type > corners at the specified location.
% ex.: sharp corners (creates sharp corners for all corners)
% ex.: rounded corners = north (creates round corners for top 2 corners)
%% + See pages 34 to 35 for a visualisation of the different types and locations.
%% + We can specify rounded corners after a sharp corners to obtain sharp corners everywhere but one place.
%% --------
%% attach boxed title to < where > = {}: Creates a seperate box for the title.
%% ex.: attach boxed title to top center
%% + Arguments in parantheses are optional and be used to shift the position.
%% ex.: yshift = -\tcboxedtitleheight/2
%% ex.: xshift = 2mm
%% boxed title style = {}: Modifies style of box which has same functions as a regular tcb.
%% <where>rule: Modifies width of border.
% ex.: bottomrule = 2mm
%% frame style tile={width=1cm}{pink_marble.png} can set a background image for the title box
%%
%%
%% Generalized colour box for definitions
%%
%% Example usage: \begin{definitionGENERAL}{< title >}[< symbol before title >][< color >]
\DeclareTColorBox{definitionGENERAL}{
m
o
O{amber(sae/ece)}
}
{
enhanced,
colback = #3!5!white,
arc = 12pt,
sharp corners,
% watermark tikz = {
% \draw[line width = 2mm] circle (1cm) node{
% \fontfamily{ptm}
% \fontseries{b}
% \fontsize{20mm}{20mm}
% \selectfont 1
% };
% },
% watermark opacity = 0.70,
rounded corners = uphill,
pad at break* = 0mm, % to split the box
title = {#1},
fonttitle = \bfseries,
before title = {#2 \quad},
minipage boxed title* = -3cm,
attach boxed title to top left = {
% xshift = \tcboxedtitlewidth/2,
yshift = -\tcboxedtitleheight/4
},
boxed title style = {
size = small,
colback = #3!80,
colframe = #3,
arc = 5pt,
rounded corners,
rightrule = 0.5mm
},
frame style = {
left color = #3,
right color = #3!60,
fill = white
},
breakable
}
%%
%% Coloured box "definition" for definitions
%%
\DeclareTColorBox{definition}{ o } % #1 parameter
{
colframe=blue!60!green,colback=blue!5!white, % color of the box
breakable,
pad at break* = 0mm, % to split the box
title = {#1},
after title = {\large \hfill \faBook},
}
%%
%% Coloured box "definition2" for definitions
%%
\DeclareTColorBox{definitionNOHFILL}{ o } % #1 parameter
{
colframe=blue!60!green,colback=blue!5!white, % color of the box
pad at break* = 0mm, % to split the box
title = {#1},
before title = {\faBook \quad },
breakable
}
%%
%% Coloured box "definition2" for definitions
%%
\DeclareTColorBox{definitionNOHFILLsub}{ o } % #1 parameter
{
colframe=blue!40!green,colback=blue!5!white, % color of the box
pad at break* = 0mm, % to split the box
title = {#1},
before title = {\faNavicon \quad }, %faBars faGetPocket
breakable
}
%%
%% Coloured box "definition3" for propriétés
%%
\DeclareTColorBox{definitionNOHFILLprop}{ o } % #1 parameter
{
colframe=amber(sae/ece),colback=amber(sae/ece)!5!white, % color of the box
pad at break* = 0mm, % to split the box
title = {#1},
before title = {\faGetPocket \quad }, %faBars faGetPocket
breakable
}
%%
%% Coloured box "definition3" for propriétés
%%
\DeclareTColorBox{definitionNOHFILLpropos}{ o } % #1 parameter
{
colframe=carmine,colback=carmine!5!white, % color of the box
pad at break* = 0mm, % to split the box
title = {#1},
before title = {\faColumns \quad }, %\faEllipsisH faColumns
breakable
}
%%
%% Coloured box "algo" for algorithms
%%
\newtcolorbox{algo}[ 1 ]
{
colback = blue!5!white,
colframe = blue!75!black,
title=#1,
fonttitle = \bfseries,
breakable
}
%%
%% Coloured box "conceptgen" for points adding to a concept's deifintion
%%
\newtcolorbox{conceptgen}[ 1 ]
{
breakable,
colback = beaublue,
colframe = airforceblue,
title=#1,
fonttitle = \bfseries
}
%%
%% Coloured box "rappel" pour rappel de formules
%%
\DeclareTColorBox{conceptgen_enhanced}{ o }
{
enhanced,
title = #1,
colback=beaublue, % color of the box
% colframe=blue(pigment),
% colframe=arsenic,
colbacktitle=airforceblue,
fonttitle = \bfseries,
breakable,
boxed title style={size=small,colframe=arsenic} ,
attach boxed title to top center = {yshift=-3mm,yshifttext=-1mm},
}
%%
%% Coloured box "probch1" pour formules relatives au 1er chapitre de prob
%%
\newtcolorbox{probch1}[ 1 ]
{
colback = ao(english)!40!white,
colframe = forestgreen(traditional),
fonttitle = \bfseries,
breakable,
title=#1
}
%%
%% Coloured box "probch2" pour formules relatives au 2e chapitre de prob
%%
\newtcolorbox{probch2}[ 1 ]
{
colback = orange!50!white,
colframe = burntorange,
fonttitle = \bfseries,
breakable,
title=#1
}
%%
%% Coloured box "axioms" pour formules relatives à la dernière partie du chapitre 2 de prob
%%
\newtcolorbox{axioms}[ 1 ]
{
colback = blue!10!white,
colframe = blue!80!black,
fonttitle = \bfseries,
breakable,
title=#1
}
%%
%% Coloured box "probch3" pour formules relatives au 3ème chapitre de prob
%%
\newtcolorbox{probch3}[ 1 ]
{
colback = ruddypink,
colframe = burgundy,
fonttitle = \bfseries,
breakable,
title=#1
}
%%
%% Coloured box "probch4" pour formules relatives au 4ème chapitre de prob
%%
\newtcolorbox{probch4}[ 1 ]
{
colback = yellow!60!white,
colframe = yellow!80!black,
fonttitle = \bfseries,
breakable,
title=#1
}
%%
%% Coloured box "formula" for formulas
%%
\newtcolorbox{formula}[ 1 ]
{
colback = green!5!white,
colframe = green!70!black,
breakable,
fonttitle = \bfseries,
title=#1
}
%%
%% Coloured box "formula" for formulas
%%
\DeclareTColorBox{algo2}{ o }
{
enhanced,
title = #1,
colback=blue!5!white,
colbacktitle=blue!75!black,
fonttitle = \bfseries,
breakable,
boxed title style={size=small,colframe=arsenic} ,
attach boxed title to top center = {yshift=-3mm,yshifttext=-1mm},
}
%%
%% Coloured box "examplebox" for formulas
%%
\newtcolorbox{examplebox}[ 1 ]
{
colback = beaublue,
colframe = amethyst,
breakable,
fonttitle = \bfseries,title=#1
}
%%
%% Coloured box "rappel" pour rappel de formules
%%
\newtcolorbox{rappel}[ 1 ]
{
colback = ashgrey,
colframe = arsenic,
breakable,
fonttitle = \bfseries,title=#1
}
%%
%% Coloured box "rappel" pour rappel de formules
%%
\DeclareTColorBox{rappel_enhanced}{ o }
{
enhanced,
title = #1,
colback=ashgrey, % color of the box
% colframe=blue(pigment),
% colframe=arsenic,
colbacktitle=arsenic,
fonttitle = \bfseries,
breakable,
boxed title style={size=small,colframe=arsenic} ,
attach boxed title to top center = {yshift=-3mm,yshifttext=-1mm},
}
%%
%% Coloured box "notation" for notation and terminology
%%
\DeclareTColorBox{distributions}{ o } % #1 parameter
{
enhanced,
title = #1,
colback=gray(x11gray), % color of the box
% colframe=blue(pigment),
colframe=arsenic,
colbacktitle=aurometalsaurus,
fonttitle = \bfseries,
boxed title style={size=small,colframe=arsenic} ,
attach boxed title to top center = {yshift=-3mm,yshifttext=-1mm},
breakable
% left=0pt,
% right=0pt,
% box align=center,
% ams align*
% top=-10pt
}
\newtcolorbox{contrib}[ 1 ]
{
colback = babyblueeyes,
colframe = airforceblue,
fonttitle = \bfseries,
title = {#1},
valign = center
}
%% -----------------------------
%% Graphics and pictures
%% -----------------------------
\usepackage{graphicx}
\usepackage{pict2e}
\usepackage{tikz}
%% -----------------------------
%% insert pdf pages into document
%% -----------------------------
\usepackage{pdfpages}
%% -----------------------------
%% Color configuration
%% -----------------------------
\usepackage{color, soulutf8, colortbl}
%
% Colour definitions
%
\definecolor{armygreen}{rgb}{0.29, 0.33, 0.13} % army
\definecolor{asparagus}{rgb}{0.53, 0.66, 0.42} % pastel green militariesque
\definecolor{britishracinggreen}{rgb}{0.0, 0.26, 0.15}
\definecolor{calpolypomonagreen}{rgb}{0.12, 0.3, 0.17}
\definecolor{darkgreen}{rgb}{0.0, 0.2, 0.13}
\definecolor{antiquebrass}{rgb}{0.8, 0.58, 0.46} % brown-ish light cardboard color
\definecolor{trueblue}{RGB}{0, 115, 197}
\definecolor{blue(munsell)}{rgb}{0.0, 0.5, 0.69}
\definecolor{blue(matcha)}{rgb}{0.596, 0.819, 1.00}
\definecolor{blue(munsell)-light}{rgb}{0.5, 0.8, 0.9}
\definecolor{bleudefrance}{rgb}{0.19, 0.55, 0.91}
\definecolor{blizzardblue}{rgb}{0.67, 0.9, 0.93} % mr.freeze light baby blue
\definecolor{bondiblue}{rgb}{0.0, 0.58, 0.71} % darker cyan type inidgo blue
\definecolor{blue(pigment)}{rgb}{0.2, 0.2, 0.6}
\definecolor{bluebell}{rgb}{0.64, 0.64, 0.82}
\definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66}
\definecolor{beaublue}{rgb}{0.74, 0.83, 0.9} % almost white
\definecolor{blue_rectangle}{RGB}{83, 84, 244} % ACT-2004
\definecolor{cobalt}{rgb}{0.0, 0.28, 0.67} % nice light blue-ish
\definecolor{ballblue}{rgb}{0.13, 0.67, 0.8} % almost green ish blue ish
\definecolor{babyblueeyes}{rgb}{0.63, 0.79, 0.95}
\definecolor{indigo(web)}{rgb}{0.29, 0.0, 0.51} % purple-ish
\definecolor{antiquefuchsia}{rgb}{0.57, 0.36, 0.51} % pastel matte (darkerish) purple ish
\definecolor{darkpastelpurple}{rgb}{0.59, 0.44, 0.84} % pretty purple
\definecolor{gray(x11gray)}{rgb}{0.75, 0.75, 0.75}
\definecolor{aurometalsaurus}{rgb}{0.43, 0.5, 0.5}
\definecolor{bulgarianrose}{rgb}{0.28, 0.02, 0.03} % dark maroon type
\definecolor{pastelred}{rgb}{1.0, 0.41, 0.38} % light red pinktinybit ish
\definecolor{lightmauve}{rgb}{0.86, 0.82, 1.0}
\definecolor{eggshell}{rgb}{0.94, 0.92, 0.84}
\definecolor{azure(colorwheel)}{rgb}{0.0, 0.5, 1.0}
\definecolor{darkgreen}{rgb}{0.0, 0.2, 0.13}
\definecolor{applegreen}{rgb}{0.55, 0.71, 0.0}
\definecolor{ao(english)}{rgb}{0.0, 0.5, 0.0} % prertty apple dark pastel (light) green
\definecolor{green_rectangle}{RGB}{131, 176, 84} % ACT-2004
\definecolor{red_rectangle}{RGB}{241,112,113} % ACT-2004
\definecolor{amethyst}{rgb}{0.6, 0.4, 0.8}
\definecolor{amethyst-light}{rgb}{0.6, 0.4, 0.8}
\definecolor{ruddypink}{rgb}{0.88, 0.56, 0.59}
\definecolor{amber(sae/ece)}{rgb}{1.0, 0.49, 0.0} % pretty orange ish
\definecolor{burntsienna}{rgb}{0.91, 0.45, 0.32} %% lighter pastel orange
\definecolor{burntorange}{rgb}{0.8, 0.33, 0.0} %% imilar but deeper orange
\definecolor{orange-red}{rgb}{1.0, 0.27, 0.0}
\definecolor{tealblue}{rgb}{0.21, 0.46, 0.53}
\definecolor{battleshipgrey}{rgb}{0.52, 0.52, 0.51} % lilght ish gray
\definecolor{ashgrey}{rgb}{0.7, 0.75, 0.71} % dark grey-black-ish
\definecolor{arsenic}{rgb}{0.23, 0.27, 0.29} % light green-beige-ish gray
\definecolor{gray(x11gray)}{rgb}{0.75, 0.75, 0.75}
\definecolor{carmine}{rgb}{0.59, 0.0, 0.09} % deep red
\definecolor{amaranth}{rgb}{0.9, 0.17, 0.31}
\definecolor{brickred}{rgb}{0.8, 0.25, 0.33}
\definecolor{chestnut}{rgb}{0.8, 0.36, 0.36} % pink red ish light
\definecolor{palechestnut}{rgb}{0.87, 0.68, 0.69}
\definecolor{pastelred}{rgb}{1.0, 0.41, 0.38}
\definecolor{forestgreen(traditional)}{rgb}{0.0, 0.27, 0.13}
%
% Useful shortcuts for coloured text
%
\newcommand{\orange}{\textcolor{orange}}
\newcommand{\red}{\textcolor{red}}
\newcommand{\cyan}{\textcolor{cyan}}
\newcommand{\blue}{\textcolor{blue}}
\newcommand{\green}{\textcolor{green}}
\newcommand{\purple}{\textcolor{magenta}}
\newcommand{\yellow}{\textcolor{yellow}}
%% -----------------------------
%% Enumerate environment configuration
%% -----------------------------
%
% Custum enumerate & itemize Package
%
\usepackage{enumitem}
%
% French Setup for itemize function
%
\frenchbsetup{StandardItemLabels=true}
%
% Change default label for itemize
%
\renewcommand{\labelitemi}{\faAngleRight}
%% -----------------------------
%% Tabular column type configuration
%% -----------------------------
\newcolumntype{C}{>{$}c<{$}} % math-mode version of "c" column type
\newcolumntype{L}{>{$}l<{$}} % math-mode version of "l" column type
\newcolumntype{R}{>{$}r<{$}} % math-mode version of "r" column type
\newcolumntype{f}{>{\columncolor{green!20!white}}p{1cm}}
\newcolumntype{g}{>{\columncolor{green!40!white}}m{1.2cm}}
\newcolumntype{a}{>{\columncolor{red!20!white}$}p{2cm}<{$}} % ACT-2005
% configuration to force a line break within a single cell
\usepackage{makecell}
\usepackage{booktabs} % \specialrule
%% -----------------------------
%% Fontawesome for special symbols
%% -----------------------------
%%% LaTeX couldn't find fontawewsome, had to specify it
%% https://tex.stackexchange.com/questions/132888/fontawesome-font-not-found
\usepackage{fontspec}
\defaultfontfeatures{Path = /usr/local/texlive/2018/texmf-dist/fonts/opentype/public/fontawesome/}
\usepackage{fontawesome}
%% -----------------------------
%% Section Font customization
%% -----------------------------
\usepackage{sectsty}
\sectionfont{\color{\SectionColor}}
\subsectionfont{\color{\SubSectionColor}}
\subsubsectionfont{\color{\SubSubSectionColor}}
%% -----------------------------
%% Footer/Header Customization
%% -----------------------------
\usepackage{lastpage}
\usepackage{fancyhdr}
\pagestyle{fancy}
%
% Header
%
\fancyhead{} % Reset
\fancyhead[L]{Aide-mémoire pour~\cours ~(\textbf{\sigle})}
\fancyhead[R]{\auteur}
%
% Footer
%
\fancyfoot{} % Reset
\fancyfoot[R]{\thepage ~de~ \pageref{LastPage}}
\fancyfoot[L]{\href{https://github.com/ressources-act/Guide_de_survie_en_actuariat}{\faGithub \ ressources-act/Guide de survie en actuariat}}
%
% Page background color
%
\pagecolor{\BackgroundColor}
%% END OF PREAMBLE
% ---------------------------------------------
% ---------------------------------------------