%% Template
\PassOptionsToPackage{backref=true, doi=false, style=ieee}{biblatex}

\documentclass{thesis}
\geometry{inner=30mm, outer=25mm, top=30mm, bottom=25mm}

%% Content
\addbibresource{references.bib}
\AtEveryBibitem{\clearfield{day}}
\AtEveryBibitem{\clearfield{location}}
\AtEveryBibitem{\clearfield{month}}
\AtEveryBibitem{\clearfield{series}}

\hypersetup{
    bookmarksnumbered=true, % Include section numbers in bookmarks
    bookmarksopen=true, % Auto-open bookmarks
%    pdfauthor   = {XYZ},
%    pdftitle    = {Thèse de doctorat de XYZ},
%    pdfsubject  = {Thèse de doctorat de XYZ},
%    pdfkeywords = {mots-clés},
    pdfversion=1.7 % Fix /includefigure warnings
}

\usepackage{siunitx} % For numbers with units
\sisetup{
    retain-explicit-plus=true, % Keep + in numbers
    uncertainty-mode=separate % Separate uncertainty with +- instead of ()
}

%% Typography
% babel, csquotes, fontenc, microtype, lmodern, textcomp are already loaded by the class
\usepackage{ebgaramond} % Garamond font
\usepackage{microtype} % Micro-typography improvements (slightly more compact, better to read)

%% Custom commands
\input{utils/commands}
\newcommand{\CP}[1]{{\footnote{\textcolor{red}{CP: #1}}}}

\newcommand{\inputchapter}[1]{\clearemptydoublepage\input{#1}}

%% Document
\begin{document}

\selectlanguage{french}
\input{00-cover/cover}
\selectlanguage{english}

\clearemptydoublepage
\input{./Acknowledgement/acknowledgement}

\frontmatter
\clearemptydoublepage
\renewcommand{\contentsname}{Table of Contents}
\tableofcontents
%\shorttableofcontents{Sommaire}{0}

\clearemptydoublepage
\input{./Introduction/introduction}

\clearemptydoublepage
\mainmatter
\inputchapter{11-introduction/introduction}
\inputchapter{12-chapitre1/chapitre1}
\inputchapter{13-chapitre2/chapitre2}
\inputchapter{14-conclusion/conclusion}

\backmatter
\clearemptydoublepage
\printbibliography[heading=bibintoc]

\inputchapter{20-back/backcover}

\end{document}
