forked from jwlawson/dmathesis
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpreamble.tex
More file actions
88 lines (74 loc) · 3.18 KB
/
preamble.tex
File metadata and controls
88 lines (74 loc) · 3.18 KB
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
% General packages
\usepackage[utf8]{inputenc} % utf8 input good for non-ascii characters
\usepackage[T1]{fontenc} % Good for hyphenating non-ascii characters
\usepackage{lmodern}
\usepackage[british]{babel}
\usepackage[nottoc]{tocbibind} % Includes bibliography in table of contents, but not the table of contents itself
\usepackage[figuresright]{rotating} % Allows for sideways figures and tables
\usepackage[hidelinks,pdfusetitle]{hyperref} % hidelinks removes the boxes around links when viewed on screen, pdfusetitle option includes the thesis title and author in the PDF metadata
\usepackage{cite} % Combine multiple citations in range
% Nicer appearance / typesetting
\usepackage[shrink=10,stretch=10]{microtype}
% We define a command to disable and enable protrusion, used for the tables of contents
\makeatletter
\@ifpackageloaded{microtype}{%
\providecommand{\disableprotrusion}{\microtypesetup{protrusion=false}}
\providecommand{\enableprotrusion}{\microtypesetup{protrusion=true}}
}{%
\providecommand{\disableprotrusion}{}
\providecommand{\enableprotrusion}{}
}
\makeatother
\usepackage{booktabs} % Better tables
% These make paragraphs not indented, and separate consecutive paragraphs
\setlength{\parindent}{0pt}
\setlength{\parskip}{0.5em plus 3pt minus 3pt}
% Format captions
\usepackage[margin=15mm,hang]{caption}
\usepackage{subcaption}
\usepackage{perpage} % Allows to reset counters on each page
\MakePerPage{footnote} % Resets footnote counters on each page
% For convenience
% The folder in which images are stored for this project.
% If this is enabled, the folder doesn't need to be specified in each
% call to \includegraphics, i.e
% \includegraphics{picturename}
% rather than
% \includegraphics{img/picturename}
\graphicspath{{img/}}
% In align*, use this to number a particular line
% Rather than using align, and \nonumber-ing every other line
\newcommand\numberthis{\addtocounter{equation}{1}\tag{\theequation}}
% Provide itemize and enumerate without extra spacing
\newenvironment{itemize*}%
{\begin{itemize}%
\setlength{\itemsep}{0pt}%
\setlength{\parskip}{0pt}}%
{\end{itemize}}
\newenvironment{enumerate*}%
{\begin{enumerate}%
\setlength{\itemsep}{0pt}%
\setlength{\parskip}{0pt}}%
{\end{enumerate}}
% Better maths support
\usepackage{amsmath,amssymb}
\numberwithin{equation}{section}
\allowdisplaybreaks % Allow display equations to break over different pages
\usepackage{amssymb}
\usepackage{bm} % More bold maths symbols
\usepackage{bbm} % More blackboard bold characters, via \mathbbm. Mostly for blackboard bold 1
\usepackage{xfrac} % Nice small fractions
\usepackage{array} % Allows us to define custom column types for tables
\newcolumntype{L}{>{$}l<{$}} % a left aligned maths column type
\usepackage{cleveref} % Add automatic reference type text via \cref command
% Some useful physics packages
\usepackage[italic]{hepnames} % Add particle name macros (e.g. \PBs)
\usepackage{braket} % Adds Dirac bra-ket notation
\usepackage{slashed} % Adds Dirac slash notation
\usepackage{siunitx} % Add support for units
\sisetup{
separate-uncertainty, % uncertainties with +- symbol,
range-phrase = --, % ranges with dash
range-units = single % only write unit once
}
\DeclareSIUnit\fb{\femto\barn}