\documentclass[twoside,10pt]{book}
-%\def\mytitle{Task-Oriented Programming for the Internet of Things}
-\def\mytitle{Task-Oriented Internet of Things Programming}
+\def\mytitle{Orchestrating the Internet of Things with Task-Oriented Programming}
\def\mysubtitle{a purely functional rhapsody}
\def\myauthor{Mart Lubbers}
-\def\mydate{\formatdate{1}{6}{2023}}
+\def\mydate{\formatdate{31}{12}{2022}}
\input{preamble}
\selectlanguage{british}
\frontmatter%
-%\addtitlethumb{Frontmatter}{}{white}{gray}{pagesLTS.0}
+\frontmatterfancy%
%Titlepage
\subfile{frontmatter/titlepage}
\subfile{frontmatter/motto}
% Table of contents
+%\setcounter{tocdepth}{1}
\tableofcontents
+\todo{reduce tocdepth to 1 before finishing}
\newpage%
% Dedication
% The actual document
\mainmatter%
-\renewcommand\partname{Movement} % Rename parts to movements (rhapsody uhu)
-\addthumb{Chapters}{\arabic{chapter}}{white}{gray} % Arabic chapter thumbs
+\mainmatterfancy%
\setcounter{chapter}{-1}
% Introduction
\subfile{introduction/introduction}
% DSL
-\part{Domain-Specific Languages}%
-\label{prt:dsl}
+\mypart{prt:dsl}{Prelude}{Domain-Specific Languages}%
% DSL Techniques
-\subfile{domain_specific_languages/dsl_techniques}
+\subfile{domain-specific_languages/dsl_techniques}
% Deep embedding with class
-\subfile{domain_specific_languages/class_deep_embedding}
+\subfile{domain-specific_languages/class_deep_embedding}
% First-class data types
-\subfile{domain_specific_languages/first-class_datatypes}
+\subfile{domain-specific_languages/first-class_datatypes}
-\part{Task-Oriented Programming}%
-\label{prt:top}
+% Stack computations?
+\subfile{domain-specific_languages/strongly-typed_multi-view_stack-based_computations}
-% mTask by example
-\subfile{task_oriented_programming/mtask_by_example}
+\mypart{prt:top}{Exposition}{Task-Oriented Programming for the Internet of Things}%
-% Interpreting
-\subfile{task_oriented_programming/interpreting}
+\subfile{mtask/mtask}
-% Integration
-\subfile{task_oriented_programming/integration}
-
-\part{Tiered vs.\ tierless programming}%
-\label{prt:tvt}
+\mypart{prt:tvt}{Transformation}{Tiered vs.\ tierless programming}%
\subfile{tiered_vs._tierless_programming/smart_campus}
-\chapter{Modelling naval scenaries using \acrshort{TOP} and \acrshort{IOT}}
-Arjan's werk {NLARMS}?
+\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} % Alpha appendix thumbs
+\addcontentsline{toc}{part}{Appendix}
-\subfile{appendix/clean_for_haskell_programmers.tex}
+\subfile{appendix/clean_for_haskell_programmers}
+\subfile{appendix/bytecode}
\backmatter%
-\addtitlethumb{Backmatter}{}{white}{gray}{pagesLTS.0} % Empty backmatter thumbs
+\backmatterfancy%
+\bookmarksetup{startatroot} % descend back out of the appendix
% Bibliography
\phantomsection{}%
\label{chp:bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
-\bibliography{thesis}
+\bibliography{other,self}
% Summary
\subfile{backmatter/summary}
\let\clearpage\relax
\let\cleardoublepage\relax
\listoffigures%
-\listoftables%
-\listofalgorithms%
-\lstlistoflistings%
+%\listoftables%
+%\listofalgorithms%
+%\lstlistoflistings%
\endgroup
% Index
-\addcontentsline{toc}{chapter}{Index}%
-\label{chp:index}
-\printindex
+%\addcontentsline{toc}{chapter}{Index}%
+%\label{chp:index}
+%\printindex
\end{document}