-
Notifications
You must be signed in to change notification settings - Fork 3
/
thesis.tex
252 lines (157 loc) · 7.88 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
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
% ----------------------------------------------------------------------
% LATEX TEMPLATE FOR PhD THESIS AT STOCKHOLM UNIVERSITY
% ----------------------------------------------------------------------
% based on Harish Bhanderi's PhD/MPhil template, then Uni Cambridge
% http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/ThesisStyle/
% corrected and extended in 2007 by Jakob Suckale, then MPI-CBG PhD programme
% and made available through OpenWetWare.org - the free biology wiki
% modified for SU by Andreas Solders in 2011. Additional bug fixes and made available on GitHub by Samuel Bohman in 2017.
%: Style file for Latex
% Most style definitions are in the external filePhDthesisSU.
% In this template package, it can be found in ./Latex/Classes/
\documentclass[twoside,11pt]{Latex/Classes/PhDthesisSU} %Default style using S5 paper
%\documentclass[twoside,11pt]{Latex/Classes/PhDthesisSU_A4} %Use this instead if you need A4 paper.
%: Macro file for Latex
% Macros help you summarize frequently repeated Latex commands.
% Here, they are placed in an external file /Latex/Macros/MacroFile1.tex
% An macro that you may use frequently is the figuremacro
\include{Latex/Macros/MacroFile1}
\setcitestyle{square,numbers} % change how references are included (see the natbib package).
%: -------------------------------------------------------------
%: TITLE PAGE
% --------------------------------------------------------------
\title{Title of your thesis}%Title of the thesis
\subtitle{Subtitle}% Subtitle of the thesis
\author{\href{mailto:email@department.su.se}{Your Name}}
%put the following in PDF header
%\pdfinfo { /Title ()
% /Creator ()
% /Producer ()
% /Author ()
% /CreationDate (D:YYYYMMDDhhmmss) %format D:YYYYMMDDhhmmss
% /ModDate (D:YYYYMMDDhhmm)
% /Subject (xyz)
% /Keywords (add, your, keywords, here) }
%\pdfcatalog { /PageMode (/UseOutlines)
% /OpenAction (fitbh) }
\pdfinfo{
/Author (Nicola Talbot)
/Title (Creating a PDF document using PDFLaTeX)
/CreationDate (D:20040502195600)
/Subject (PDFLaTeX)
/Keywords (PDF;LaTeX)
}
% ---------------------------------------------------------------
% turn of those nasty overfull and underfull hboxes
\hbadness=10000
\hfuzz=50pt
% \raggedbottom
% ---------------------------------------------------------------
%: FRONT MATTER: dedications, abstract,..
% ---------------------------------------------------------------
%\includeonly{X/filename} % Uncomment to only compile the specified files.
\begin{document}
\selectlanguage{english}
\frontmatterSU
\halftitlepage
%: ----------------------- Generate cover page ------------------------
\maketitle % command to print the title page with above variables
%: ----------------------- Cover page back side ------------------------
\newpage
\thispagestyle{empty}
\input{0_frontmatter/abstract} % Uncomment to input the abstract if you want to have it printed.
\phantom{.}
\vspace{\stretch{1}}
% see https://en.wikibooks.org/wiki/LaTeX/Fonts
{\fontfamily{cmr}\selectfont
{\scriptsize
\noindent
\copyright Your Name, Stockholm 20XX % Name of author, location year
\vspace{5mm}
\noindent
ISBN XXX-XX-XXXX-XXX-X % Provided by the library
\vspace{5mm}
\noindent
Typeset by the author using \LaTeX \newline
Printed in Sweden by XXXX, Stockholm 2011 %name of printing company
\noindent
Distributor: Department of XX, Stockholm University %name of department
}
}
\cleardoublepage
%: ----------------------- Tie in front matter ------------------------
\include{0_frontmatter/dedication} % Include a page with dedication
\include{0_frontmatter/listofpapers} % Include a list of papers
\include{0_frontmatter/contribution} % Include a page with authors contribution
%: ----------------------- Table of contents ------------------------
\setcounter{secnumdepth}{2} % organisational level that receives a numbers
\setcounter{tocdepth}{2} % print table of contents for level 2
\tableofcontents % print the table of contents
% levels are: 0 - chapter, 1 - section, 2 - subsection, 3 - subsubsection
%: ----------------------- Abbreviations ------------------------
% Tie in external source file for definitions: /0_frontmatter/abbreviations.tex
% Abbreviation entries can also be defined in the main text. See abbreviations.tex
% To create the glossary run "makeindex thesis.nlo -s nomencl.ist -o thesis.nls"
\renewcommand{\nomname}{Abbreviations} % Change title of page from Nomenclature to Abbreviations
% \nomrefpage % to include page numbers after abbrevations
% In the text type "\g" to refer to glossary
\include{0_frontmatter/abbreviations}
%\begin{multicols}{2} % uncomment to have 2 columns
\begin{footnotesize} % scriptsize(7) < footnotesize(8) < small (9) < normal (10)
\printnomenclature[2 cm] % [] = distance between entry and description
\label{nom} % target name for links to glossary
\end{footnotesize}
% \end{multicols}
%: ----------------------- list of figures/tables ------------------------
\listoffigures % print list of figures
\listoftables % print list of tables
%: ----------------------- Acknowledgements ------------------------
\include{0_frontmatter/acknowledgement} % Use this to include an acknowledgement in the frontmatter
%: --------------------------------------------------------------
%: MAIN DOCUMENT SECTION
% --------------------------------------------------------------
% the main text starts here with the introduction, 1st chapter,...
\mainmatterSU
%: ----------------------- subdocuments ------------------------
% Parts of the thesis are included below. Rename the files as required.
% But take care that the paths match. You can also change the order of appearance by moving the include commands.
\include{1_introduction/introduction}
% \include{2/chapter2}
\include{2/instructions}
\include{3/chapter3}
\include{4/chapter4}
\include{5/chapter5}
\include{6/chapter6}
\include{7/chapter7}
\include{8/chapter8}
% Include as many chapters as you need
% --------------------------------------------------------------
%: BACK MATTER: appendices, refs,..
% --------------------------------------------------------------
\backmatterSU
% the back matter: summary and references close the thesis
\include{9_backmatter/summary}
\include{9_backmatter/acknowledgement} % Use this to include an acknowledgement in the backmatter
%: ----------------------- bibliography ------------------------
% The section below defines how references are listed and formatted.
%\begin{multicols}{2} % \begin{multicols}{ # columns}[ header text][ space] %uncomment to have 2 columns
\begin{scriptsize} % tiny(5) < scriptsize(7) < footnotesize(8) < small (9)
\bibliographystyle{Latex/Classes/PhDbiblio-url2} %Default style file. Change according to you preferences.
\renewcommand{\bibname}{References} % changes the header from Bibliography to References
\bibliography{9_backmatter/references} % adjust this to fit your BibTex file
\end{scriptsize}
%\end{multicols}
% Various bibliography styles exit. Replace above style as desired.
% in-text refs: (1) (1; 2)
% ref list: alphabetical; author(s) in small caps; initials last name; page(s)
%\bibliographystyle{Latex/Classes/PhDbiblio-case} % title forced lower case
%\bibliographystyle{Latex/Classes/PhDbiblio-bold} % title as in bibtex but bold
%\bibliographystyle{Latex/Classes/PhDbiblio-url} % bold + www link if provided
%\bibliographystyle{Latex/Classes/jmb} % calls style file jmb.bst
% in-text refs: author (year) without brackets
% ref list: alphabetical; author(s) in normal font; last name, initials; page(s)
%\bibliographystyle{plainnat} % calls style file plainnat.bst
% in-text refs: author (year) without brackets
% (this works with package natbib)
% --------------------------------------------------------------
\end{document}