49722c2ba04731cb57f3572add99f2861104700f
15 \usepackage[T1]{fontenc}
17 % Internationalisation
18 \usepackage[british
]{babel
}
21 % TODO is this necessary?
22 \usepackage[titletoc
]{appendix
}
26 % Setup pdf parameters: TODO
29 pdfauthor=
{M. Lubbers
},
46 % Automatically wrapping tables
49 % Use a fixed document date
50 \usepackage[nodayofweek
]{datetime
}
54 % General listings settings
56 breakatwhitespace=false,
60 basicstyle=
\ttfamily\fontseries{l
}\footnotesize,
61 commentstyle=
\slshape\fontseries{m
},
62 keywordstyle=
\bfseries\fontseries{b
},
63 stringstyle=
\ttfamily,
65 showstringspaces=false,
70 % Fix list of listings title
71 \renewcommand{\lstlistlistingname}{List of Listings
}
72 % Fix list of listings chapter separator
74 \let\my@chapter\@chapter
%
75 \renewcommand*
{\@chapter
}{%
76 \addtocontents{lol
}{\protect\addvspace{10pt
}}%
80 % Glossaries and acronyms
81 \usepackage[acronym,nonumberlist
]{glossaries
}
82 % Fix gls in hyperlink errors
83 \pdfstringdefDisableCommands{%
104 \usepackage{titlecaps
}
106 % Titlecase glossary command
107 \newcommand{\glst}[1]{\titlecap{\glsentrylong{#1}}}
108 \newcommand{\Glst}[1]{\glst{#1}}
111 \usepackage[algochapter
]{algorithm2e
}
112 % Fix the algorithm font
113 \renewcommand\AlCapFnt{\normalfont}
120 % Custom enumerations
121 \usepackage[inline,shortlabels
]{enumitem
}
123 \setlist[description
]{leftmargin=
\parindent}
125 % Epigraph (lovecraft)
126 \usepackage{epigraph
}
128 % Thumb marks on the page
133 topthumbmargin=
{auto
},
134 bottomthumbmargin=
{auto
},
135 eventxtindent=
{.5cm
},
136 oddtxtexdent=
{.3cm
}]{thumbs
}
138 % Custom headers and footers
139 \usepackage{fancyhdr
}
142 % To patch the chapter command
143 \usepackage{etoolbox
}
144 % Have better page numbering in chapters
145 \patchcmd{\chapter}{plain
}{headings
}{}{}
147 % Increase the depth for the table of contents
148 \setcounter{secnumdepth
}{3}
149 \renewcommand{\contentsname}{Table of Contents
} % change the name of the TOC
150 \AtBeginDocument{\addtocontents{toc
}{\protect\thispagestyle{empty
}}} % to remove page numbering from the TOC
152 % Initialize the glossaries