303c89d225214cfb94816d32e6ae62db7c428461
1 \usepackage{geometry
} % Papersize
2 \usepackage[british
]{babel
} % Internationalization
3 \usepackage[titletoc
]{appendix
} % Appendices
4 \usepackage[hidelinks
]{hyperref
} % Hyperlinks
5 \usepackage{graphicx} % Graphics
6 \usepackage{booktabs
} % Better looking tables
7 \usepackage{etoolbox
} % Patch chapter command
8 \usepackage[nodayofweek
]{datetime
} % Use a fixed document date
9 \usepackage{listings
} % Code
10 \usepackage[acronym,nonumberlist
]{glossaries
} % Glossaries and acronyms
11 \usepackage[algochapter
]{algorithm2e
} % Pseudocode
12 \usepackage{makeidx
} % Index
14 % Have better page numbering in chapters
15 \patchcmd{\chapter}{plain
}{headings
}{}{}
20 % Fix list of listings title
21 \renewcommand{\lstlistlistingname}{List of Listings
}
23 % Fix list of listings chapter separator
25 \let\my@chapter\@chapter
%
26 \renewcommand*
{\@chapter
}{%
27 \addtocontents{lol
}{\protect\addvspace{10pt
}}%
31 % Always have url in teletype
34 % Setup pdf parameters
44 % Fix gls in hyperlink errors
45 \pdfstringdefDisableCommands{%
64 % General listings settings
66 breakatwhitespace=false,
70 basicstyle=
\ttfamily\fontseries{l
}\footnotesize,
71 commentstyle=
\slshape\fontseries{m
},
72 keywordstyle=
\bfseries\fontseries{b
},
73 stringstyle=
\ttfamily,
75 showstringspaces=false,
81 % Increase the depth for the table of contenst
82 \setcounter{secnumdepth
}{3}
84 % Fix the algorithm font
85 \renewcommand\AlCapFnt{\normalfont}
87 % Initialize the glossaries