forked from MBradbury/thesis-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeader.tex
115 lines (94 loc) · 2.61 KB
/
Header.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
% !TeX root = Thesis.tex
\usepackage[unicode=true,colorlinks=true,linkcolor=black,urlcolor=blue,citecolor=blue]{hyperref}
% PDF Metadata
\hypersetup%
{%
pdfencoding=auto,
pdfauthor={{\thesisauthor}},
pdfproducer={\thesisauthor},
pdfsubject={\thesissubject},
pdftitle={\thesistitle},
pdfkeywords={\thesiskeywords}
}
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
\usepackage[UKenglish]{babel}
\usepackage{pdfpages}
\usepackage{upgreek}
\usepackage{siunitx}
\usepackage{bm}
%\usepackage[utf8x]{inputenc}
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
% Math fonts
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{mathtools}
\usepackage{empheq}
\newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{microtype} % Use this for nicer text spacing
\usepackage{enumerate}
\usepackage{paralist}
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
\usepackage{tabularx}
\usepackage{booktabs}
%\setcounter{chapter}{-1}
% From: https://tex.stackexchange.com/questions/12703/how-to-create-fixed-width-table-columns-with-text-raggedright-centered-raggedlef
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
% From: https://tex.stackexchange.com/questions/34155/autoref-does-not-capitalize-initial-character-in-sentence-when-referencing-labe
\usepackage{catoptions}
\makeatletter
\def\figureautorefname{figure}
\def\tableautorefname{table}
\def\definitionautorefname{definition}
%\def\algorithmautorefname{algorithm} % Already defined
\def\Autoref#1{%
\begingroup
\edef\reserved@a{\cpttrimspaces{#1}}%
\ifcsndefTF{r@#1}{%
\xaftercsname{\expandafter\testreftype\@fourthoffive}
{r@\reserved@a}.\\{#1}%
}{%
\ref{#1}%
}%
\endgroup
}
\def\testreftype#1.#2\\#3{%
\ifcsndefTF{#1autorefname}{%
\def\reserved@a##1##2\@nil{%
\uppercase{\def\ref@name{##1}}%
\csn@edef{#1autorefname}{\ref@name##2}%
\autoref{#3}%
}%
\reserved@a#1\@nil
}{%
\autoref{#3}%
}%
}
\makeatother
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
% For \bibentry
\usepackage{bibentry}
\nobibliography*
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
% Author: Phil Taylor
%\usepackage[draft]{todonotes}
%\newcommand{\citationneeded}[1]{\textcolor{blue}{\textbf{[ citation needed~\citet{#1}}}}
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%
\usepackage[acronym,symbols,nonumberlist,toc,nogroupskip]{glossaries}
\makenoidxglossaries
\include{Preamble/GlossaryDefs}
%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%