% Ce fichier main.tex est le fichier principal \`{a} partir duquel tout est g\'{e}n\'{e}r\'{e}
% This file is the main file where the final document is generated
\documentclass{these-dbl}

% Remplir les metadonnees du pdf
% Fill the pdf metadata
\hypersetup{
   pdfauthor   = {Gre\'gory Martin},
   pdftitle    = {Data-driven Vehicle Relocation in Free Floating Carsharing Services},
   pdfsubject  = {Data-driven Vehicle Relocation in Free Floating Carsharing Services},
   pdfkeywords = {free-floating, carsharing}
}

% Pour les maths
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{mathtools}

% Packages for tables
\usepackage{multirow}
\usepackage{tabularx}

% To have subfigures and subcaptions.
\usepackage{subcaption}

% So floats stay within their subsection.
\usepackage{placeins}

% Make TODO notes
\usepackage{xargs}
\usepackage[colorinlistoftodos]{todonotes}
%\listoftodos  % To print the list of todo in text.
\newcommandx{\crit}[2][1=]{\todo[inline,fancyline,linecolor=red,backgroundcolor=red!25,bordercolor=red,#1]{#2}}
\newcommandx{\info}[2][1=]{\todo[inline,fancyline,linecolor=blue,backgroundcolor=blue!25,bordercolor=blue,#1]{#2}}
\newcommandx{\warn}[2][1=]{\todo[inline,fancyline,linecolor=yellow,backgroundcolor=yellow!25,bordercolor=yellow,#1]{#2}}
\newcommandx{\towrite}[2][1=]{\todo[inline,fancyline,linecolor=green,backgroundcolor=green!25,bordercolor=green,#1]{#2}}

\newcommandx{\toignore}[1]{}

% Package pour les couleurs
\usepackage{color}
\definecolor{fuchsiapink}{rgb}{1.0, 0.47, 1.0}
\definecolor{orange}{rgb}{1,0.5,0}
\definecolor{tomodifycolor}{rgb}{0.8,0.4,0}

% Commandes pour commenter l'état du texte.
\newcommand{\tomodify}[1]{{\color{tomodifycolor}\textsc{ToModify}: #1}}
\newcommand{\toadd}[1]{{\color{blue}\textbf{#1}$^{to\_add}$}}
\newcommand{\gregory}[1]{{\color{green}\textbf{Greg: #1}}}
\newcommand{\elisa}[1]{{\color{red}\textbf{#1}}}

% Algorithm package
\usepackage[linesnumbered,ruled,vlined]{algorithm2e}
\SetKwInput{KwInput}{Input}
\SetKwInput{KwOutput}{Output}
% https://tex.stackexchange.com/questions/153646/algorithm2e-disabling-line-numbers-for-specific-lines
\let\oldnl\nl
\newcommand{\nonl}{\renewcommand{\nl}{\let\nl\oldnl}}

% Censor package
\usepackage{censor}

\geometry{vmargin=4.0cm}

% Specify you bibliography files here
\addbibresource{./bibliography/bibliography.bib}


% Data-driven Vehicle Relocation in Free Floating Carsharing Services

\begin{document}

% Front cover calling \maketitle
\input{./couverture/pagedegarde}

% Select the content language following this line
\selectlanguage{english}

% Input acknowledgement chapter
% Uncomment for official thesis.
% \clearemptydoublepage
% \input{./7_acknowledgement}

% This command will generate the front cover
\frontmatter
\clearemptydoublepage
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents %sommaire %table of content
%\shorttableofcontents{Sommaire}{0}

\clearemptydoublepage
\input{./0_introduction}
 
\clearemptydoublepage
\mainmatter

\selectlanguage{english}

\clearemptydoublepage
\input{./1_chapitre1}

\clearemptydoublepage
\input{./2_chapitre2}

\clearemptydoublepage
\input{./3_chapitre3}

\clearemptydoublepage
\input{./4_chapitre4}

\clearemptydoublepage
\input{./5_chapitre5}

\clearemptydoublepage
\backmatter
\input{./6_conclusion}

% Chapitre pour la bibliographie
% Bibliography chapter
\clearemptydoublepage
\phantomsection % To have a correct link in the table of contents
\addcontentsline{toc}{chapter}{Bibliography}

% nocite: In order to cite all the references included biblio

\printbibliography{}

% \clearemptydoublepage
% \input{./8_annexe}

\clearemptydoublepage
% Pour avoir la quatrième de couverture sur une page paire
% To have the back cover on an even page

% Uncomment for official thesis
% \cleartoevenpage[\thispagestyle{empty}]
% \input{./couverture/resume}

\end{document}
