-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththesis.tex
102 lines (73 loc) · 2.37 KB
/
thesis.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
%!TEX encoding = UTF-8 Unicode
\documentclass[School=Unimelb]{Dissertate}
%-------- Custom additions
% Line number mode - useful during writing/reviewing
\usepackage[left]{lineno}
% For subfigures
\usepackage{subcaption}
% For appendices in a chapter
\usepackage{appendix}
% Honestly I don't remember what this does but I'm too scared to remove it
\usepackage{chngcntr}
% Allows multiple rows/columns in tables
\usepackage{multirow}
% For template demo
\usepackage{lipsum}
% Table of contents depth
\setcounter{tocdepth}{2}
%-------- Process flows & tikz
\usepackage{tikz}
\usetikzlibrary{shapes, arrows, positioning}
%-------- Multicol in bib
\usepackage{multicol}
\setlength{\columnsep}{1cm}
\renewcommand{\bibpreamble}{\begin{multicols}{2}}
\renewcommand{\bibpostamble}{\end{multicols}}
%-------------COMMANDS - SHORTCUTS --------%
% put your shortcuts here
%-------------COMMANDS - UNITS --------%
\newcommand{\hr}{\, {\rm hr}}
\newcommand{\kyr}{\, {\rm kyr}}
\newcommand{\hz}{\, {\rm Hz}}
\newcommand{\tesla}{\, {\rm T}}
%-------------COMMANDS - EDITING --------%
\newcommand{\todo}[1]{{\color{red}~\textsf{[{\bf TODO}: #1]}}} %todos
%-------------COMMANDS - BIB --------%
% shortcuts used by NASA/ADS
\newcommand\aj{The Astronomical Journal}
\newcommand\apj{The Astrophysical Journal}
\newcommand\apjl{The Astrophysical Journal Letters}
\newcommand\apjs{The Astrophysical Journal Supplement Series}
\newcommand\mnras{Monthly Notices of the Royal Astronomical Society}
% Formats bibliography spacing
\newlength{\bibitemsep}\setlength{\bibitemsep}{.2\baselineskip plus .05\baselineskip minus .05\baselineskip}
\newlength{\bibparskip}\setlength{\bibparskip}{0pt}
\let\oldthebibliography\thebibliography
\renewcommand\thebibliography[1]{%
\oldthebibliography{#1}%
\setlength{\parskip}{\bibitemsep}%
\setlength{\itemsep}{\bibparskip}%
}
\author{Full Author Name}
\begin{document}
\graphicspath{{./figures/}}
% the front matter
\frontmatter
\linenumbers
% include each chapter...
%\setcounter{chapter}{-1} % start chapter numbering at 0
\chapter{A long-expected party}
\label{chap:chap1}
\input{chapters/chapter1}
\singlespacing
% the back matter
\clearpage
\phantomsection
% Change bib name to references
\addcontentsline{toc}{chapter}{References}
% Stylefile - swap as needed
\bibliographystyle{mnras}
% Make reference font very small
{\scriptsize
\bibliography{thesis}{}}
\end{document}