9 paperheight=
24cm
]{geometry
} % Papersize
10 \usepackage[british
]{babel
} % Internationalization
11 \usepackage[titletoc
]{appendix
} % Appendices
12 \usepackage[pagebackref,hidelinks
]{hyperref
} % Hyperlinks
13 \usepackage{graphicx} % Graphics
14 \usepackage{booktabs
} % Better looking tables
15 \usepackage{etoolbox
} % Patch chapter command
16 \usepackage[nodayofweek
]{datetime
} % Use a fixed document date
17 \usepackage{listings
} % Code
18 \usepackage[acronym,nonumberlist
]{glossaries
} % Glossaries and acronyms
19 \usepackage[algochapter
]{algorithm2e
} % Pseudocode
20 \usepackage{makeidx
} % Index
21 \usepackage[inline,shortlabels
]{enumitem
} % Customized enumerations
23 \setlist[description
]{leftmargin=
\parindent}
26 % Have better page numbering in chapters
27 \patchcmd{\chapter}{plain
}{headings
}{}{}
32 % Fix list of listings title
33 \renewcommand{\lstlistlistingname}{List of Listings
}
35 % Fix list of listings chapter separator
37 \let\my@chapter\@chapter
%
38 \renewcommand*
{\@chapter
}{%
39 \addtocontents{lol
}{\protect\addvspace{10pt
}}%
43 % Setup pdf parameters
53 % Fix gls in hyperlink errors
54 \pdfstringdefDisableCommands{%
73 % General listings settings
75 breakatwhitespace=false,
79 basicstyle=
\ttfamily\fontseries{l
}\footnotesize,
80 commentstyle=
\slshape\fontseries{m
},
81 keywordstyle=
\bfseries\fontseries{b
},
82 stringstyle=
\ttfamily,
84 showstringspaces=false,
90 % Increase the depth for the table of contenst
91 \setcounter{secnumdepth
}{3}
93 % Fix the algorithm font
94 \renewcommand\AlCapFnt{\normalfont}
96 % Initialize the glossaries