fresher_guide.tex 6.37 KB
Newer Older
Sam Moore's avatar
Sam Moore committed
1
2
3
4
% HERE BE DRAGONS
% This is complicated because it is based on [SZM]'s 2012 Honours Thesis template, which in turn was based on a template written by a Physics Professor.
% ~50% of this isn't actually needed, but it's too much effort to clean it up.

5
\documentclass[a5paper,9pt]{extreport}
6
\usepackage[margin=0.75in,headsep=0.25in,footskip=0.25in]{geometry}
Sam Moore's avatar
Sam Moore committed
7
\renewcommand{\familydefault}{\ttdefault}
Sam Moore's avatar
Sam Moore committed
8
9
10
%\linespread{1.3}
%\usepackage{setspace}
%\onehalfspacing 
11
 \parskip 8pt           % sets spacing between paragraphs
Sam Moore's avatar
Sam Moore committed
12
13
14
 %\renewcommand{\baselinestretch}{1.5} 	% Uncomment for 1.5 spacing between lines
 %\parindent 0pt		  % sets leading space for paragraphs

15
\usepackage{anyfontsize}
Sam Moore's avatar
Sam Moore committed
16
17
18

\usepackage{mdframed}

Sam Moore's avatar
Sam Moore committed
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%\usepackage{natbib}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage{caption}
%\usepackage{subfigure}
\usepackage{rotating}
%\usepackage{lscape}
\usepackage{pdflscape} % Needed for landscaping - in pdf viewer
\usepackage{verbatim}
\usepackage{amsmath, amsthm,amssymb}
\usepackage{mathrsfs}
\usepackage{hyperref}

\usepackage{epstopdf}
\usepackage{float}
\usepackage[compact]{titlesec}
35
\titlespacing{\chapter}{0pt}{-50pt}{0pt}
Sam Moore's avatar
Sam Moore committed
36
37
38
\titleformat{\chapter}
{\normalfont\LARGE\bfseries}{\thechapter.}{1em}{}

Sam Moore's avatar
Sam Moore committed
39
40
41
42
%\usepackage[usenames,dvipsnames]{color}
%\usepackage{listings} % For code snippets
\definecolor{pink}{rgb}{1.0,0.5,0.5}
\definecolor{darkgray}{rgb}{0.1,0.1,0.1}
Sam Moore's avatar
Sam Moore committed
43
\definecolor{lightgray}{rgb}{0.95,0.95,0.95}
44
\definecolor{gray}{rgb}{0.5,0.5,0.5}
Sam Moore's avatar
Sam Moore committed
45
\definecolor{darkred}{rgb}{0.75,0,0}
46
\definecolor{darkblue}{rgb}{0,0,0.35}
Sam Moore's avatar
Sam Moore committed
47
48
49
50
51
52
53
\definecolor{green}{rgb}{0,0.70,0}
\definecolor{black}{rgb}{0,0,0}
%\lstset{language=Java}
%\lstset{backgroundcolor=\color{darkgray}}
%\lstset{numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt}
%\lstset{keywordstyle=\color{darkred}\bfseries}
%\lstset{commentstyle=\color{darkblue}}
Sam Moore's avatar
Sam Moore committed
54
%\lstset{stringsyle=\color{red}}
Sam Moore's avatar
Sam Moore committed
55
56
%\lstset{showstringspaces=false}
%\lstset{basicstyle=\small}
Sam Moore's avatar
Sam Moore committed
57

Sam Moore's avatar
Sam Moore committed
58
\usepackage[table]{xcolor}
Sam Moore's avatar
Sam Moore committed
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

\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{Lemma}
\theoremstyle{definition}\newtheorem{definition}[theorem]{Definition}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{example}{Example}
\theoremstyle{remark}\newtheorem*{remark}{Remark}

\newcommand{\Phid}[0]{\dot{\Phi}}
\newcommand{\Phib}[0]{\bar{\Phi}}

\newcommand{\de}[0]{\delta}
\newcommand{\deb}[0]{\bar{\delta}}

\newcommand{\that}[0]{\hat{\theta}}

\newcommand{\vect}[1]{\boldsymbol{#1}} % Draw a vector
\newcommand{\divg}[1]{\nabla \cdot #1} % divergence
\newcommand{\curl}[1]{\nabla \times #1} % curl
\newcommand{\grad}[1]{\nabla #1} %gradient
\newcommand{\pd}[3][ ]{\frac{\partial^{#1} #2}{\partial #3^{#1}}} %partial derivative
\newcommand{\der}[3][ ]{\frac{d^{#1} #2}{d #3^{#1}}} %full derivative
\newcommand{\phasor}[1]{\tilde{#1}} % make a phasor
\newcommand{\laplacian}[1]{\nabla^2 {#1}} % The laplacian operator



% Reference things in GitHub
\newcommand{\gitref}[2]{\href{https://github.com/UniversityComputerClub/FresherGuide/master/#1/#2}{  \textcolor{blue}{\emph{#2}}}}
% Refer to API commands
\newcommand{\api}[1]{  ``\textcolor{black}{\texttt{/api/#1}}''}
Sam Moore's avatar
Sam Moore committed
91
% Pun alert
92
\newcommand{\pun}[1]{#1} % Emphasising it is kind of unnecessary
Sam Moore's avatar
Sam Moore committed
93
94
95
96
% Shell command
\newcommand{\shell}[1]{\texttt{#1}}
% Rants
\newcommand{\rant}[1]{\textsc{#1}}
Sam Moore's avatar
Sam Moore committed
97
\renewcommand{\url}[1]{<\href{#1}{\underline{\color{darkblue}{#1}}}>}
98

Sam Moore's avatar
Sam Moore committed
99
100

\newcommand{\setfont}[1]{\fontfamily{#1}\selectfont}
Sam Moore's avatar
Sam Moore committed
101
102
103
104
105
106
107
108
109
110
111
112
113
114

% To make underscores printable without escaping them
\usepackage[T1]{fontenc}
\catcode`\_=12

% Refer to code (can change each one as needed)
\newcommand{\funct}[1]{  \texttt{#1}}
\newcommand{\var}[1]{  \texttt{#1}}
\newcommand{\type}[1]{  \texttt{#1}}
\newcommand{\code}[1]{  \texttt{#1}}


%\usepackage{endfloat}
%\nomarkersintext
115
116
117
118
119
120
121
122
%\pagestyle{plain}
%\topmargin -0.6true in
%\textwidth 15true cm
%\textheight 9.5true in
%\oddsidemargin 0.25true in
%\evensidemargin 0.25true in
%\headsep 0.4true in

Sam Moore's avatar
Sam Moore committed
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140

\usepackage{fancyheadings}
\pagestyle{fancy}
\addtolength{\headheight}{2.5pt}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter~~#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection~~#1}{}}
\ifthenelse{\boolean{@twoside}}
{
        \rhead[\bfseries \rightmark]{\bfseries \thepage}
        \lhead[\bfseries \leftmark]{\bfseries \thepage}
        \addtolength{\headwidth}{\marginparsep}
        \addtolength{\headwidth}{\marginparwidth}
}{
        \lhead{\bfseries \leftmark}
        \rhead{\bfseries \thepage}
}
\cfoot{}

Sam Moore's avatar
Sam Moore committed
141
142
143
144
145
\usepackage{etoolbox}
\makeatletter
\patchcmd{\chapter}{\if@openright\cleardoublepage\else\clearpage\fi}{}{}{}
\makeatother

146
147
\newcommand{\zchapter}[1]{\chapter{#1} \setcounter{section}{-1}}

148
149
150
151
152
153
\usepackage{tocloft}
\renewcommand\cftchapfont{\normalsize\bfseries}
\renewcommand\cftsecfont{\normalsize}

\renewcommand\cftchappagefont{\normalsize\bfseries}
\renewcommand\cftsecpagefont{\normalsize}
Sam Moore's avatar
Sam Moore committed
154
155
156
157
%---------------------------------------------------------
%---------------------------------------------------------
\begin{document}

158
159
160
% keeps text within our margins
\sloppy

Sam Moore's avatar
Sam Moore committed
161
162
\include{titlepage/Titlepage}               % This is who you are

mpomery's avatar
mpomery committed
163
164
\pagenumbering{arabic}
\pagebreak
165

Sam Moore's avatar
Sam Moore committed
166
167
168
%---------------------------------------------------------
% Do the table of Contents and lists of figures and tables
%---------------------------------------------------------
169
\linespread{0.5}
Sam Moore's avatar
Sam Moore committed
170
171
172
173
% Do we need these for a fresher guide?
\tableofcontents
%\listoffigures
\markboth{}{}
174
\linespread{1.5}
175
176
177

\emph{"Interroga de Consensum Gradu Servitium nostra"}

Sam Moore's avatar
Sam Moore committed
178
179
\newpage

mpomery's avatar
mpomery committed
180
%\pagenumbering{arabic}
Sam Moore's avatar
Sam Moore committed
181
182
183
184
%---------------------------------------------------------
%---------------------------------------------------------
%Include the chapters!

185
186
187
188
\setcounter{chapter}{-1}


\include{chapters/Introduction} % Chapter 0
Sam Moore's avatar
Sam Moore committed
189
190
191
\include{chapters/FindClubroom} % Chapter 1
\include{chapters/SetupAccount}
\include{chapters/Dispense101}
Sam Moore's avatar
Sam Moore committed
192
\include{chapters/Events}
Sam Moore's avatar
Sam Moore committed
193
194
195
\include{chapters/Groups}
\include{chapters/Clubroom}
\include{chapters/Communications}
196
\include{chapters/Services}
197
198

\linespread{1.0}
Sam Moore's avatar
Sam Moore committed
199
200
\include{chapters/UnixCommands}
\include{chapters/Glossary}
Sam Moore's avatar
Sam Moore committed
201
202
203
204
% ETC

%\newpage
%---------------------------------------------------------
Sam Moore's avatar
Sam Moore committed
205
206
207
%\renewcommand{\bibname}{References}
%\bibliography{references/refs}
%\bibliographystyle{ieeetr}  
Sam Moore's avatar
Sam Moore committed
208
%\addcontentsline{toc}{part}{References}
Sam Moore's avatar
Sam Moore committed
209
210
211
%---------------------------------------------------------

% Appendices
Sam Moore's avatar
Sam Moore committed
212
213
%\appendix
%\include{appendices/Glossary}
Sam Moore's avatar
Sam Moore committed
214
215
216
217
218
219
%\include{appendices/figures}

%---------------------------------------------------------

\end{document}