forked from b-pereira/novathesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
360 lines (295 loc) · 14.2 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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% texplate.tex
%% NOVA thesis document template
%%
%% This work is licensed under the
%% Creative Commons Attribution-NonCommercial 4.0 International License.
%% To view a copy of this license,
%% visit http://creativecommons.org/licenses/by-nc/4.0/.
%%
%% Version 2019/02/26 [4.2.1]
%% Departamento de Informática
%% Faculdade de Ciências e Tecnologia
%% Universidade NOVA de Lisboa
%%
%% BUGS and SUGGESTIONS: please submit an issue at the project web page
%% at: https://github.com/joaomlourenco/novathesis/
%%
%% HELP: please ask for help at the NOVAthesis google group at
%% https://groups.google.com/forum/#!forum/novathesis
%% or at the facebook page
%% https://www.facebook.com/groups/novathesis/
%%
%% Authors / Contributors:
%% - João Lourenço <joao.lourenco@fct.unl.pt>
%% - Bruno Candeias <b.candeias@campus.fct.unl.pt>
%%
%% DONATIONS:
%% If you think this templatze really helped you while writing your thesis,
%% think about doing a small donation. Just access the website
%% https://github.com/joaomlourenco/novathesis/
%% and click in the “Donation” link.
%% I'll keep a list thanking to all the identified donors that identify
%% themselves in the “*Add special instructions to the seller:*” box.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The default option marked with (*)
\documentclass[
docdegree=phd, % phd(*), phdplan, phdprop, msc, mscplan, bsc
school=um/eeng, % um/eeng, um/emed, um/ec
lang=pt, % en(*), fr, it, pt
%coverlang=en, % defaults to main language
%copyrightlang=en, % defaults to main language
fontstyle=newsgott, % Only font working. Using XeTeX with custom fonts, other fonts
% won't work because they have to use pdflatex
chapstyle=elegant, % bianchi bluebox brotherton dash default elegant(*) ell ger
% hansen ist jenor lyhne madsen pedersen veelo vz14 vz34 vz43
otherlistsat=front, % front(*), back
secondcover=true, % false=don't true=include the aftercover file (even if exists)
aftercover=false, % false=don't true=include the aftercover file (even if exists)
linkscolor=darkblue, % darkblue, black (Set to 'black' for PRINTING)
printcommittee=false, % set to 'false' from submitted versins who should not have
% the list of committee memebers
spine=false, % (Set to 'true' for PRINTING the book spine)
cdcover=false, % (Set to 'true' for PRINTING the CD cover)
biblatex={ % Options for biblatex (see biblatex documentation)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% uncomment for 'apa' like citations
% backend=biber, % must use biber as the backend (and not bibtex)
% natbib=true, % compatiblity with natbib (use \cite{…} or \citep{…})
% style=apa, % APA style
% maxcitenames=2, % use at most two names in citation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% uncomment for 'numeric-by-order-of-citation' like citations
% backend=bibtex, % use bibtex if possible
% style=numeric-comp, % numeric(*), alphabetic, authoryear, bwl-FU
% sortcites=true, % If numeric, sort cites by crescent order
% sorting=none, % none, nyt(*), ynt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% uncomment for 'numeric-by-order-of-citation' like citations
backend=bibtex, % use bibtex if possible
style=numeric-comp, % numeric(*), alphabetic, authoryear, bwl-FU
sortcites=true, % If numeric, sort cites by crescent order
sorting=nyt, % none, nyt(*), ynt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% uncomment for 'numeric-by-order-of-citation' like citations
% backend=bibtex, % use bibtex if possible
% style=alphabetic, % numeric(*), alphabetic, authoryear, bwl-FU
% sorting=nyt, % none, nyt(*), ynt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% other options for biblatex
maxbibnames=99, % Never use 'et al' in the bibliography
giveninits=true, % render all first and middle names as initials
hyperref=true % Hyperlinks in citations: true(*) false
},
memoir={ % See the 'memoir' documentation
% showtrims, % DEBUG
a4paper, % the paper size/format
12pt, % 10pt, 11pt(*), 12pt
final, % draft, final <= Replace 'draft' with 'final' in final version
oneside
},
media=screen, % screen(*), paper
% behavior to be defined in school options based in "\novathesis@opt@media"
% definitions for screen: left and right margins are equal, colored links
% definitions for paper: left and right margins are different, black links
oneside
]{novathesis}
%%============================================================
%%
%% BEGINING OF USER COSTUMIZATION
%%
%%============================================================
%------------------------------------------------------------------
% IMPORTANT --- LICENSING
%------------------------------------------------------------------
%%%%%%%%% Important package for the licensing.
\usepackage[
type={CC},
lang=portuguese,
modifier={by-nc-sa},
version={4.0},
]{doclicense} % By default english is used, however is necessary to
% explicity define the language if the license is in portuguese. The
% modifier must be changed accordingly to user preferences. If the
% licensing is different from any of the Creative Commons (all rights
% reserved for instance) just uncomment the line with \copyrightfile below
% and add your own custom file and the doclicense package will be ignored.
% Here the custom file has the name copyright
%%%%%%%% The custom copyright file.
%\copyrightfile{copyright} % Uncomment to include yours. There is
% a template in the Chapters folder with a defined command, but you can
% change however you want.
%------------------------------------------------------------------
% Additional packages you may want to use (comment those not needed)
%------------------------------------------------------------------
% The line spacing required by UM is 1.5. However LaTeX uses
% different font references when applying the factor for line spacing.
% Hence the 1.3. The macro \OnehalfSpacing is the default. You can comment
% the line below or adjust it yourself.
\linespread{1.3}
%% VERY IMPORTANT
\usepackage{booktabs} % Beautiful simple tables
\usepackage{paralist} % To enable customizble enumerates
\usepackage{cleveref}
%% IMPORTANT (consider removing/commenting)
%\usepackage{colortbl} % Use colors in background of table cells
\usepackage[textsize=footnotesize]{todonotes} % To register TODO notes in the text
\setlength{\marginparwidth}{3.25cm}
%% For automatic adding month and year
\usepackage[calc]{datetime2}
%% For boomarks
\usepackage{bookmark}
%% FOR DEMO PURPOSES ONLY --- TO BE REMOVED by final users
\usepackage{lipsum}
%------------------------------------------------------------------
% Costumization of some packages
%------------------------------------------------------------------
% Where to look for figures
% \prependtographicspath{{some-folder-here}}
% Setup of listings, for more information check the 'listings' package manual
% \lstset{
% captionpos=t,
% basicstyle={\ttfamily\footnotesize},
% numbers=left,
% numberstyle={\ttfamily\tiny},
% tabsize=2,
% language=Java,
% float,
% frame=single,
% }
% epigraph configuration
\epigraphfontsize{\small\itshape}
\setlength\epigraphwidth{12.5cm}
\setlength\epigraphrule{0pt}
%%============================================================
% For costumization,
% see file 'nova-thesis/Schools/*/*/defaults.clo'
% and file 'nova-thesis/lang-text.clo'
% You may override here any of the values defined there
% e.g.
% PHD major field
%\phdmajorfield[pt]={Medicina}
%\phdmajorfield[en]={Medicine}
%\phdmajorfield[pt]={Matemática}
%\phdmajorfield[en]={Mathematics}
% Masters major field
%\majorfield[pt]={Ciências da Saúde}
%\majorfield[en]={Health Sciences}
%\majorfield[pt]={Matemática e Computação}
%\majorfield[en]={Mathematics and Computing}
% Department
% \department[pt]={Departamento de Informática}
% \department[en]={Department of Informatics}
% \thesiscover[msc,front]={cover-megi-nova-ims}
% \thesiscover[msc,front]={cover-mgi-nova-ims}
% \glstocfalse % Uncomment to remove
% Glossary, Acronyms, and Symbols from TOC
%%============================================================
\title[A Very Long and Impressive Thesis Title\\With a Line Break]{A Very Long and Impressive Thesis Title With a Line Break}
% UM Formatting rules doesn't include subtitles in the cover and frontpage
\subtitle{Science is beautiful}
% Autor
% use [f] for female and [m] for male
\authorname[m]{John Longname Doe}{John Doe}
\authordegree{Master of Science}
% Date
\datemonth{\DTMmonthname{\month}}
\dateyear{\the\year}
% Advisers - For UM the position and University can be blank but must be present
% for instance \adviser[m]{John Doe Adviser Name}{}{}
% use "\\&" if necessary to break the lines in the apprpriate place
% use [f] for female and [m] for male
\adviser[f]{John Doe Adviser Name}{Full Professor}{\\& NOVA University of Lisbon}
% you may use "\newline" to force a new line
% \adviser[m]{John Doe Male Adviser Name}{Associate\\& Professor}{Some University Somewhere}
% \adviser[m]{John Doe Third Adviser Name}{Associate\\& Professor}{Some University Somewhere}
% Co-Advisers (maximum of 9) For UM the position and University can be blank but must be present
% for instance \coadviser[m]{John Doe Co-Adviser Name}{}{}
% use [f] for female and [m] for male
\coadviser[f]{John Doe Co-Adviser Name}{Associate\\& Professor}{NOVA University of Lisbon}
% \coadviser[f]{[Nome da co-orientadora 2]}{[Profª.\ Auxiliar]}{[Universidade Nova de Lisboa]}
%%------------------------------------------------------------
%% All the names inside braces below sould correspond to a file
%% with extension ".tex" and located in the "Chapters" folder
%%------------------------------------------------------------
% Dedicatory text. Will only be considered for final documents,
% i.e., "bsc", "msc" and "phd", otherwise, it will be silently ignored
\dedicatoryfile{dedicatory}
% Acknowledgments text. Will only be considered for final documents,
% i.e., "bsc", "msc" and "phd", otherwise, it will be silently ignored
\acknowledgementsfile{acknowledgements}
% \quotefile{quote} % Quote
\abstractfile[pt]{abstract-pt} % Abstract in Portuguese
\abstractfile[en]{abstract-en} % Abstract in English
\abstractfile[fr]{abstract-fr} % Abstract in French
\glossaryfile{glossary}
\setglossarystyle{super}
\setabbreviationstyle[acronym]{long-short}
\acronymsfile{acronyms}
\symbolsfile{symbols}
% The Table of Contents is always printed.
% The other lists below may be commented and omitted.
\addlisttofrontmatter{\listoffigures} % The List of Figures. Comment to omit.
\addlisttofrontmatter{\listoftables} % The List of Tables. Comment to omit.
\addlisttofrontmatter{\lstlistoflistings} % The List of Code Listings. Comment to omit.
\addlisttofrontmatter{\lstlistofalgorithms} % The List of Algorithms. Comment to omit.
\addlisttofrontmatter{\glsnogroupskiptrue\setlength{\glsdescwidth}{0.8\textwidth}\printnoidxglossaries} % The Glossary and List of Acrnonyms
% Text chapters
% syntax: \chapterfile{file}
\chapterfile{chapter1}
\chapterfile{chapter2}
\chapterfile{chapter3}
% \chapterfile{chapter4}
% Text appendixes
% sintax: \appendixfile{file}
% Comment if not needed
\appendixfile{appendix1}
\appendixfile{appendix2}
\annexfile{annex1}
% BibTeX bibiography files. Can be used multiple times with a single file nae each time.
\addbibresource{bibliography.bib}
%%==== DANGER ==== DANGER ==== DANGER ==== DANGER ==== DANGER ====
%%==== DANGER ==== DANGER ==== DANGER ==== DANGER ==== DANGER ====
%%==== DANGER ==== DANGER ==== DANGER ==== DANGER ==== DANGER ====
%%
%% END OF USER COSTUMIZAITON
%% Please do not change below this point!!! :)
%%
%%==== DANGER ==== DANGER ==== DANGER ==== DANGER ==== DANGER ====
%%==== DANGER ==== DANGER ==== DANGER ==== DANGER ==== DANGER ====
%%==== DANGER ==== DANGER ==== DANGER ==== DANGER ==== DANGER ====
%% Begining of document
\begin{document}
\printcoverpage % The cover page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\thesisfrontmatter % Before the main text (TOC, etc)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\printaftercover
\printcopyright % Print the copyright page
\printstatementofintegrity
\printdedicatory % Print the dedicatory (will only be printed if adequate for the document type)
\printacknowledgements % Print the acknowledgments (will only be printed if adequate for the document type)
\printquote % Print the quote (if file exists and is adequate for the document type)
\printabstract % Print abstracts (in PT and EN). The abstract in the document main language will
% be printed first, the abstract in the foreign language will be printed second
\pdfbookmark[section]{\contentsname}{toc}
\printtoc % Always print the table of contents
\printotherlists % If option 'otherlistsat=front', print other lists of contents according
% to instructions given above, otherwise do nothing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\thesismainmatter % The main text
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\printchapthers % Print document chapters
\bookmarksetup{startatroot} % end the part and go back to the root
\printbib % Print the bibliography
% \printotherlists % Alternative location to print the other lists (if you uncomment this one, comment the other one above)
\printotherlists % If option 'otherlistsat=back', print other lists of contents according to instructions given above, otherwise do nothing
\printappendixes % Print appendixes, if any!
\printannexes % Print appendixes, if any!
\printbackcoverpage
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% End of document
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}