-
Notifications
You must be signed in to change notification settings - Fork 0
/
includes.tex
72 lines (60 loc) · 1.95 KB
/
includes.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
% Any other setup not related directly to the template
% Enable hyper referencing
\usepackage[hidelinks]{hyperref}
\hypersetup{linktocpage, linktoc=all}
% Add support for more than one URL
% Separate URLs like so: \url{https://one.com https://two.com}
% Mostly meant for the references
\let\URL\url
\makeatletter
\def\url{\begingroup \catcode`\%=12\catcode`\#=12\relax\printurl}
\def\printurl#1{\@URL#1 \@nil\endgroup}
\def\@URL#1 #2\@nil{\URL{#1}\ifx\relax#2\relax \else; \url{#2\relax}\fi}
\makeatother
% Improvements for tables
\usepackage{ragged2e}
\usepackage{booktabs, makecell, tabularx}
% Less whitespace for itemize - not needed when raggedbottom is in use
%\setlist[itemize]{noitemsep,topsep=0pt}
% Don't stretch pages vertically
% TODO: Might not be sensible for final version
\raggedbottom
% Add ability to create cells within tables
\usepackage{makecell}
% Allow for glossaries
\usepackage[toc,acronym]{glossaries}
\input{glossaries}
% Add more whitespace to table captions
\usepackage{subfig}
\captionsetup{belowskip=12pt,aboveskip=4pt}
% More footnote options
\usepackage{footmisc}
% Fancy verbatim
\usepackage{fancyvrb}
% Highlight code
\usepackage{listings}
\usepackage{xcolor}
\definecolor{codeblack}{rgb}{0,0,0}
\definecolor{codegray}{rgb}{0.5,0.5,0.5}
\lstdefinestyle{mystyle}{
backgroundcolor=\color{white}, commentstyle=\color{codegray},
keywordstyle=\color{codeblack},
numberstyle=\tiny\color{codeblack},
stringstyle=\color{codeblack},
basicstyle=\ttfamily\footnotesize,
breakatwhitespace=false,
breaklines=true,
captionpos=b,
keepspaces=true,
numbers=none,
numbersep=5pt,
showspaces=false,
showstringspaces=false,
showtabs=false,
tabsize=2
}
\lstset{style=mystyle}
% Rename bibliography to references latex
\renewcommand{\bibname}{References}
\usepackage[nottoc]{tocbibind}
%\usepackage[]{tocbibind}