-
Notifications
You must be signed in to change notification settings - Fork 0
/
LaTeXTemplate.tex
252 lines (210 loc) · 7.91 KB
/
LaTeXTemplate.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
% !TeX encoding=utf8
% !TeX program = pdflatex
% !TeX spellcheck = de-CH
%% Bug fixes and other packages to be loaded before the class
\RequirePackage[l2tabu, orthodox]{nag} % check for mistakes in the code
\RequirePackage{fix-cm} % permit Computer Modern fonts at arbitrary sizes.
%
%% Document Class (Koma Script) -----------------------------------------
%% Doc: scrguien.pdf
\documentclass[%
%draft=true, % draft mode (no images, layout errors shown)
draft=false, % final mode
%%% --- Paper Settings ---
paper=a4,% [Todo: add alternatives]
paper=portrait, % landscape
pagesize=auto, % driver
%%% --- Base Font Size ---
fontsize=11pt,%
%%% --- Koma Script Version ---
version=last, %
%%% --- Global Package Options ---
english, % language (passed to babel and other packages)
% (ngerman, english, french, ...)
]{scrbook} % Classes: scrartcl, scrreprt, scrbook
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Must be loaded first!
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% packages to allow more \write outputs
\input{preamble/packages-SolutionsNoRoomForNewWrite.tex}
% packages required for the template
\usepackage{codesection}
\usepackage{templatetools}
\usepackage[german]{babel}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% encoding
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% automatic selection of encoding
% insert chars for umlaut a and sz
\usepackage{selinput}
\SelectInputMappings{adieresis={ä},germandbls={ß},Euro={€}}
% Encoding of _files and directories_
% (ensures that any file can be loaded without problems)
\usepackage[%
extendedchars, encoding, multidot, space,
filenameencoding=latin1, % Windows XP, Vista, 7
% filenameencoding=utf8, % Linux, OS X
]{grffile}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% preamble
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%% select/load fonts
\input{fonts/fonts.tex}
%\input{fonts/font-commercial.tex}
%% load packages
\input{preamble/packages.tex}
%% apply style settings
\input{preamble/style.tex}
%% new commands / definitions (required by the template!)
\input{preamble/commands.tex}
% display the layouts
% \IfPackageLoaded{geometry}{\geometry{showframe}}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Configurations
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%%% Switch between colored links (web) and black links (print)
\IfDefined{UseDefinition}{%
%\UseDefinition{Target}{Print}
\UseDefinition{Target}{Web}
}% end of UseDefinition
\IfPackageLoaded{hyperref}{%
%%% set layout of PDF pages
\hypersetup{pdfpagelayout=OneColumn}
% options:
% SinglePage Displays a single page; advancing flips the page
% OneColumn Displays the document in one column; continuous scrolling.
% TwoColumnLeft Displays the document in two columns,
% odd-numbered pages to the left.
% TwoColumnRight Displays the document in two columns,
% odd-numbered pages to the right.
% TwoPageLeft Displays two pages, odd-numbered pages to the left
% TwoPageRight Displays two pages, odd-numbered pages to the right
}% (end of hyperref)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% custom definitions
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
\input{macros/newcommands.tex}
%%% Hyphenation (Silbentrennung)
\input{content/hyphenation.tex}
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% execute necessary commands
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% (... if the according package is loaded or not)
\input{preamble/makeCommands.tex}
\listfiles % list all loaded files at end of document
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% bibliography (now in preamble !)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%%% bibtex file(s)
% add multiple files with comma separation
% biblatex requires files before document
\IfPackageLoaded{biblatex}{
% add all .bib files:
\addbibresource{bib/BibtexDatabase.bib}
% \addbibresource{bib/BibtexData-anytopic.bib}
}% end: biblatex
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Definition of glossaries Entries (before document!)
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% glossary, acronym, symoblist and such
\input{content/Z-GlossaryEntries.tex}
%% document content %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\includeonly{
% content/0-title,
% content/0-Abstract,
% content/0-Introduction,
% content/1-Theory,
% content/2-Experiments,
% content/3-Results,
% content/4-Summery,
%} % end includeonly
%%% document start %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Configure page numbering - required for hyperref (not displayed)
\pagenumbering{alph}\setcounter{page}{1}%
\pagestyle{empty}
% -- title page --
\include{content/0-title}
\cleardoublepage
% -- abstract --
% (only in phd thesis)
% \include{content/0-Abstract}
% \cleardoublepage
% -- declaration --
% (only in bachelor/master thesis)
% \input{content/Z-Declaration.tex}
\frontmatter
\IfPackageLoaded{scrpage2}{\pagestyle{scrheadings}}
% -- table of contents --
%
% add table of contents to pdf bookmarks
\IfPackageLoaded{hyperref}{\pdfbookmark[1]{\contentsname}{toc}}
\tableofcontents
\IfPackagesLoaded{glossaries,longtable,tabu}{%
\clearpage
% print out acronym list
\IfGlossariesStyleDefined{longtabuFancyHeader}%
{\printglossary[type=\acronymtype,style=longtabuFancyHeader]}%
% print out symbol list
\IfGlossariesStyleDefined{longtabuFancyHeader}%
{\printglossary[type=symbolslist,style=longtabuFancyHeader]}%
% print out glossary
\printglossary[style=altlist]
} % end of glossaries
% --- Main Document --- --- --- --- --- --- ---
\mainmatter
%
% (files loaded with include must not have the prefix .tex)
%
\include{content/0-Introduction}
\include{content/1-Projektmanagement}
\include{content/2-Analyse}
\include{content/3-Dokumentation}
\include{content/4-Summery}
%%% -- end of main content
% show all biblatex entries
\nocite{*}
% set title
\renewcommand\bibname{Quellenverzeichnis}
% -- bibliography --
% (must be placed _before_ appendix)
\IfPackageLoaded{biblatex}{
\cleardoublepage
\IfDefined{phantomsection}{\phantomsection}\label{sec:bibliography}
\printbibliography[%
heading=bibintoc, % (bibintoc, bibnumbered)
]
}% end of bibliography
%% -- list of figures and tables --
\cleardoublepage\IfDefined{phantomsection}{\phantomsection}\label{sec:lof}
\listoffigures
%\cleardoublepage\IfDefined{phantomsection}{\phantomsection}\label{sec:lot}
%\listoftables
%% -- List of Listings --
% _Remove_ if no listing with caption is defined
% \IfDefined{lstlistoflistings}{\cleardoublepage\lstlistoflistings}
% --- Appendix --- --- --- --- --- --- ---
\cleardoublepage
\appendix
% Add `Appendix` to TOC
% \addcontentsline{toc}{part}{\appendixname}
% must be _input_, otherwise the TOC entry is at the wrong place
% \input{content/Z-Appendix.tex}
% -- only in phd thesis --->
% \input{content/Z-Publications.tex}
% \input{content/Z-CV.tex}
% <------------------------
%% -- Index --
% _Remove_ Index unless you really want to invest a large amount
% of time and effort to create a good index!
\IfDefined{printindex}{%
\cleardoublepage\IfDefined{phantomsection}{\phantomsection}\label{sec:index}%
\printindex%
}% end of index
% \input{content/Z-Thanks.tex}
% add todo list (remove for final document!)
% \input{content/Z-Todo.tex}
%%% document END %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%