errata
[phd-thesis.git] / thesis.tex
index 1c60e5e..4af8e55 100644 (file)
-\documentclass[b5paper]{book}
+\documentclass[twoside,10pt]{book}
+
+\def\mytitle{Orchestrating the Internet of Things\texorpdfstring{\\}{ }with Task-Oriented Programming}
+\def\mysubtitle{a purely functional rhapsody}
+\def\myauthor{Mart Lubbers}
+\def\mydate{\formatdate{9}{3}{2023}}
 
 \input{preamble}
+% for bleeding and cropmarks
+%\usepackage[width=17.6truecm, height=24.6truecm, cam, pdftex, center, noinfo ]{crop}
 
-% Document info
-\title{Some title}
-\author{Some author\\
-       {\small\href{mailto:mail@example.com}{mail@example.com}}}
+% To show hboxes even when in non-draft mode
+%\setlength{\overfullrule}{20pt}
 
-% If you want to fix the date: \formatdate{10}{7}{2017}}
-\date{\today}
+% Document info
+\title{\mytitle\texorpdfstring{\\[2ex]}{---}\smaller\mysubtitle}
+\author{}
+\date{}
 
 \begin{document}
-\frontmatter{}
+\begingroup
+\makeatletter
+\let\@bibitem\saved@bibitem%
+\endgroup
+
+\selectlanguage{british}
+
+\frontmatter%
+\frontmatterfancy%
+
+%Cover
+\hypertarget{cover}{}
+\bookmark[level=section,dest=cover]{Cover}
+\includepdf[fitpaper]{kaft/cover.pdf}
+
+\thispagestyle{empty}
+\maketitle
+\newpage
+
+%Colophon
+\hypertarget{colophon}{}
+\bookmark[level=section,dest=colophon]{Colophon}
+\subfile{front/colophon}
 
 %Titlepage
-\input{titlepage}
-
-%Abstract
-\chapter*{\centering Abstract}%
-\label{chp:abstract}
-\addcontentsline{toc}{chapter}{Abstract}
-\begin{quotation}
-       \centering\noindent
-       \input{abstract}
-\end{quotation}
-
-%Acknowledgements
-\chapter*{\centering Acknowledgements}%
-\label{chp:acknowledgements}
-\addcontentsline{toc}{chapter}{Acknowledgements}
-\begin{quotation}
-       \centering\it\noindent
-       \input{acknowledgements}
-\end{quotation}
+\hypertarget{titlepage}{}
+\bookmark[level=section,dest=titlepage]{Titlepage}
+\subfile{front/titlepage}
+\cleardoublepage%
+
+% Epigraph/motto
+\hypertarget{motto}{}
+\bookmark[level=section,dest=motto]{Motto}
+\subfile{front/motto}
+\cleardoublepage%
 
 % Table of contents
+\setcounter{tocdepth}{1}
+\hypertarget{contents}{}
+\bookmark[level=section,dest=contents]{Contents}
 \tableofcontents
+\cleardoublepage%
 
-% Reset glossary and thus the acronyms
-\glsresetall{}
+% Dedication
+\hypertarget{dedication}{}
+\bookmark[level=section,dest=dedication]{Dedication}
+\subfile{front/dedication}
 
 % The actual document
-\mainmatter{}
+\mainmatter%
+\mainmatterfancy%
+%\setcounter{chapter}{-1}
+\glsresetall{} % Reset glossary and thus the acronyms
+
+% Introduction
+\subfile{intro/intro}
+
+\part[\'Etude --- Domain-Specific Languages]{\'Etude\\[2ex]\smaller{}Domain-Specific Languages}%
+\label{prt:dsl}
+\subfile{dsl/class}    % Deep embedding with class
+\subfile{dsl/first}    % First-class data types
 
-\chapter{Example}%
-\label{chp:example}
-\input{example}
+% Part II
+\subfile{top/top}
+
+\part[Tiered versus Tierless Programming]{\\[2ex]\smaller{}Tiered versus Tierless Programming}%
+\label{prt:tvt}
+\subfile{tvt/tvt}   % Could Tierless Languages Reduce IoT Development Grief?
+
+% Conclusion
+%\bookmarksetup{startatroot} % descend back out of the previous part
+\addtocontents{toc}{\bigskip}% Insert some whitespace to make the TOC better
+\subfile{coda/coda}
 
 % Start appendix
 \appendix%
 \label{chp:appendix}
+\addcontentsline{toc}{part}{Appendix}
+
+\subfile{appx/c4hp}
+\subfile{appx/mtask_aux}
+\subfile{appx/bytecode}
+
+\backmatter%
+\backmatterfancy%
+\bookmarksetup{startatroot} % descend back out of the appendix
 
 % Bibliography
 \phantomsection{}%
 \label{chp:bibliography}
 \addcontentsline{toc}{chapter}{Bibliography}
-\bibliographystyle{plain}
-\bibliography{thesis}
+\renewbibmacro*{begentry}{\midsentence}
+\printbibliography%
+
+% Summary
+\subfile{back/summary}
+
+% Samenvatting
+\subfile{back/samenvatting}
+
+% Acknowledgements
+\subfile{back/acknowledgements}
+
+% Research data management
+\subfile{back/research_data_management}
+
+% Curriculum vitæ
+\subfile{back/curriculum_vitae}
 
 % Glossary
-\addcontentsline{toc}{chapter}{Glossary}%
-\label{chp:glossaries}
-\printglossaries%
+\printglossary[style=mcolindex]%
+
+%% Lists of
+%\cleardoublepage{}
+%\phantomsection{}%
+%\label{chp:listsof...}
+%\addcontentsline{toc}{chapter}{Lists of \ldots}
+%\begingroup
+%\let\clearpage\relax
+%\let\cleardoublepage\relax
+%\listoffigures%
+%\listoftables%
+%\listofalgorithms%
+%\lstlistoflistings%
+%\endgroup
 
 % Index
-\addcontentsline{toc}{chapter}{Index}%
-\label{chp:index}
-\printindex
-
-% Lists of
-\cleardoublepage{}
-\phantomsection{}%
-\label{chp:listsof...}
-\addcontentsline{toc}{chapter}{Lists of \ldots}
-\begingroup
-\let\clearpage\relax
-\let\cleardoublepage\relax
-\listoffigures%
-\listoftables%
-\listofalgorithms%
-\lstlistoflistings%
-\endgroup
+%\addcontentsline{toc}{chapter}{Index}%
+%\label{chp:index}
+%\printindex
 
 \end{document}