errata
[phd-thesis.git] / thesis.tex
index b87b856..4af8e55 100644 (file)
 \documentclass[twoside,10pt]{book}
 
-
-\def\mytitle{Big Things for Tiny Computers}
-\def\mysubtitle{Task Oriented Programming for the Internet of Things}
+\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}
 
 % To show hboxes even when in non-draft mode
-\overfullrule=1mm
-
-% Just for the blind text, can go when it's finished
-\usepackage{lipsum}
-
-% Just for the todonotes, can go when it's finished
-\usepackage{todonotes}
-\setuptodonotes{
-       backgroundcolor=white,
-       linecolor=black,
-       size=scriptsize,
-       inline,
-}
+%\setlength{\overfullrule}{20pt}
 
 % Document info
-\title{\mytitle{} --- \mysubtitle{}}
-\author{Mart Lubbers}
-
-\date{\formatdate{1}{6}{2023}}
+\title{\mytitle\texorpdfstring{\\[2ex]}{---}\smaller\mysubtitle}
+\author{}
+\date{}
 
 \begin{document}
+\begingroup
+\makeatletter
+\let\@bibitem\saved@bibitem%
+\endgroup
+
+\selectlanguage{british}
+
 \frontmatter%
-%\addtitlethumb{Frontmatter}{}{white}{gray}{pagesLTS.0}
+\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}
-\newpage%
+\hypertarget{titlepage}{}
+\bookmark[level=section,dest=titlepage]{Titlepage}
+\subfile{front/titlepage}
+\cleardoublepage%
 
 % Epigraph/motto
-\input{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
-\newpage%
+\cleardoublepage%
 
 % Dedication
-\input{dedication}
-
-\listoftodos%
-
-% Reset glossary and thus the acronyms
-\glsresetall{}
+\hypertarget{dedication}{}
+\bookmark[level=section,dest=dedication]{Dedication}
+\subfile{front/dedication}
 
 % The actual document
 \mainmatter%
-\addthumb{Chapters}{\arabic{chapter}}{white}{gray}
+\mainmatterfancy%
+%\setcounter{chapter}{-1}
+\glsresetall{} % Reset glossary and thus the acronyms
 
-\chapter{Introduction}%
-\label{chp:introduction}
-\input{introduction}
+% Introduction
+\subfile{intro/intro}
 
-\part{\glst{DSL}}%
+\part[\'Etude --- Domain-Specific Languages]{\'Etude\\[2ex]\smaller{}Domain-Specific Languages}%
 \label{prt:dsl}
-\input{domain_specific_languages}
+\subfile{dsl/class}    % Deep embedding with class
+\subfile{dsl/first}    % First-class data types
+
+% Part II
+\subfile{top/top}
 
-\part{\glst{TOP}}%
-\label{prt:top}
-\input{task_oriented_programming}
+\part[Tiered versus Tierless Programming]{\\[2ex]\smaller{}Tiered versus Tierless Programming}%
+\label{prt:tvt}
+\subfile{tvt/tvt}   % Could Tierless Languages Reduce IoT Development Grief?
 
-\part{\glst{IOT}}%
-\label{prt:iot}
-\input{internet_of_things}
+% 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}
-\addthumb{Appendices}{\Alph{chapter}}{white}{gray}
+\addcontentsline{toc}{part}{Appendix}
 
-\chapter{An Appendix}%
-\label{chp:an_appendix}
-\input{an_appendix}
+\subfile{appx/c4hp}
+\subfile{appx/mtask_aux}
+\subfile{appx/bytecode}
 
 \backmatter%
-\addtitlethumb{Backmatter}{}{white}{gray}{pagesLTS.0}
+\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%
 
-% Abstract
-\chapter{Summary}%
-\label{chp:summary}
-\begin{center}
-       \noindent\input{summary}
-\end{center}
+% Summary
+\subfile{back/summary}
 
 % Samenvatting
-\chapter{Samenvatting}%
-\label{chp:samenvatting}
-\begin{center}
-       \noindent\input{samenvatting}
-\end{center}
+\subfile{back/samenvatting}
 
 % Acknowledgements
-\chapter{Acknowledgements}%
-\label{chp:acknowledgements}
-\begin{center}
-       \noindent\input{acknowledgements}
-\end{center}
+\subfile{back/acknowledgements}
 
-\chapter{Research Data Management}%
-\label{chp:research_data_management}
-\input{research_data_management}
+% Research data management
+\subfile{back/research_data_management}
 
-% Curriculum Vitae
-\chapter{Curriculum Vit\ae}%
-\label{chp:curriculum_vitae}
-\input{curriculum_vitae}
+% Curriculum vitæ
+\subfile{back/curriculum_vitae}
 
 % Glossary
-\addcontentsline{toc}{chapter}{Glossary}%
-\label{chp:glossaries}
-\printglossaries%
-
-% 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
+\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
+%\addcontentsline{toc}{chapter}{Index}%
+%\label{chp:index}
+%\printindex
 
 \end{document}