forked from villekol/tau-latex-dissertation-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
272 lines (220 loc) · 7.67 KB
/
main.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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Congratulations, you've made an excellent choice
%% of writing your Tampere University dissertation using
%% the LaTeX system. This document attempts to be
%% as complete a template as possible to let you focus
%% on the most important part: the writing itself.
%% Thus the details regarding the visual appearance
%% have already been worked out for you!
%%
%% I sincerely hope you will find this template useful
%% in completing your dissertation project. I've tried to
%% add comments (followed by the % sign) to clarify
%% the structure and purpose of some of the commands.
%% Most of the magic happens in the file
%% taudissertation.cls, which you are more than welcome
%% to take a look at. Just refrain from editing it
%% in the most crucial versions of the dissertation!
%%
%% I wish you and your dissertation project the best
%% of luck! If this template causes you trouble along
%% the way or if you've any suggestions for improving it,
%% please be in contact through GitHub.
%% (https://github.com/villekol/tau-latex-dissertation-template)
%%
%% Yours,
%%
%% Ville Koljonen
%%
%% PS. This template or its associated class file don't
%% come with a warranty. The content is provided as is,
%% without even the implied promise of fitness to the
%% mentioned purpose. You, as the author of the dissertation,
%% are responsible for the entire work, including the
%% provided material. No one else is liable to you for
%% any damage inflicted on you or your thesis, were it
%% caused by using this template or not.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% INSTRUCTIONS FOR COMPILING THE DOCUMENT %%%%%
%% Overleaf: just click Recompile.
%% Terminal:
%% 1. pdflatex main.tex
%% 2. makeindex -s main.ist -t main.glg -o main.gls main.glo
%% 3. biber main
%% 4. pdflatex main.tex
%% 5. pdflatex main.tex
%% Similar sequence of commands is also required
%% in LaTeX specific editors.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% METADATA %%%%%
%% Always keep the following metadata up to date!
%% This is important for your PDF file to comply
%% to accessibility standards.
%% (And yes, this information must remain here,
%% before \documentclass[...]{...}.)
% \Title and \Language are mandatory,
% others desirable
% The appropriate Finnish language code is 'fi',
% UK English is en-UK
\begin{filecontents*}[overwrite]{\jobname.xmpdata}
\Title{Title}
\Author{Firstname Lastname}
\Language{en-US}
\end{filecontents*}
\pdfminorversion=6
%%%%% PREAMBLE %%%%%
%%%%% Document class declaration.
% The possible optional arguments are
% finnish - thesis in Finnish (default)
% english - thesis in English
% numeric - citations in numeric style (default)
% authoryear - citations in author-year style
% apa - citations in APA 7 style (English only)
% ieee - citations in IEEE style (English only)
% Example: \documentclass[english, authoryear]{tauthesis}
% thesis in English with author-year citations
\documentclass[english]{taudissertation}
% The glossaries package may throw a warning:
% No language module detected for 'finnish'.
% You can safely ignore this. All other
% warnings should be taken care of!
%%%%% Your packages.
% Before adding packages, see if they can be found
% in taudissertation.cls already. If you're not sure
% that you need a certain package, don't include it
% in the document! This can dramatically reduce
% compilation time.
\usepackage{lipsum}
%\usepackage{amsmath,amssymb}
% (SI) unit handling
%\usepackage{siunitx}
%
%\sisetup{
% detect-all,
% exponent-product=\cdot
%}
%\if@langenglish
% \sisetup{output-decimal-marker={.}}
%\else
% \sisetup{output-decimal-marker={,}}
%\fi
%%%%% Your commands.
% Print verbatim LaTeX commands
\newcommand{\verbcommand}[1]{\texttt{\textbackslash #1}}
%%%%% Glossary information.
% Use the following lines ONLY if you need more
% than one glossary. The first argument specifies
% a type label for the glossary and the second
% the displayed name.
% \newglossary*{symbs}{Symbols}
% \newglossary{label}{Displayed name}
% ...
\makeglossaries
% Use this line if using the default glossary.
% Otherwise comment out.
\loadglsentries[main]{tex/glossary.tex}
% Use this line if using more than one glossary.
% Otherwise comment out.
% \loadglsentries[symbs]{tex/glossary2.tex}
%%%%% Citation information.
% Use a separate .bib file to store bibliographic
% information relating to own publications.
% If you're writing a monograph, simply comment
% this out.
\addbibresource{publications/publications.bib}
% References for the dissertation.
\addbibresource{tex/references.bib}
\hypersetup{hidelinks}
\begin{document}
%%%%% FRONT MATTER %%%%%
\frontmatter
% Enter the title and a possible subtitle
% of your work along with your name here.
\title{Title}
\subtitle{Subtitle}
\author{Firstname Lastname}
% Notice that this is only included for
% convenience, use the separate title page
% template to produce the final book cover pages.
\maketitle
% Write the dedication into a separate file.
% Comment out if not applicable.
\dedication{tex/dedication.tex}
% Write either 'Preface' ('Esipuhe') or
% 'Acknowledgements' ('Kiitokset').
% Write the title of this section as the first
% argument and the file name as the second.
\preface{Preface/Acknowledgements}{tex/preface.tex}
% Write the abstracts, the first one in the
% main language of the dissertation.
% Comment the other one out if not applicable
% (e.g. international students).
\abstract{tex/abstract.tex}
\otherabstract{tex/otherabstract.tex}
% Automatically updating ToC.
\tableofcontents
% Print lists of figures, tables and programs,
% if necessary. Otherwise comment out.
% Use the listings package for all code listings.
\listoffigures
\listoftables
\lstlistoflistings
% Misc stuff related to how the glossary is displayed.
% You can especially tweak the lengths to suit you!
\glsaddall
\setglossarystyle{taulong}
\setlength{\glsnamewidth}{0.25\textwidth}
\setlength{\glsdescwidth}{0.75\textwidth}
\renewcommand*{\glsgroupskip}{}
% Print the default glossary of abbreviations,
% if necessary. Otherwise comment out.
% The appropriate Finnish variant is 'Lyhenteet'
\printglossary[title=Abbreviations]
% Print more than one glossary with these lines.
% Otherwise comment out.
% \printglossary[type=symbs]
% \printglossary[type=label]
% ...
% Print the list of original publications.
% The format of the bibliographic information
% is similar to the entries in the bibliography.
% Comment out if writing a monograph.
\listofpublications
% \clearpage
\authorcontribution{tex/authorcontribution.tex}
%%%%% MAIN MATTER %%%%%
\mainmatter
% Write each chapter into a separate file.
% Add a \label right after the chapter name
% if you need to reference it later.
\chapter{Using this template}
\label{ch:firstchapter}
\input{tex/chapter.tex}
% Add other chapters similary.
% Print the list of references.
%\setlength{\labelnumberwidth}{3em}
\printbibliography[heading=bibintoc, notkeyword={thisdissertation}]
% Write the appendices as chapters between
% \begin{appendices} and \end{appendices}.
\begin{appendices}
\chapter{Appendix}
\label{ch:appendix}
\input{tex/appendix.tex}
\end{appendices}
%%%%% PUBLICATION MATTER %%%%%
% Comment this part out completely,
% if writing a monograph.
\publicationmatter
% Include the publications using the command
%
% \publication{<citeID>}{<path/to/article/pdf>}
%
% This automatically prints the publication
% cover pages and appends the article pdf
% to this dissertation. Remember to include
% them in the same order as in the list of
% publications!
\publication{article1}{publications/article-1.pdf}
\publication{article2}{publications/article-2.pdf}
\publication{article3}{publications/article-3.pdf}
\end{document}