-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththesismods.sty
140 lines (120 loc) · 4.41 KB
/
thesismods.sty
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
% Modifications to the Warwick style file
\typeout{*************************************************************}
\typeout{ Warwick Thesis Style Modifications File }
\typeout{ Copyright (c) 2011 Andrew J. Bennieston }
\typeout{*************************************************************}
% Add support for align env
\usepackage{amsmath}
% Add support for weird math fonts
\usepackage{eufrak}
% Define some useful colours
\usepackage{color}
%\definecolor{WarwickBlue}{RGB}{4, 52, 177}
\definecolor{WarwickBlue}{RGB}{26, 93, 173}
\definecolor{WarwickLightBlue}{RGB}{91, 146, 230}
\definecolor{WarwickWhite}{RGB}{255, 255, 255}
\definecolor{WarwickCyan}{RGB}{0, 171, 236}
\definecolor{WarwickDarkBlue}{RGB}{50, 0, 164}
% Font stuff
\usepackage{fontspec}
\newfontfamily\chaptertitlefont{Futura Std Medium}
\newfontfamily\thesistitlefont{Futura Std Medium}
\def\bfseries{\fontseries \bfdefault \selectfont \boldmath}
% Support mathmode "matrix like" numbers
\usepackage{bbold}
% Use (modified) fncychap
\usepackage[Warwick]{fncychapwarwick}
% Use acronym package
\usepackage[printonlyused]{acronym}
% Sub-figures
\usepackage{subfigure}
% PDF Hypertext References
% THIS SHOULD BE THE LAST INCLUDED PACKAGE
\usepackage[xetex,unicode]{hyperref}
\hypersetup{colorlinks=true,
linkcolor=black,
anchorcolor=black,
citecolor=black,
filecolor=black,
urlcolor=black,
pdfauthor=Andrew J. Bennieston,
pdftitle=Ph.D. Thesis,
bookmarksnumbered=true,
}
% Modification to make links jump to the right place
\makeatletter
\newcommand\org@hypertarget{}
\let\org@hypertarget\hypertarget
\renewcommand\hypertarget[2]{%
\Hy@raisedlink{\org@hypertarget{#1}{}}#2%
} \makeatother
% Redefine \vec in mathmode
\renewcommand{\vec}[1]{\ensuremath{\mathbf{#1}}}
% Define \diag in mathmode
\newcommand{\diag}{\ensuremath{\mathrm{diag}}}
% Redefine Real and Imaginary symbols in mathmode
\renewcommand{\Re}{\ensuremath{\mathfrak{Re}}}
\renewcommand{\Im}{\ensuremath{\mathfrak{Im}}}
% Matrix stuff
\newcommand{\tr}{\ensuremath{\mathrm{Tr}\,}}
% Define some useful mathmode shortcuts
\newcommand{\half}{\ensuremath{\frac{1}{2}}}
\newcommand{\thetarms}{\ensuremath{\theta_0^{\mathrm{rms}}}}
% Mathmode units
% Electron volts
\newcommand{\eV}{\ensuremath{\,\mathrm{eV}}}
\newcommand{\keV}{\ensuremath{\,\mathrm{keV}}}
\newcommand{\MeV}{\ensuremath{\,\mathrm{MeV}}}
\newcommand{\GeV}{\ensuremath{\,\mathrm{GeV}}}
\newcommand{\TeV}{\ensuremath{\,\mathrm{TeV}}}
% Lengths (metric)
\newcommand{\fmetre}{\ensuremath{\,\mathrm{fm}}}
\newcommand{\micron}{\ensuremath{\,\mu\mathrm{m}}}
\newcommand{\mm}{\ensuremath{\,\mathrm{mm}}}
\newcommand{\cm}{\ensuremath{\,\mathrm{cm}}}
\newcommand{\metre}{\ensuremath{\,\mathrm{m}}}
\newcommand{\km}{\ensuremath{\, \mathrm{km}}}
% Times
\newcommand{\second}{\ensuremath{\,\mathrm{s}}}
% Frequencies
\newcommand{\MHz}{\ensuremath{\,\mathrm{MHz}}}
% Masses
\newcommand{\gram}{\ensuremath{\,\mathrm{g}}}
\newcommand{\kg}{\ensuremath{\,\mathrm{kg}}}
\newcommand{\ton}{\ensuremath{\,\mathrm{ton}}}
\newcommand{\kton}{\ensuremath{\,\mathrm{kton}}}
\newcommand{\Mton}{\ensuremath{\,\mathrm{Mton}}}
% Electromagnetic Stuff
\newcommand{\volt}{\ensuremath{\,\mathrm{V}}}
\newcommand{\kvolt}{\ensuremath{\,\mathrm{kV}}}
\newcommand{\Mvolt}{\ensuremath{\,\mathrm{MV}}}
\newcommand{\tesla}{\ensuremath{\,\mathrm{T}}}
% Temperatures
\newcommand{\kelvin}{\ensuremath{\,\mathrm{K}}}
\newcommand{\degC}{\ensuremath{\,^\circ\mathrm{C}}}
% Angles
\newcommand{\rad}{\ensuremath{\,\mathrm{rad}}}
\newcommand{\degree}{\ensuremath{^\circ}}
% Moles
\newcommand{\mol}{\ensuremath{\,\mathrm{mol}}}
% Mathmode elements
\newcommand{\Hydrogen}{\ensuremath{\mathrm{H}}}
\newcommand{\Deuterium}{\ensuremath{\mathrm{D}}}
\newcommand{\Oxygen}{\ensuremath{\mathrm{O}}}
\newcommand{\Cl}{\ensuremath{\mathrm{Cl}}}
\newcommand{\Ar}{\ensuremath{\mathrm{Ar}}}
\newcommand{\Ga}{\ensuremath{\mathrm{Ga}}}
\newcommand{\Be}{\ensuremath{\mathrm{Be}}}
% Mathmode quantum foo
\newcommand{\bra}[1]{\ensuremath{\langle #1|}}
\newcommand{\ket}[1]{\ensuremath{|#1\rangle}}
\newcommand{\braket}[2]{\ensuremath{\langle #1|#2\rangle}}
\newcommand{\rstate}[1]{\ket{\nu_{#1}}}
\newcommand{\lstate}[1]{\bra{\nu_{#1}}}
% Mathmode CP symbols
\newcommand{\Charge}{\ensuremath{\mathcal{C}}}
\newcommand{\Parity}{\ensuremath{\mathcal{P}}}
% Consistency shortcuts
\newcommand{\ccqe}{\ensuremath{\mu\,+\,p}}
\newcommand{\ccpi}{\ensuremath{\mu\,+\,p\,+\,\pi^{+}}}
\newcommand{\CCPI}{\ensuremath{\mathrm{CC}1\pi}}