%\documentclass[a4paper, 11pt, draft]{memoir}
\documentclass[a4paper, 11pt]{memoir}
\semiisopage

\usepackage[utf8x]{inputenc}
\usepackage[french,english]{babel}
%\usepackage[UKenglish]{babel}
\usepackage[T1]{fontenc}
\usepackage{makeidx}
\makeindex

% Customization
\usepackage{lmodern}
\usepackage{libertine}
\usepackage{inconsolata}
\chapterstyle{madsen}

\usepackage{subfig}
\usepackage{float}
\floatstyle{boxed}
\restylefloat{figure}

\usepackage{xcolor, graphicx}
\usepackage{multirow}
\usepackage[pagebackref]{hyperref}
\renewcommand*{\backref}[1]{}
\renewcommand*{\backrefalt}[4]{\small Citations: \S{}~#4}
\hypersetup{colorlinks=true, linkcolor=black!50!blue, urlcolor=black!50!red, citecolor=black!50!green, breaklinks=true}
\hypersetup{pdftitle={Privacy-preserving cryptography from pairings and lattices},
  pdfauthor={Fabrice Mouhartem},
  pdfsubject={Cryptography}}
\usepackage{microtype}
\usepackage{longtable}
% numbering
\setsecnumdepth{subsection}
\maxtocdepth   {subsection}
\setlength{\parskip}{5pt}
\usepackage{enumerate}

\usepackage{doi}
\usepackage{amsmath, amssymb, mathrsfs, mathtools}
\usepackage{amsthm} % For theorem style
\usepackage{thmtools}
\usepackage{thm-restate}
\usepackage{comment}
\usepackage{tikz}
\usepackage{tikzpeople}
\usetikzlibrary{positioning,patterns,shapes}

% theorems, definitions
\declaretheorem[numberwithin=chapter]{theorem}
\declaretheorem[sibling=theorem]{lemma}
\declaretheorem[numberwithin=chapter,style=definition]{definition}

% References
\usepackage[capitalise]{cleveref}

\usepackage{pdfpages}
\usepackage{xspace}

\input frtoc
\input macros

\title{Privacy-preserving cryptography from pairings and lattices}
\author{Fabrice Mouhartem}
\date{\today}

\begin{document}
\includepdf{garde.pdf}
\frontmatter

%%%%%%%%%%%%%
% Décidaces %
%%%%%%%%%%%%%
\cleardoublepage
\vspace*{\stretch{1}}
\begin{flushright}
  À \ldots
\end{flushright}
\vspace*{\stretch{2}}
%%%%%%%%%%%%%

\input abstract

\input acknowledgements

\cleardoublepage
\frenchtableofcontents
\cleardoublepage
\tableofcontents

\cleardoublepage
\input symbols

\mainmatter
\pagestyle{ruled}

\input chap-introduction

\cleardoublepage
{\let\newpage\relax
\part{Background}
\label{pa:background}
\addcontentsline{tof}{part}{\protect\numberline{\thepart} Préliminaires}
}

\input chap-proofs

\input chap-structures

\input chap-ZK

\cleardoublepage
{\let\newpage\relax
\part{Group Signatures and Anonymous Credentials}
\label{pa:gs-ac}
\addcontentsline{tof}{part}{\protect\numberline{\thepart} Signatures de groupe et accréditations anonymes}
}

\input chap-GS-background

\input chap-sigmasig

\input chap-GS-LWE

\cleardoublepage
{\let\newpage\relax
\part{Group Encryption and Adaptive Oblivious Transfer}
\label{pa:ge-ot}
\addcontentsline{tof}{part}{\protect\numberline{\thepart} Chiffrement de groupe et transfert inconscient adaptatif}
}

\input chap-GE-LWE

\input chap-OT-LWE

\input chap-conclusion

\input chap-publications

\bibliographystyle{alphaabbr}
\bibliography{these.bib}
\addcontentsline{tof}{chapter}{Bibliographie}
\printindex
\addcontentsline{tof}{chapter}{Index en anglais}
\backmatter
\listoffigures
\addcontentsline{tof}{chapter}{Liste des figures}
\clearpage
\listoftables
\addcontentsline{tof}{chapter}{Liste des tableaux}
\end{document}
% vim: spl=en
