Files
phd-thesis/main.tex
2024-06-26 12:00:52 +02:00

137 lines
4.0 KiB
TeX

%% Template
\documentclass{thesis}
\geometry{inner=35mm, outer=20mm, top=30mm, bottom=25mm}
%% Content
\usepackage[backend=biber, backref=true, doi=false, style=authoryear]{biblatex} % Bibliography
\addbibresource{references.bib}
\AtEveryBibitem{% Remove some fields from bibliography
\clearfield{day}%
\clearfield{location}%
\clearfield{month}%
\clearfield{series}%
}
\AtEveryCite{% Use square brackets for citations
\let\bibopenparen=\bibopenbracket%
\let\bibcloseparen=\bibclosebracket%
}
\usepackage{bookmark} % Manage bookmarks
\usepackage[draft, defaultColor=BlueViolet, xcolor=dvipsnames]{changes} % Track changes
\usepackage[inline]{enumitem} % Customise lists
\setitemize{noitemsep} % No space between items in itemize
\usepackage{etoc} % Local table of contents
\hypersetup{ % Hyperlinks
bookmarksnumbered=true, % Include section numbers in bookmarks
bookmarksopen=true, % Auto-open bookmarks
pdfauthor = {Erwan NORMAND},
pdftitle = {Wearable Haptics and Augmented Reality},
pdfsubject = {Ph.D. Thesis of Erwan NORMAND},
pdfkeywords = {},
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 ()
}
\usepackage[dvipsnames]{xcolor} % More colors
%% Typography
% babel, csquotes, fontenc, microtype, lmodern, textcomp are already loaded by the class
\usepackage[varqu, varl]{inconsolata} % Better monospace font (with alternative "quote" [varqu] and "l" [varl])
%\usepackage{newtx} % Use Libertinus font for text and math
\usepackage{newtxmath}
\usepackage{microtype} % Micro-typography improvements (slightly more compact, better to read)
\usepackage{mathtools} % More math symbols
% Customise fonts (sectsty package, loaded by the class)
\renewcommand*{\selectfontchapheads}{}
\chapterfont{\sffamily} % Smaller chapter titles
\allsectionsfont{\sffamily} % Sans-serif for section titles
%% Tables
\usepackage{booktabs} % Better tables
\usepackage{makecell} % For multi-line cells in tables
\usepackage{multirow} % Multi-row cells in tables
\usepackage{tabularx} % For tables with fixed width
%% Custom commands
\input{utils/commands}
\renewcommand{\citeauthorcite}[1]{\citeauthor*{#1}~\parencite*{#1}}
\definechangesauthor[color=RawSienna]{CP}
\newcommand{\CP}[1]{\comment[id=CP]{#1}}
\newcommand{\inputchapter}[1]{\clearemptydoublepage\input{#1}} % Load a chapter after a clear double page
\newcommand{\inputchapterfigures}[2]{% Load a chapter (#2) with figures from a specific directory (#1)
\graphicspath{{#1/#2/figures/}}%
\inputchapter{#1/#2/#2}%
}
\newcommand{\mainchapter}[1]{%
\chapter{#1}%
%
% Print the table of contents for the chapter
\vspace*{-1cm}%
\localtableofcontents%
\par\noindent\rule{\textwidth}{0.4pt}%
\vspace*{0.5cm}%
}
\newcommand*{\resetparts}{% End the parts in TOC to set chapters at the root level
\bookmarksetup{startatroot}%
}
%% Document
\begin{document}
\frontmatter
\selectlanguage{french}
\input{0-front/cover/cover}
\selectlanguage{english}
\inputchapter{0-front/content/acknowledgement}
\inputchapter{0-front/content/abstract}
\inputchapter{0-front/content/résumé}
\inputchapter{0-front/content/contents}
\inputchapter{0-front/content/publications}
\inputchapter{0-front/content/acronyms}
\inputchapter{0-front/content/figures}
\inputchapter{0-front/content/tables}
\mainmatter
\input{1-introduction/part}
\inputchapterfigures{1-introduction}{introduction}
\inputchapterfigures{1-introduction}{related-work}
\input{2-perception/perception}
\inputchapterfigures{2-perception}{xr-perception}
\inputchapterfigures{2-perception}{ar-textures}
\input{3-manipulation/manipulation}
\inputchapterfigures{3-manipulation}{visual-hand}
\inputchapterfigures{3-manipulation}{visuo-haptic-hand}
\input{4-conclusion/part}
\inputchapter{4-conclusion/conclusion}
\backmatter
\inputchapter{4-conclusion/bibliography}
\inputchapter{4-conclusion/backcover/backcover}
\end{document}