15 \usepackage[T1]{fontenc}
18 \usepackage{microtype
}
20 % No more room for a new \write
21 \usepackage{morewrites
}
23 % Internationalisation
24 \usepackage[british
]{babel
}
27 % TODO is this necessary?
28 \usepackage[titletoc
]{appendix
}
31 %\usepackage[pagebackref]{hyperref}
32 \usepackage[pagebackref
]{hyperref
}
33 % Setup pdf parameters: TODO
36 pdfauthor=
{\myauthor},
40 pdfkeywords=
{task oriented programming, functional programming, domain specific languages, internet of things
},
52 % Automatically wrapping tables
55 % Use a fixed document date
56 \usepackage[nodayofweek
]{datetime
}
60 % General listings settings
62 breakatwhitespace=false,
66 basicstyle=
\ttfamily\fontseries{l
}\footnotesize,
67 commentstyle=
\slshape\fontseries{m
},
68 keywordstyle=
\bfseries\fontseries{b
},
69 stringstyle=
\ttfamily,
71 showstringspaces=false,
76 % Fix list of listings title
77 \renewcommand{\lstlistlistingname}{List of Listings
}
78 % Fix list of listings chapter separator
80 \let\my@chapter\@chapter
%
81 \renewcommand*
{\@chapter
}{%
82 \addtocontents{lol
}{\protect\addvspace{10pt
}}%
86 % Glossaries and acronyms
87 \usepackage[acronym,nonumberlist
]{glossaries
}
88 % Fix gls in hyperlink errors
89 \pdfstringdefDisableCommands{%
110 \usepackage{titlecaps
}
112 % Titlecase glossary command
113 \newcommand{\glst}[1]{\titlecap{\glsentrylong{#1}}}
114 \newcommand{\Glst}[1]{\glst{#1}}
117 \usepackage[algochapter
]{algorithm2e
}
118 % Fix the algorithm font
119 \renewcommand\AlCapFnt{\normalfont}
126 % Custom enumerations
127 \usepackage[inline,shortlabels
]{enumitem
}
129 \setlist[description
]{leftmargin=
\parindent}
131 % Epigraph (lovecraft)
132 \usepackage{epigraph
}
134 % Thumb marks on the page
139 topthumbmargin=
{auto
},
140 bottomthumbmargin=
{auto
},
141 eventxtindent=
{.5cm
},
142 oddtxtexdent=
{.3cm
}]{thumbs
}
144 % Custom headers and footers
145 \usepackage{fancyhdr
}
148 % To patch the chapter command
149 \usepackage{etoolbox
}
150 % Have better page numbering in chapters
151 \patchcmd{\chapter}{plain
}{headings
}{}{}
153 % Increase the depth for the table of contents
154 \setcounter{secnumdepth
}{3}
155 \renewcommand{\contentsname}{Table of Contents
} % change the name of the TOC
156 \AtBeginDocument{\addtocontents{toc
}{\protect\thispagestyle{empty
}}} % to remove page numbering from the TOC
158 % Initialize the glossaries