-
Notifications
You must be signed in to change notification settings - Fork 0
/
report.tex
executable file
·198 lines (149 loc) · 7.02 KB
/
report.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
%%%%%%%%%%%%%%%%%%%%
% Copyright and authorship: Fernando Oleo Blanco.
%
% Thanks to all the people that helped me get to where I am.
% Free use, just acknowledge the authors.
%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%
% IMPORTANT
% THIS DOCUMENT REQUIRES LuaLaTeX OR XeLaTeX AS THE PROCESSING ENGINE
% SOME "SPECIAL" VARIABLES HAVE BEEN SET AT THE BOTTOM OF THE FILE TO HELP
% IT SHOULD WORK AUTOMATICALLY WITH TeXstudio AND Emacs
%%%%%%%%%%%%%%%%%%%%
%%%
% Important. The packages and some extra functionality is found in the loaded-thesis.sty file!
% Read it to learn more about what you can do with LaTeX and how things are configured.
%%%
% General document definition. In order to have the text completely centered, do not use the twoside option; however, twoside is recommended for printing.
\documentclass[12pt, a4paper, twoside]{book}
% For general information and help about LaTeX, refer to https://www.overleaf.com/learn
%%% Packages
% Please, read the "loaded-thesis.sty" document to see what is actually loaded and how to use it. Some configuration options for a set of packages is also present there. Change those if you need it.
\usepackage{loaded-thesis}
%% References configuration
\usepackage[nameinlink]{cleveref} % Better referencing that default LaTeX or \hyperref. Must be loaded after hyperref and asmmath
%% Language configuration
\usepackage[spanish, english]{babel}
% The last language in the list is the main language of the document.
% Select your preferred language, change the language in the middel of the document by using \selectlanguage{spanish}
% babel also allows to change the font used depending on the language
% IMPORTANT: if you compile the document with one language (say english) and then change it to another, the automatically generated files in the directory need to be deleted! Especially the .aux file!
%% Bibliography configuration
\usepackage[backend=biber,
style=numeric,
sorting=none]{biblatex}
% Citation configuration. We use biblatex, which is more
% complex, but as customizable as it gets.
% Please, modify this to your liking.
% IMPORTANT: this requires biber to be installed and run every time
% you change the .bib file! To make it easier, if you are using TeXStudio, do the following:
% 1. Go to options. 2. Select the Build menu. 3 In standard bibliography, change bibtex to biber. 4. Profit
% These changes will allow the editor to detect any changes and "recompile" the files if needed.
% For other editors see: https://tex.stackexchange.com/questions/154751/biblatex-with-biber-configuring-my-editor-to-avoid-undefined-citations
% See link for a quick introduction: https://tex.stackexchange.com/questions/26516/how-to-use-biber/34136
% If you are having issues with the bibliography, please, search for how to install and run biber!
% Specialised packages. Please, read their documentation as they provide a lot of functionality.
% Bibliography resource
\addbibresource{main.bib} % Read bibliography entries/database
\renewcommand*{\nameyeardelim}{\addcomma\addspace} % To add a coma after et al. -> et al.,
%%% Acronyms and glossary
%% Force processing of glossaries
\makeglossaries
% Read the documentation of glossaries and glossaries-extra. They are incredibly powerful,
% but may require some fiddling to get things exactly how you may want them!
%% Acronyms
% Set the short-long style. It prints the long version the first time an acronym is used
\setabbreviationstyle[acronym]{long-short}
% The acronyms definitions are found in the acronym.tex file.
% Modify that file accordingly
\loadglsentries[\acronymtype]{acronyms.tex}
%% Glossary terms
\loadglsentries{glossaries.tex}
%%% Font configuration
% Change the mono font in order to support more Unicode characters
\setmonofont{DejaVu Sans Mono}[Scale=MatchLowercase]
% Link colour setup. If you want colours, set "colorlinks" to "true"
\hypersetup{
colorlinks = true, % Colour links. Set to false to let the text be black
citecolor = red,
urlcolor = blue,
linkcolor = red,
% hidelinks = true, % Uncomment to hide all link indications, such as boxes
} % Change this options to your liking
%%% PGFplots settings
% Version standard
\pgfplotsset{compat=1.18} % Newest version as of 2022-09-23 is 1.18
% User the groupplot library to have the groupplot environment
\usepgfplotslibrary{groupplots}
% Increase the threshold for which a float is left alone (without text) in a page
\renewcommand{\floatpagefraction}{.70}%
%%% Custom commands
% Add abstract environment to book style
\newenvironment{abstract}%
{\cleardoublepage \null \vfill \begin{center}%
\bfseries \abstractname \end{center}}%
{\vfill\null}
% Hide environments
% Hide plots to speed up processing by uncommenting the following line
\newif\ifhidepgfplots
%\hidepgfplotstrue % Uncomment to hide plots
\ifhidepgfplots
\usepackage{environ}
\NewEnviron{hide}{}
\let\tikzpicture\hide
\let\endtikzpicture\endhide
\fi
\newfloat{genericfloat}{tbhp}{lop} % Added due to bad interaction between dpfloat and algorithm2e
%%% DOCUMENT
\begin{document}
% Include the cover. Modify to your liking
\include{cover}
\frontmatter % First few pages
% Comment this block if you don't want a dedication and prelude information page
% Thanks and other information page
{\centering Thank yous\\}
\vfill % Fill the page with whitespace (this is just for aesthetic reasons)
And other important information
\cleardoublepage
% Write your abstract
\begin{abstract}
Abstract content
\end{abstract}
\cleardoublepage % New page starts on the right hand side
\tableofcontents % Create the index
\listoffigures % Create index of figures
\listoftables % Create index of tables
\lstlistoflistings % Create index for code sections
\listofalgorithms % Create index for algorithms
\printglossary[title=List of Symbols, style=longheader, nonumberlist] \label{glossaries} % Create glossary enty
\setlength{\glspagelistwidth}{0.2\linewidth} % Add a bit more width to the "Page List" column
\printglossary[type=\acronymtype, style=long3col-booktabs] % Create acronym entry
\cleardoublepage % Open on right hand page (odd numbered)
% Main body of the work
\mainmatter
% Activate customized headers
\pagestyle{fancy}
% Include the different chapters, documents etc
\include{Chapter1/chapter1} % This is the way we should import files and partition our document.
% Include more chapters and or documents.
% We print the entire bibliography of the document. The author recommends that, if the document contains tremendous amounts of references, that they should be written at the end of each chapter. Refer to https://www.overleaf.com/learn/latex/Bibliography_management_in_LaTeX for more information.
\printbibliography[heading=bibintoc]
% Appendix section
\appendix
%% Include appendixes
\include{Appendix1/appendix1}
\cleardoublepage
\backmatter
\end{document}
%%%
% Here we leave a few variables that help editors select the correct TeX engine
%%%
% Emacs setup
%%% Local Variables:
%%% mode: latex
%%% coding: utf-8
%%% TeX-engine: luatex
%%% TeX-master: t
%%% End:
% TeXstudio setup
% !TeX program = lualatex