2 \usepackage[utf8
]{inputenc}
18 \usepackage[T1,T2A
]{fontenc}
21 \usepackage[subpreambles=true
]{standalone
}
24 \usepackage{microtype
}
26 % No more room for a new \write
27 \usepackage{morewrites
}
29 % Internationalisation
30 \usepackage[dutch,russian,british
]{babel
}
31 %\babelfont[russian]{rm}{Liberation Serif}
34 % TODO is this necessary?
35 %\usepackage[titletoc]{appendix}
38 %\usepackage[pagebackref]{hyperref}
39 \usepackage[pagebackref
]{hyperref
}
40 % Setup pdf parameters: TODO
43 pdfauthor=
{\myauthor},
47 pdfkeywords=
{task-oriented programming, functional programming, domain specific languages, internet of things
},
59 \usepackage{subcaption
}
64 % Automatically wrapping tables
67 % Use a fixed document date
68 \usepackage[nodayofweek
]{datetime
}
71 \usepackage{stmaryrd
} % Short arrow
73 % General listings settings
76 basicstyle=
\linespread{0.9}\tt\footnotesize,
77 breakatwhitespace=false,
82 escapeinside=
{(+
}{+)
},
% chktex 9
86 postbreak=
\mbox{\textcolor{gray
}{$
\hookrightarrow$
}\space},
88 showstringspaces=false,
93 % {a0}{{a\textsubscript{0}}}2
94 % {a1}{{a\textsubscript{1}}}2
95 % {a2}{{a\textsubscript{2}}}2
96 %% {an}{{a\textsubscript{n}}}2
97 % {c0}{{c\textsubscript{0}}}2
98 % {c1}{{c\textsubscript{1}}}2
99 % {c2}{{c\textsubscript{2}}}2
100 % {cn}{{c\textsubscript{n}}}2
101 % {f0}{{f\textsubscript{0}}}2
102 % {f1}{{f\textsubscript{1}}}2
103 % {f2}{{f\textsubscript{2}}}2
104 % {fn}{{f\textsubscript{n}}}2
105 % {t0}{{t\textsubscript{0}}}2
106 % {t1}{{t\textsubscript{1}}}2
107 % {t2}{{t\textsubscript{2}}}2
108 % {tn}{{t\textsubscript{n}}}2
109 % {v0}{{v\textsubscript{0}}}2
110 % {v1}{{v\textsubscript{1}}}2
111 % {v2}{{v\textsubscript{2}}}2
112 % {vn}{{v\textsubscript{n}}}2
113 % {C0}{{C\textsubscript{0}}}2
114 % {C1}{{C\textsubscript{1}}}2
115 % {C2}{{C\textsubscript{2}}}2
116 % {Cn}{{C\textsubscript{n}}}2
117 % {R0}{{R\textsubscript{0}}}2
118 % {R1}{{R\textsubscript{1}}}2
119 % {R2}{{R\textsubscript{2}}}2
120 % {Rn}{{R\textsubscript{n}}}2
122 \usepackage{lstlangclean
}
123 \usepackage{lstlanghaskell
}
124 \newcommand{\cleaninline}[1]{\lstinline[language=Clean,postbreak=
]|
#1|
}
125 \newcommand{\haskellinline}[1]{\lstinline[language=Haskell,style=haskell,postbreak=
]|
#1|
}
126 % Fix list of listings title
127 \renewcommand{\lstlistlistingname}{List of Listings
}
128 % Fix list of listings chapter separator
130 \let\my@chapter\@chapter
%
131 \renewcommand*
{\@chapter
}{%
132 \addtocontents{lol
}{\protect\addvspace{10pt
}}%
136 \lstnewenvironment{lstClean
}[1][]
138 \lstset{language=Clean,
#1}
139 \renewcommand*
{\lstlistingname}{Listing (Clean)
}
142 \lstnewenvironment{lstHaskell
}[1][]
144 \lstset{language=Haskell,style=haskell,
#1}%
145 \renewcommand*
{\lstlistingname}{Listing (Haskell)
}
149 % Glossaries and acronyms
150 \usepackage[acronym,nonumberlist
]{glossaries
}
151 % Fix gls in hyperlink errors
152 \pdfstringdefDisableCommands{%
167 \def\glsentrytext#1{}%
170 \def\Glsentrytext#1{}%
175 \usepackage{titlecaps
}
177 % Titlecase glossary command
178 \newcommand{\glst}[1]{\titlecap{\glsentrylong{#1}}}
179 \newcommand{\Glst}[1]{\glst{#1}}
182 \usepackage[algochapter
]{algorithm2e
}
183 % Fix the algorithm font
184 \renewcommand\AlCapFnt{\normalfont}
191 % Custom enumerations
192 \usepackage[inline,shortlabels
]{enumitem
}
194 \setlist[description
]{leftmargin=
\parindent}
197 \usepackage{epigraph
}
199 % Thumb marks on the page
204 topthumbmargin=
{auto
},
205 bottomthumbmargin=
{auto
},
206 eventxtindent=
{.5cm
},
207 oddtxtexdent=
{.3cm
}]{thumbs
}
209 % Custom headers and footers
210 \usepackage{fancyhdr
}
213 % Tables spanning pages
214 \usepackage{longtable
}
217 \usepackage{cleveref
}
219 % To patch the chapter command
220 \usepackage{etoolbox
}
221 % Have better page numbering in chapters
222 \patchcmd{\chapter}{plain
}{headings
}{}{}
224 % Increase the depth for the table of contents
225 \setcounter{secnumdepth
}{3}
226 \renewcommand{\contentsname}{Table of Contents
} % change the name of the TOC
227 \AtBeginDocument{\addtocontents{toc
}{\protect\thispagestyle{empty
}}} % to remove page numbering from the TOC
229 % Initialize the glossaries
234 \newcommand{\GHCmod}[1]{\texttt{#1}}
235 \newcommand{\requiresGHCmod}[1]{\footnote{Requires
\GHCmod{#1} to be enabled.
}}
236 \newcommand{\etc}{{\fontfamily{cmr
}\selectfont{\itshape\/\&c
}}}
237 \newcommand{\rdmentry}[6]{#1:
#2 (
#3):
#4.
#5.\
\href{https://doi.org/
#6}{#6}}
238 \newcommand{\mlubbers}{Lubbers, M.\ (Radboud University)
}
239 \newcommand{\pkoopman}{Koopman, dr.\ P.\ (Radboud University)
}
240 \newcommand{\rplasmeijer}{Plasmeijer, prof.\ dr.\ ir.\ R.\ (Radboud University)
}
242 \bibliographystyle{alpha
}
244 \usepackage{subfiles
}