many updates
[phd-thesis.git] / thesis.tex
index 0a00e89..4949745 100644 (file)
 \documentclass[twoside,10pt]{book}
 
+\def\mytitle{Orchestrating the Internet of Things with Task-Oriented Programming}
+\def\mysubtitle{a purely functional rhapsody}
+\def\myauthor{Mart Lubbers}
+\def\mydate{\formatdate{31}{12}{2022}}
+
 \input{preamble}
 
+% To show hboxes even when in non-draft mode
+\overfullrule=1mm
+
+% Just for the todonotes, can go when it's finished
+\usepackage{todonotes}
+\setuptodonotes{
+       backgroundcolor=white,
+       linecolor=black,
+       size=scriptsize,
+}
+
 % Document info
-\title{Some title}
-\author{Some author}
+\title{\mytitle{} --- \mysubtitle{}}
+\author{Mart Lubbers}
 
-% If you want to fix the date: \formatdate{10}{7}{2017}}
-\date{\today}
+\date{\mydate}
 
 \begin{document}
-\frontmatter{}
+\selectlanguage{british}
+
+\frontmatter%
 %\addtitlethumb{Frontmatter}{}{white}{gray}{pagesLTS.0}
 
 %Titlepage
-\input{titlepage}
+\subfile{frontmatter/titlepage}
 \newpage%
-\input{motto}
+
+% Epigraph/motto
+\subfile{frontmatter/motto}
 
 % Table of contents
+%\setcounter{tocdepth}{1}
 \tableofcontents
+\todo{reduce tocdepth to 1 before finishing}
 \newpage%
 
-\input{dedication}
+% Dedication
+\subfile{frontmatter/dedication}
+
+\listoftodos%
 
 % Reset glossary and thus the acronyms
 \glsresetall{}
 
 % The actual document
 \mainmatter%
-\addthumb{Chapters}{\arabic{chapter}}{white}{gray}
+\addthumb{Chapters}{\arabic{chapter}}{white}{gray} % Arabic chapter thumbs 
+\setcounter{chapter}{-1}
+
+% Introduction
+\subfile{introduction/introduction}
+% DSL
+
+\part[Prelude: Domain-Specific Languages]{Prelude\\Domain-Specific Languages}%
+\label{prt:dsl}
+
+% DSL Techniques
+\subfile{domain-specific_languages/dsl_techniques}
+
+% Deep embedding with class
+\subfile{domain-specific_languages/class_deep_embedding}
+
+% First-class data types
+\subfile{domain-specific_languages/first-class_datatypes}
+
+% Stack computations?
+\subfile{domain-specific_languages/strongly-typed_multi-view_stack-based_computations}
+
+\part[Exposition: Task-Oriented Internet of Things Programming]{Exposition\\Task-Oriented Internet of Things Programming}%
+\label{prt:top}
 
-\chapter{Example}%
-\label{chp:example}
-\input{example}
+\subfile{mtask/mtask}
+
+\part[Transformation: Tiered vs.\ tierless programming]{Transformation\\Tiered vs.\ tierless programming}%
+\label{prt:tvt}
+
+\subfile{tiered_vs._tierless_programming/smart_campus}
+
+\bookmarksetup{startatroot} % descend back out of the previous part
+\addtocontents{toc}{\bigskip}% Insert some whitespace to make the TOC better
+\subfile{conclusion/conclusion}
 
 % Start appendix
 \appendix%
 \label{chp:appendix}
-\addthumb{Appendices}{\Alph{chapter}}{white}{gray}
-
-\chapter{An Appendix}%
-\label{chp:an_appendix}
-\input{an_appendix}
+\addcontentsline{toc}{part}{Appendix}
+\addthumb{Appendices}{\Alph{chapter}}{white}{gray} % Alpha appendix thumbs
 
-\chapter{Research Data Management}%
-\label{chp:research_data_management}
-\input{research_data_management}
+\subfile{appendix/clean_for_haskell_programmers}
+\subfile{appendix/bytecode}
 
 \backmatter%
-\stopthumb%
+\bookmarksetup{startatroot} % descend back out of the appendix
+\addtitlethumb{Backmatter}{}{white}{gray}{pagesLTS.0} % Empty backmatter thumbs
+
 % Bibliography
 \phantomsection{}%
 \label{chp:bibliography}
 \addcontentsline{toc}{chapter}{Bibliography}
-\bibliographystyle{plain}
-\bibliography{thesis}
-
-%% 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
+\bibliography{other,self}
 
-% Abstract
-\chapter{Summary}%
-\label{chp:summary}
-\begin{center}
-       \noindent\input{summary}
-\end{center}
+% Summary
+\subfile{backmatter/summary}
 
 % Samenvatting
-\chapter{Samenvatting}%
-\label{chp:samenvatting}
-\begin{center}
-       \noindent\input{samenvatting}
-\end{center}
+\subfile{backmatter/samenvatting}
 
 % Acknowledgements
-\chapter{Acknowledgements}%
-\label{chp:acknowledgements}
-\begin{center}
-       \noindent\input{acknowledgements}
-\end{center}
+\subfile{backmatter/acknowledgements}
 
-\chapter{Research Data Management}%
-\label{chp:research_data_management}
-\input{research_data_management}
+% Research data management
+\subfile{backmatter/research_data_management}
 
-% Curriculum Vitae
-\chapter{Curriculum Vit\ae}%
-\label{chp:curriculum_vitae}
-\input{curriculum_vitae}
+% Curriculum vitæ
+\subfile{backmatter/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
+
 % Index
 \addcontentsline{toc}{chapter}{Index}%
 \label{chp:index}