preambule.tex 3.16 KB
\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
\newcounter{encartcounter}[chapter]
\newcommand\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

\newcommand{\citep}[1]{(\cite{#1})}



\input{infos}

\subimport{refs/}{content}