% Set PDF version to 1.7 (https://tex.stackexchange.com/a/638196)
\ExplSyntaxOn
\sys_ensure_backend:
\pdf_version_gset:n{1.7}
\ExplSyntaxOff

% Template
\documentclass[twoside,a4paper,12pt]{book}
\input{config/template}

% Bibliography
\input{config/bibliography}
\addbibresource{references.bib} % Load bibliography

% Content
\input{config/content}
\newcommand{\ThesisTitle}{Study of the Perception and Manipulation of Virtual Objects in Augmented Reality using Wearable Haptics}
\hypersetup{
  pdfauthor           = {Erwan NORMAND},
  pdftitle            = \ThesisTitle,
  pdfsubject          = {Ph.D. Thesis of Erwan NORMAND},
  pdfkeywords         = {Augmented Reality, Wearable Haptics, Perception, Interaction, Textures, Virtual Hand},
}

% Custom commands
\input{utils/commands}
\input{config/thesis_commands}

\input{config/acronyms}

% Document
\begin{document}

\frontmatter
\import{0-front}{cover}
%\importchapter{0-front}{acknowledgement}
\importchapter{0-front}{toc}

\mainmatter
%\import{1-background}{background}
\importchapter{1-background/introduction}{introduction}
\importchapter{1-background/related-work}{related-work}

\import{2-perception}{perception}
\importchapter{2-perception/vhar-system}{vhar-system}
\importchapter{2-perception/xr-perception}{xr-perception}
\importchapter{2-perception/vhar-textures}{vhar-textures}

\import{3-manipulation}{manipulation}
\importchapter{3-manipulation/visual-hand}{visual-hand}
\importchapter{3-manipulation/visuo-haptic-hand}{visuo-haptic-hand}

%\import{4-conclusion}{part}
\bookmarksetup{startatroot}% End the parts in TOC to set chapters at the root level
\importchapter{4-conclusion}{conclusion}

\appendix
\importchapter{4-conclusion}{publications}
%\importchapter{4-conclusion}{résumé}

\backmatter
\importchapter{5-back}{bibliography}
\importchapter{5-back}{acronyms}
\importchapter{5-back}{figures}
\importchapter{5-back}{tables}
\import{5-back}{backcover}

\end{document}
