forked from novoid/LaTeX-KOMA-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tex
297 lines (224 loc) · 12.7 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
%%%% Time-stamp: <2018-03-24 14:05:09 vk>
%% ========================================================================
%%%% Disclaimer
%% ========================================================================
%%
%% created by
%%
%% Karl Voit
%%
%% ========================================================================
%%%% Basic settings
%% ========================================================================
%% (idea of using newcommands for basic documentclass settings from: Thomas Schlager)
\newcommand{\mypapersize}{A4}
%% e.g., "A4", "letter", "legal", "executive", ...
%% The size of the paper of the resulting PDF file.
\newcommand{\mylaterality}{oneside}
%% "oneside" or "twoside"
%% Either you are creating a document which is printed on both, left pages
%% and right pages (twoside) or you create a document which is printed
%% on right pages only (oneside).
\newcommand{\mydraft}{false}
%% "true" or "false"
%% Use draft mode? If true, included graphics are replaced by empty
%% rectangles (of same size) and overfull boxes (in margin space) are
%% marked with black box (-> easy to spot!)
\newcommand{\myparskip}{half}
%% e.g., "no", "full", "half", ...
%% How to separate paragraphs: indention ("no") or spacing ("half",
%% "full", ...).
\newcommand{\myBCOR}{0mm}
%% Inner binding correction. This value depends on the method which is
%% being used to bind your printed result. Some techniques do not
%% require a binding correction at all ("0mm"), other require for
%% example "5mm". Refer to KOMA script documentation for a detailed
%% explanation what a binding correction is and how to measure it.
\newcommand{\myfontsize}{11pt}
%% e.g., 10pt, 11pt, 12pt
%% The font size of the main text in pt (points).
\newcommand{\mylinespread}{1.0}
%% e.g., 1.0, 1.5, 2.0
%% Line spacing in %/100. For example 1.5 means 150% of the usual line
%% spacing. Please use with caution: 100% ("1.0") is fine because the
%% font was designed for it.
\newcommand{\mylanguage}{ngerman,american}
%% "english,ngerman", "ngerman,english", ...
%% NOTE: The *last* language is the active one!
%% See babel documentation for further details.
%% BibLaTeX-settings: (see biblatex reference for further description)
\newcommand{\mybiblatexstyle}{alphabetic}
%% e.g., "alphabetic", "authoryear", ...
%% The biblatex style which is being used for referencing. See
%% biblatex documentation for further details and more values.
%%
%% CAUTION: if you change the style, please check for (in)compatible
%% "biblatex" package options in the file
%% "template/preamble.tex"! For example: "alphabetic" does
%% not have an option "dashed=..." and causes an error if it
%% does not get removed from the list of options.
\newcommand{\mybiblatexdashed}{false} %% "true" or "false"
%% If true: replace recurring reference authors with a dash.
\newcommand{\mybiblatexbackref}{true} %% "true" or "false"
%% If true: create backward links from reference to citations.
\newcommand{\mybiblatexfile}{references-biblatex.bib}
%% Name of the biblatex file that holds the references.
%% Comment it out when using e.g. vim-latex and use the command below
% bibresource moved here for vim-latex
%\addbibresource{references-biblatex.bib} %% remove, if using BibTeX instead of biblatex
\newcommand{\mydispositioncolor}{30,103,182}
%% e.g., "30,103,182" (blue/turquois), "0,0,0" (black), ...
%% Color of the headings and so forth in RGB (red,green,blue) values.
%% NOTE: if you are using "0,0,0" for black, printers might still
%% recognize pages as color pages. In case this is a problem
%% (paying for color print-outs vs. paying for b/w-printouts)
%% please edit file "template/preamble.tex" and change
%% "\definecolor{DispositionColor}{RGB}{\mydispositioncolor}"
%% to "\definecolor{DispositionColor}{gray}{0}" and thus
%% overwriting the value of \mydispositioncolor above.
\newcommand{\mycolorlinks}{true} %% "true" or "false"
%% Enables or disables colored links (hyperref package).
\newcommand{\mytitlepage}{template/title_Thesis_TU_Graz_-_kazemakase}
%% Your own or one of following pre-defined title pages:
%% "template/title_plain_maketitle": simple maketitle page
%% "template/title_Diplomarbeit_KF_Uni_Graz.tex": fancy (german) title page for KF Uni Graz
%% "template/title_Thesis_TU_Graz":
%% titlepage for Graz University of Technology (correct
%% (old?) Corporate Design) by Karl Voit (2012)
%% "template/title_Thesis_TU_Graz_-_kazemakase":
%% titlepage for Graz University of Technology
%% (correct new Corporate Design) by kazemakase (2013):
%% see https://github.com/novoid/LaTeX-KOMA-template/issues/5
%% "template/title_VWA": titlepage for Vorwissenschaftliche Arbeit
\newcommand{\mytodonotesoptions}{}
%% e.g., "" (empty), "disable", ...
%% Options for the todonotes-package. If "disable", all todonotes will
%% be hidden (including listoftodos).
%% Load main settings for document preamble:
\input{template/preamble}%% DO NOT REMOVE THIS LINE!
\setboolean{myaddcolophon}{true} %% "true" or "false"
%% If set to "true": a colophon (with notes about this document
%% template, LaTeX, ...) is added after the title page.
%% Please do not set to "false" without a good reason. The colophon
%% helps your readers to get in touch with LaTeX and to find this template.
\setboolean{myaddlistoftodos}{false} %% "true" or "false"
%% If set to "true": the current list of open todos is added after the
%% table of contents. If \mytodonotesoptions is set to "disable", no
%% list of todos is added, independent of this setting here.
\setboolean{english_affidavit}{true} %% "true" or "false"
%% If set to "true": the language of the statutory declaration text is set to
%% English, otherwise it is in German.
%% ========================================================================
%%%% Document metadata
%% ========================================================================
%% general metadata:
\newcommand{\myauthor}{Zippy the Bug} %% also used for PDF metadata (hyperref)
\newcommand{\myauthorwithexistingtitles}{\myauthor{}, Novice} %% including
%% university degree already held
%% (BSc, MSc, ...)
\newcommand{\mytitle}{Towards Secure Systems} %% also used for PDF metadata (hyperref)
\newcommand{\mysubtitle}{hack.more.systems to find.more.bugs} %% only used with title_Thesis_TU_Graz_-_kazemakase
\newcommand{\mysubject}{Towards Secure Systems} %% also used for PDF metadata (hyperref)
\newcommand{\mykeywords}{IT security, white hat, hacking, bug, fuzzy} %% also used for PDF metadata (hyperref)
%% this information is used only for generating the title page:
\newcommand{\myworktitle}{Master's Thesis} %% official type of work like ``Master theses''
\newcommand{\mygrade}{Master of Science} %% title you are getting with this work like ``Master of ...''
\newcommand{\mystudy}{Computer Science} %% your study like ``Arts'', ``Information and Computer Engineering'' etc.
\newcommand{\mydegreeprogramme}{Master's degree programme: \mystudy} %% Master's or PhD degree programme
\newcommand{\myuniversity}{Graz University of Technology} %% your university/school
\newcommand{\myfaculty}{Faculty of Bug Hunting} %% only used with title_Thesis_TU_Graz_-_kazemakase
\newcommand{\myinstitute}{Institute for White Hat Hacking} %% affiliation
\newcommand{\myinstitutehead}{Univ.-Prof.\,Dipl-Ing.\,Dr.techn.~Fuzzy the Bug, Emperor} %% head of institute
\newcommand{\mysupervisor}{Dr.~Some Bug} %% your supervisor
\newcommand{\mycosupervisor}{\ } %% only used with title_Thesis_TU_Graz_-_kazemakase
\newcommand{\myevaluator}{Prof.~Some Genius} %% your evaluator
\newcommand{\myhomestreet}{Street~42} %% your home street (with house number)
\newcommand{\myhometown}{Graz} %% your home town
\newcommand{\myhomepostalnumber}{8010} %% your postal number of home town
\newcommand{\mysubmissionmonth}{May} %% month you are handing in
\newcommand{\mysubmissionyear}{2018} %% year you are handing in
\newcommand{\mysubmissiontown}{\myhometown} %% town of handing in (or \myhometown)
%% additional information for generic_documentation title page
\newcommand{\myid}{1234567} %% Matrikelnummer
\newcommand{\mylecture}{LECTURE} %%
%% ========================================================================
%%%% MISC command definitions
%% ========================================================================
\input{template/mycommands}
%% ========================================================================
%%%% Typographic settings
%% ========================================================================
\input{template/typographic_settings}
%% ========================================================================
%%%% MISC usepackages
%% ========================================================================
%% ... it's OK to put here your own usepackage commands ...
%% ========================================================================
%%%% MISC self-defined commands and settings
%% ========================================================================
%% ... it's OK to put here your own newcommand/newenvironment-definitions ...
\newcommand{\myLaT}{\LaTeX{}@TUG\xspace} %% LaTeX@TUG text "logo"
\hyphenation{ex-am-ple hy-phen-ate} %% in order to use German umlauts
%% here (Ver-\"of-fent-li-chung), you have to check for
%% activated \usepackage[T1]{fontenc} in the preamble
%% override default language of babel: (be sure to know, what you're
%% doing here)
%\selectlanguage{american}
%\selectlanguage{ngerman}
%% ========================================================================
%%%% Templates
%% ========================================================================
%% template for inserting figures:
% \myfig{}%% filename
% {}%% width/height
% {}%% caption
% {}%% optional (short) caption for list of figures
% {fig:}%% label
%% acronyms in small caps: \myacro{UNESCO}
\input{template/pdf_settings} %% should be *last* definitions in preamble!
%% ========================================================================
%%%% begin{document}
%% ========================================================================
\begin{document}
\frontmatter %% KOMA: roman page numbers and such; only available in scrbook
\input{colophon} %% defines information about editor, LaTeX, font, ...
%% Choose your desired title page:
\input{\mytitlepage} %% include title page
\input{template/declaration_TU_Graz} %% Statutory Declaration
% \input{thanks} %% this is a suggestion: you have to create this file on demand
% \input{foreword} %% this is a suggestion: you have to create this file on demand
%% include the abstract without chapter number but include it on table of contents:
\cleardoublepage
\phantomsection
\addcontentsline{toc}{chapter}{Abstract}
\include{abstract} %% Abstract
\tableofcontents %% this produces the table of contents - you might have guessed :-)
\listoffigures
%% if myaddlistoftodos is set to "true", the current list of open todos is added:
\ifthenelse{\boolean{myaddlistoftodos}}{
\newpage\listoftodos %% handy if you are using todonotes with \todo{}
}{} %% with todonotes-package option "disable" you can get rid of any todo in the output
\mainmatter %% KOMA: marks main part using arabic page numbers and such; only available in scrbook
\input{example-short-chapter} %% remove this line to get rid of the example chapter
\input{example-style-chapter} %% remove this line to get rid of the style chapter
%% include tex file chapters:
% \include{introduction} %% this is a suggestion: you have to create this file on demand
% \include{problem} %% this is a suggestion: you have to create this file on demand
% \include{solution} %% this is a suggestion: you have to create this file on demand
% \include{evaluation} %% this is a suggestion: you have to create this file on demand
% \include{outlook} %% this is a suggestion: you have to create this file on demand
\appendix %% closes main document, appendix follows until end; only available in book-classes
\addpart*{Appendix} %% adding Appendix to tableofcontents
\printbibliography %% remove, if using BibTeX instead of biblatex
% \include{further_ressources} %% this is a suggestion: you have to create this file on demand
%%%% end{document}
\end{document}
%% vim:foldmethod=expr
%% vim:fde=getline(v\:lnum)=~'^%%%%\ .\\+'?'>1'\:'='
%%% Local Variables:
%%% mode: latex
%%% mode: auto-fill
%%% mode: flyspell
%%% eval: (ispell-change-dictionary "en_US")
%%% TeX-master: "main"
%%% End: