\documentclass[twoside,10pt]{book}
-\def\mytitle{Orchestrating the Internet of Things with Task-Oriented Programming}
+\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{31}{12}{2022}}
+\def\mydate{\formatdate{9}{3}{2023}}
\input{preamble}
% To show hboxes even when in non-draft mode
-\overfullrule=1mm
+%\setlength{\overfullrule}{20pt}
% Just for the todonotes, can go when it's finished
-\usepackage{todonotes}
-\setuptodonotes{
- backgroundcolor=white,
- linecolor=black,
- size=scriptsize,
-}
+%\usepackage{todonotes}
+%\setuptodonotes{
+% backgroundcolor=white,
+% linecolor=black,
+%}
% Document info
-\title{\mytitle{} --- \mysubtitle{}}
+\title{\mytitle\texorpdfstring{\\[2ex]}{---}\smaller\mysubtitle}
\author{Mart Lubbers}
-
\date{\mydate}
\begin{document}
+\begingroup
+\makeatletter
+\let\@bibitem\saved@bibitem%
+\endgroup
+
\selectlanguage{british}
\frontmatter%
\frontmatterfancy%
%Titlepage
-\subfile{frontmatter/titlepage}
-\newpage%
+\hypertarget{titlepage}{}
+\bookmark[level=section,dest=titlepage]{Titlepage}
+\subfile{front/titlepage}
+\cleardoublepage%
% Epigraph/motto
-\subfile{frontmatter/motto}
+\hypertarget{motto}{}
+\bookmark[level=section,dest=motto]{Motto}
+\subfile{front/motto}
+\cleardoublepage%
% Table of contents
-%\setcounter{tocdepth}{1}
+\setcounter{tocdepth}{1}
+\hypertarget{contents}{}
+\bookmark[level=section,dest=contents]{Contents}
\tableofcontents
-\todo{reduce tocdepth to 1 before finishing}
-\todo{to reduce the size: make listings font smaller}
-\newpage%
+\cleardoublepage%
% Dedication
-\subfile{frontmatter/dedication}
-
-\listoftodos%
-
-% Reset glossary and thus the acronyms
-\glsresetall{}
+\hypertarget{dedication}{}
+\bookmark[level=section,dest=dedication]{Dedication}
+\subfile{front/dedication}
% The actual document
\mainmatter%
\mainmatterfancy%
-\setcounter{chapter}{-1}
+%\setcounter{chapter}{-1}
+\glsresetall{} % Reset glossary and thus the acronyms
% Introduction
-\subfile{introduction/introduction}
-% DSL
-
-\mypart{prt:dsl}{Prelude}{Domain-Specific Languages}%
-
-% 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}
-
-\mypart{prt:top}{Exposition}{Task-Oriented Programming for the Internet of Things}%
+\subfile{intro/intro}
-\subfile{mtask/mtask}
+\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
-\mypart{prt:tvt}{Transformation}{Tiered vs.\ tierless programming}%
+% Part II
+\subfile{top/top}
-\subfile{tiered_vs._tierless_programming/smart_campus}
+\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{conclusion/conclusion}
+\subfile{coda/coda}
% Start appendix
\appendix%
\label{chp:appendix}
\addcontentsline{toc}{part}{Appendix}
-\subfile{appendix/clean_for_haskell_programmers}
-\subfile{appendix/mtask_aux}
-\subfile{appendix/bytecode}
+\subfile{appx/c4hp}
+\subfile{appx/mtask_aux}
+\subfile{appx/bytecode}
\backmatter%
\backmatterfancy%
\phantomsection{}%
\label{chp:bibliography}
\addcontentsline{toc}{chapter}{Bibliography}
-\bibliography{other,self,tiot}
+\renewbibmacro*{begentry}{\midsentence}
+\printbibliography%
% Summary
-\subfile{backmatter/summary}
+\subfile{back/summary}
% Samenvatting
-\subfile{backmatter/samenvatting}
+\subfile{back/samenvatting}
% Acknowledgements
-\subfile{backmatter/acknowledgements}
+\subfile{back/acknowledgements}
% Research data management
-\subfile{backmatter/research_data_management}
+\subfile{back/research_data_management}
% Curriculum vitæ
-\subfile{backmatter/curriculum_vitae}
+\subfile{back/curriculum_vitae}
% Glossary
-\addcontentsline{toc}{chapter}{Glossary}%
-\label{chp:glossaries}
-\printglossary%
-%\printglossary[type=\acronymtype,style=mcolindex]%
-\printglossary[type=\acronymtype]%
+\printglossary[style=mcolindex]%
%% Lists of
%\cleardoublepage{}