% *******************************************************************************
% ***               Lilian Besson's "PhD Thesis" main file                    ***
% ***     Source code on: https://github.com/Naereen/phd-thesis/              ***
% ***     Original template: https://github.com/kks32/phd-thesis-template     ***
% *******************************************************************************

% Class (remove "print" for digital version, remove "draft" for final version)
% \documentclass[a4paper,12pt,twoside,index,PageStyleII,draft]{0-Misc/PhDThesisPSnPDF}
% \documentclass[a4paper,12pt,twoside,index,PageStyleII]{0-Misc/PhDThesisPSnPDF}
\documentclass[a4paper,12pt,twoside,index,PageStyleII,print]{0-Misc/PhDThesisPSnPDF}

% DONE c'est le titre qu'on veut à la fin ?
% \title{Applications of single- and multi-players multi-armed bandits algorithms for Internet of Things networks}
\title{Multi-players Bandit Algorithms for Internet of Things Networks}
% \title{Algorithmes de bandits multi-joueurs pour les réseaux de l'Internet des Objets}
% DONE
\subtitle{PhD thesis of Lilian Besson}
% DONE
\author{Lilian Besson (CentraleSupélec campus de Rennes and Inria Lille)}
% DONE
\subject{This document is the PhD thesis of Lilian Besson. For more details, see https://perso.crans.org/besson/me/ or https://GitHub.com/Naereen/phd-thesis/. This document is released under the MIT open-source License, see https://lbesson.mit-license.org/. Copyright 2016-2019, Lilian Besson}
% DONE
\degreedate{November 2019}
% DONE
\degreetitle{Thèse de Doctorat en Informatique}
% DONE
\dept{SCEE}
% DONE
\college{Institut d'Électronique et de Télécommunications de Rennes (IETR)}
% DONE
\university{CentraleSupélec}
% DONE
\supervisor{Christophe Moy \& Émilie Kaufmann}
% DONE
\keywords{%
	Internet of Things (IoT),
	Cognitive Radio,
	Low Power Wide Area Networks,
	Learning Theory,
	Collision Mitigation
	Sequential Learning,
	Reinforcement Learning,
	Multi-Armed Bandits (MAB),
	Decentralized Learning,
	Multi-Player Multi-Armed Bandits,
	change-point Detection,
	Non-Stationary Multi-Armed Bandits,
	Doubling Tricks}

% FIXME compile with pdfx to have a PDF/A file
% \usepackage[a-1b]{pdfx}  % https://www.ctan.org/pkg/pdfx, PDF/A1-b for archiving

% --- Draft Mode
\SetDraftVersion{TODO-relire}

% Packages (add your own packages here)
\input{0-Misc/packages}

\begin{document}

	% ******************************** Preamble *********************************
	\frontmatter
	\input{1-Preamble/preambles}

	% *************************** TOC & Nomenclature ****************************
	% \begin{small}   % XXX
		\begin{spacing}{1}
			\dominitoc
			\tableofcontents
		\end{spacing}
	% \end{small}   % XXX

	% *************** Chapters ****************
	\mainmatter

	\input{2-Chapters/chapters}

	% % *************** Appendices ****************
	\input{3-Appendices/appendices}

	\newpage

	\begin{small}   % XXX

	% *************************** Nomenclature ****************************
	% \emptycolorpage{yellow!40}
	\begin{spacing}{0.93}
		\input{5-Nomenclature/Nomenclature}
		\printnomenclature[8em]
		\label{chapter:nomenclature}
	\end{spacing}

	% \input{4-Listofpublications/Listofpublications}
	% **************** Listes *****************
	% \emptycolorpage{yellow!40}
	\begin{spacing}{1.00}%
	{% group, to change the \cleardoublepage
		% FIXME force to not have a blank (even numbered) page between lists
		% https://tex.stackexchange.com/questions/69184/remove-blank-page-between-list-of-figures-and-list-of-tables#69218
		\let\cleardoublepage\clearpage%
		\listoffigures
		\let\cleardoublepage\clearpage%
		\listofalgorithms
		\addcontentsline{toc}{chapter}{List of Algorithms}
			% \vfill{}
			% \hr{}

			% \begin{small}
			% \begin{quote}
			% 	\emph{Et en fin de compte, personne ne savait rien, et tout le monde racontait n'importe quoi, pensait avoir tout compris, ou du moins faisait semblant. Un peu comme des journalistes.}\\
			% 	John Lang, \href{http://www.penofchaos.com/warham/donjon-bouquin.htm}{\emph{Le Donjon de Naheulbeuk, La Couette de l'Oubli}}.
			% \end{quote}
			% \end{small}
		\let\cleardoublepage\clearpage%
		% \vspace*{-50pt}%WARNING
		\begin{spacing}{1.50}%
			% \vspace*{-50pt}%WARNING
			\listoflistings
			\addcontentsline{toc}{chapter}{List of Code Examples}
		\end{spacing}
			% \vfill{}
			% \hr{}

			% \begin{small}
			% \begin{quote}
			% 	\emph{-- Mais finalement, c'est quoi l'intérêt d'une aventure ? On est à peine plus riche à la fin qu'au début, on a des cicatrices, et en guise de prestige on se fait engueuler par des vieux cons !}\\
			% 	John Lang, \href{http://www.penofchaos.com/warham/donjon-bouquin.htm}{\emph{Le Donjon de Naheulbeuk, La Couette de l'Oubli}}.
			% \end{quote}
			% \end{small}

		\let\cleardoublepage\clearpage%
		\listoftables
	}
	\end{spacing}

	% *************** Bibliography ****************
	% \emptycolorpage{yellow!60}
	\begin{spacing}{0.93}
		% \bibliographystyle{ieeetr}
		\bibliographystyle{alpha}
		\cleardoublepage
		% \nocite{*}
		\bibliography{all-phd-thesis}

		\vfill{}
		\hr{}

		% \begin{small}
		% \begin{quote}
		% 	\emph{-- That's what I do. I drink, and I know things.}
		% 	Tyrion Lannister, interpreted by Peter Dinklage. \emph{Game of Thrones}, Season 6, Episode 2, ``Home''.
		% \end{quote}
		% \end{small}

		\begin{small}
			\begin{quote}
				\emph{-- Well, my brother has his sword, and I have my mind. A mind needs \emph{books} like a sword needs a whetstone, if it is to keep its edge. That is why I read so much, Jon Snow.}\\
				George R. R. Martin, \emph{A Game of Thrones}.
			\end{quote}
			\end{small}
	\end{spacing}

	\end{small}   % XXX

	% \begin{spacing}{1}
	% 	\printbibliography[heading=bibintoc, title={Liste des Publications}, keyword={pub}]
	% 	\printbibliography[heading=bibintoc, title={Bibliographie}, keyword={soa}]
	% \end{spacing}
	% \printthesisindex

	% FIXME the next pages still show the title of the last appendix in the header, that's ugly, fix it!
	% \emptycolorpage{yellow!50}
	\backmatter
	% \cleardoublepage
	% \clearevenpage
	\cleartoleftpage
	% \clearpage

	% \newpage
	\include{6-Back/back-page}
\end{document}
