-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmain.tex
203 lines (171 loc) · 8.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
%----------------------------------------------------------------------------------------
% Metropolia Thesis LaTeX Template
%----------------------------------------------------------------------------------------
% License:
% This work is licensed under the Creative Commons Attribution 4.0 International License.
% To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
%
% However, this license apply to this template. As a template, it is supposed to be
% modified for your own needs (with your thesis content). For this reason, if you use
% this project as a template and not specifically distribute it as part of a another
% package/program, we grant the extra permission to freely copy and modify these files as
% you see fit and even to delete this copyright notice.
% In short, you are free to publish your thesis under whatever license you wish, even
% keep the all rights reserved to you.
%
% Authors:
% Panu Leppäniemi, Patrik Luoto, Mikaa Oni and Patrick Ausderau
%
% Credits:
% Panu Leppäniemi: abstract, def, cleaning,...
% Patrik Luoto: title page, abstract in Finnish, abbreviation, math,...
% Mikaa Oni: switch to biber biblatex
% Patrick Ausderau: initial version, style, table of content, bibliography, figure,
% appendix, table, source code listing,...
%
% Please:
% If you find mistakes, improve this template and alike, please contribute by sharing
% your improvements and/or send us your feedback there:
% https://github.com/panunu/metropolia-thesis-latex
% And of course, if you improve it, add yourself as an author.
%
% Compiler:
% Use XeLaTeX as a compiler. LuaLaTeX works too.
% Typical compilation:
% # minted require -shell-escape to run external script.
% # -8bit avoid ^^I for tabs in minted.
% $ xelatex -shell-escape -8bit main
% # If any change in the bibliography
% $ biber main
% # If any change with the abbreviation or acronym
% $ makeglossaries main
% #Then compile again
% $ xelatex -shell-escape -8bit main
% #And if still some citation or label warnings, compile once more
% $ xelatex -shell-escape -8bit main
%----------------------------------------------------------------------------------------
% THESIS INFO
%----------------------------------------------------------------------------------------
% All general information (main language, title, author (you), degree programme, major
% option, etc.)
% Edit the file chapters/0info.tex to change these information
\input{chapters/0info.tex}
%----------------------------------------------------------------------------------------
% GLOBAL STYLES
%----------------------------------------------------------------------------------------
% If you need extra package, etc. modify the style/style.tex file.
% If you are using Windows OS, you will need to change default font to Arial in that
% style/style.tex file (or install Liberation Sans font to your system).
% If you are using MacOS or linux, make sure you have Liberation Sans font installed.
\input{style/style.tex}
% Normally, you do not need to modify the title style. It's content comes from the
% chapters/0info.tex file.
\input{style/title.tex}
%----------------------------------------------------------------------------------------
% ABBREVIATION AND GLOSSARY
%----------------------------------------------------------------------------------------
% Add/edit all your acronyms, abbreviations, glossary entries, etc. definitions in
% chapters/0abbr.tex file.
% You can have as many as you wish. Only the ones you use in your text (inserted with
% \gls{} command) will print in the Glossary/Lyhenteet.
\input{chapters/0abbr.tex}
%----------------------------------------------------------------------------------------
% DOCUMENT STARTS HERE...
%----------------------------------------------------------------------------------------
\begin{document}
\IfLanguageName{finnish}{
}{
\raggedright%2021 template, align left, no hyphennization for English version
}
\counterwithout{listing}{chapter}
%----------------------------------------------------------------------------------------
% TITLE PAGE
%----------------------------------------------------------------------------------------
\input{style/title_headers.tex}
\maketitle
\newpage
%----------------------------------------------------------------------------------------
% ABSTRACT / Tiivistelmä
%----------------------------------------------------------------------------------------
% If you are international student writing in English, ignore the Finnish abstract.
% If you are Finnish citizen, you must have 2 abstracts, one in Finnish (or Swedish
% depending on your mother tongue) and one in English regardless of the main language of
% your thesis. Normally, you do not need to modify the abstract style. It's content comes
% from the chapters/0info.tex file.
\ifdefstring{\bilingual}{no}{%
\input{style/abstract_en.tex}
}{%
\IfLanguageName{finnish}{%order of abstracts based on main language and spacing hell
\input{style/abstract_fi_fi.tex}
\input{style/abstract_fi_en.tex}
}{
\input{style/abstract_en.tex}
\input{style/abstract_fi.tex}
}
}
%----------------------------------------------------------------------------------------
% License? Acknowledgement?
%----------------------------------------------------------------------------------------
% Uncomment next line and edit chapters/0license.tex if you want license in your thesis.
%\input{chapters/0license.tex}
% Uncomment next line and edit chapters/0acknowledgement.tex if you want acknowledgements.
%\input{chapters/0acknowledgement.tex}
%----------------------------------------------------------------------------------------
% TABLE OF CONTENTS
%----------------------------------------------------------------------------------------
\input{style/toc.tex}
%list of figure, tables would come here if relevant?
%----------------------------------------------------------------------------------------
% Lyhenteet / Abbreviation
%----------------------------------------------------------------------------------------
% If you don't use abbreviations/glossary, remove the following line.
\input{style/abbr.tex}
%----------------------------------------------------------------------------------------
% CONTENT
%----------------------------------------------------------------------------------------
\input{style/content.tex}%reset page number to 1, etc.
% Thesis content if you strictly follow the "Final Year Project guide". Of course, you
% can adapt to your specific needs (add more chapter, rename them, etc.).
\input{chapters/introduction.tex}
% uncomment what you need.
%\input{chapters/projectSpec.tex}
%\input{chapters/methods.tex}
%\input{chapters/theory.tex}
%\input{chapters/solution.tex}
%\input{chapters/conclusion.tex}
% Sample content to demonstrate LaTeX command. You will likely delete this line and the
% next \input{sample/*} lines. You are also safe to delete the sample/ folder and its
% content once you refershed your LaTeX skills. Also check the appendix samples.
\input{sample/1content.tex}
\input{sample/2lorem.tex}
\input{sample/3graph.tex}
%----------------------------------------------------------------------------------------
% BIBLIOGRAPHY REFERENCES
%----------------------------------------------------------------------------------------
\input{style/biblio.tex}
%----------------------------------------------------------------------------------------
% APPENDICES
%----------------------------------------------------------------------------------------
\input{style/appendix.tex}
%force smaller vertical spacing in table of content
%!!! There can be some fun depending if the appendices have (sub)sections or not :D
% You will have to play with these numbers and eventually add the \vspace line before
% some \chapter and force another number.
% To add more fun, time to time the table of content get wrong after a build :(
\addtocontents{toc}{\vspace{11pt}}
\pretocmd{\chapter}{\addtocontents{toc}{\protect\vspace{-24pt}}}{}{}
\liite{1}% This is a hack to have right page numbering for each appendix. Make sure to
% use a unique number for each appendix.
\input{sample/Xappendix1.tex}% Sample content to demonstrate appendix in LaTeX. You
% are safe to delete this lines (and the next samples) once you refreshed your LaTeX
% skills (and safe to delete the sample folder and all its file too).
%\addtocontents{toc}{\vspace{11pt}}%fix vertical space for Table of Content
\liite{2}
\input{sample/Xappendix2.tex}
\addtocontents{toc}{\vspace{11pt}}
\liite{3}
\input{sample/X_R_example.tex}
%----------------------------------------------------------------------------------------
% THIS IS THE END
%----------------------------------------------------------------------------------------
\end{document}