5c88b9847fed075f41876298abc8d6296dad4798
9 paperheight=
24cm
]{geometry
} % Papersize
11 \usepackage[british
]{babel
} % Internationalization
12 \usepackage[titletoc
]{appendix
} % Appendices
13 \usepackage[pagebackref,hidelinks
]{hyperref
} % Hyperlinks
14 \usepackage{graphicx} % Graphics
15 \usepackage{booktabs
} % Better looking tables
16 \usepackage{etoolbox
} % Patch chapter command
17 \usepackage[nodayofweek
]{datetime
} % Use a fixed document date
18 \usepackage{listings
} % Code
19 \usepackage[acronym,nonumberlist
]{glossaries
} % Glossaries and acronyms
20 \usepackage[algochapter
]{algorithm2e
} % Pseudocode
21 \usepackage{makeidx
} % Index
22 \usepackage[inline,shortlabels
]{enumitem
} % Customized enumerations
24 \setlist[description
]{leftmargin=
\parindent}
31 topthumbmargin=
{auto
},
32 bottomthumbmargin=
{auto
},
34 oddtxtexdent=
{.3cm
}]{thumbs
}
41 % Have better page numbering in chapters
42 \patchcmd{\chapter}{plain
}{headings
}{}{}
47 % Fix list of listings title
48 \renewcommand{\lstlistlistingname}{List of Listings
}
50 % Fix list of listings chapter separator
52 \let\my@chapter\@chapter
%
53 \renewcommand*
{\@chapter
}{%
54 \addtocontents{lol
}{\protect\addvspace{10pt
}}%
58 % Setup pdf parameters
68 % Fix gls in hyperlink errors
69 \pdfstringdefDisableCommands{%
88 % General listings settings
90 breakatwhitespace=false,
94 basicstyle=
\ttfamily\fontseries{l
}\footnotesize,
95 commentstyle=
\slshape\fontseries{m
},
96 keywordstyle=
\bfseries\fontseries{b
},
97 stringstyle=
\ttfamily,
99 showstringspaces=false,
105 % Increase the depth for the table of contenst
106 \setcounter{secnumdepth
}{3}
108 % Fix the algorithm font
109 \renewcommand\AlCapFnt{\normalfont}
111 \renewcommand{\contentsname}{Table of Contents
} % change the name of the TOC
112 \AtBeginDocument{\addtocontents{toc
}{\protect\thispagestyle{empty
}}} % to remove page numbering from the TOC
114 % Initialize the glossaries