-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis-paper.tex
403 lines (373 loc) · 10.5 KB
/
thesis-paper.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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
\documentclass[12pt,a4paper,oneside]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{fontspec}
\usepackage{titlesec}
\usepackage{tocloft}
\usepackage[margin=2.5cm]{geometry}
\usepackage{lipsum}
\usepackage[skip=10pt]{parskip}
\usepackage{mwe,tikz}
\usepackage{tabto}
\usepackage{dashrule}
\usepackage[backend=biber,style=verbose]{biblatex}
\usepackage{listings,lstautogobble}
\usepackage{scrextend}
\usepackage{enumitem}
\usepackage{hyperref}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{makecell}
\usepackage[german,english]{babel}
\ifdefined\ThPrivateBuild
\input{private.tex}
\newcommand{\IfPrivateBuild}[2]{#1}
\else
\newcommand{\IfPrivateBuild}[2]{#2}
\fi
\addbibresource{citations.bib}
\setcounter{secnumdepth}{3}
\addtolength{\textwidth}{-1cm}
\addtolength{\oddsidemargin}{1cm}
\addtolength{\evensidemargin}{1cm}
\lstset{autogobble=true}
\lstset{language=sh,basicstyle=\ttfamily}
\lstset{language=java,basicstyle=\ttfamily}
% Calibri or sans-serif as default font
\defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
\IfFontExistsTF{Calibre}{
\setmainfont{Calibre}
}{
\renewcommand{\familydefault}{\sfdefault}
}
% TOC horizontal spacing
\cftsetindents{chapter}{0cm}{1cm}
\cftsetindents{section}{1cm}{1cm}
\cftsetindents{subsection}{2cm}{1.2cm}
% TOC vertical spacing
\renewcommand{\cftchapfont}{
\bfseries
\fontsize{13pt}{13pt}
\selectfont
\vspace{6pt}
}
\cftbeforechapskip12pt
\renewcommand{\cftsecfont}{
\fontsize{11pt}{11pt}
\selectfont
\vspace{6pt}
}
\cftbeforesecskip6pt
\renewcommand{\cftsubsecfont}{
\fontsize{10pt}{10pt}
\selectfont
\vspace{3pt}
}
\cftbeforesubsecskip6pt
% TOC title
\renewcommand\cfttoctitlefont{
\hfill
\fontsize{16pt}{16pt}
\selectfont
\bfseries
}
\cftbeforetoctitleskip6pt
\cftaftertoctitleskip12pt
% Title format for chapter, section, sub- and subsubsection
% See https://tex.stackexchange.com/questions/511981/titlesec-vertical-align-chapter-and-section
% The -5pt is just pixel pushing bc I couldn't figure out why my chapter/section/subsection/subsubsection headings are slightly indented
\titleformat{\chapter}[hang]{
\normalfont
\bfseries
\filright
\fontsize{16pt}{16pt}
\selectfont
}{
\makebox[1.7cm][l]{\thechapter}
}{0em}{}
\titlespacing{\chapter}{-5pt}{18pt}{12pt}
\titleformat{\section}[hang]{
\normalfont
\bfseries
\filright
\fontsize{14pt}{14pt}
\selectfont
}{
\makebox[1.7cm][l]{\thesection}
}{0em}{}
\titlespacing{\section}{-5pt}{18pt}{12pt}
\titleformat{\subsection}[hang]{
\normalfont
\bfseries
\filright
\fontsize{12pt}{12pt}
\selectfont
}{
\makebox[1.7cm][l]{\thesubsection}
}{0em}{}
\titlespacing{\subsection}{-5pt}{18pt}{12pt}
\titleformat{\subsubsection}[hang]{
\normalfont
\bfseries
\filright
\fontsize{11pt}{11pt}
\selectfont
}{
\makebox[1.7cm][l]{\thesubsubsection}
}{0em}{}
\titlespacing{\subsubsection}{-5pt}{12pt}{12pt}
% Have list of figures title style be the same as TOC title stile
\renewcommand{\cftloftitlefont}{\cfttoctitlefont}
\newcommand{\IncludeSchoolTemplate}[2]{
\vspace*{-7em}
\makebox[\textwidth]{
\begin{tikzpicture}[
every node/.style={anchor=north west,inner sep=0pt},
x=1mm, y=1mm]
\node (templatepage) at (0,0)
{\includegraphics[width=\paperwidth,page=#1]{summary.pdf}};
#2
\end{tikzpicture}
}
\newpage
}
\newcommand{\SignatureLine}[1]{
\vskip15pt
\tabto{9cm}#1
\vskip10pt
\tabto{9cm}\hdashrule[0pt][x]{\fill}{.5pt}{.75mm}
}
\newcommand{\BlockCite}[2]{
\begin{addmargin}[1cm]{0pt}
#1
\fullcite{#2}
\end{addmargin}
}
\newcounter{appendix}
\newcommand{\Appendix}[1]{
\stepcounter{appendix}
\chapter*{\hspace{\fill}Appendix \Alph{appendix}} \label{app:\Alph{appendix}}
#1
}
\newcommand{\RefAppendix}[1]{\hyperref[app:#1]{Appendix~#1}}
\title{Sample Thesis Paper}
\author{\IfPrivateBuild{\ThRealAuthorName}{My Public Name}}
\begin{document}
\pagenumbering{gobble}
\IfPrivateBuild{
\selectlanguage{german}
\includegraphics[width=\textwidth]{school-header.png}
{\centering
\vskip1cm
Fachrichtung Informatik
\vskip2cm
Schuljahr 2019/20
\vskip4cm
\Huge\textbf{DIPLOMARBEIT}
\vskip10pt
\large
Gesamtprojekt
\vskip5pt
\Huge\textbf{Beispielarbeit}
\small
\vskip4cm
\begin{flushleft}
\textbf{Ausgeführt von:}\tabto{10cm}\textbf{Betreuer/Beteuerin:}\linebreak
\ThRealAuthorName, \ThAuthorClass-\ThAuthorNumber
\vskip2cm
\ThPhysicalLocation, am \today
\vskip1cm
\hrule
Abgabevermerk:\linebreak
Datum:\tabto{10cm}Betreuer/Beteuerin:
\end{flushleft}
}
\selectlanguage{english}
}{
\maketitle
\pagebreak
}
\IfPrivateBuild{
\selectlanguage{german}
\chapter*{\hspace{5pt}Erklärung gemäß Prüfungsordnung}
„Ich erkläre an Eides statt, dass ich die vorliegende Diplomarbeit selbstständig und ohne fremde Hilfe verfasst, andere als die angegebenen Quellen und Hilfsmittel nicht benutzt und alle den benutzten Quellen wörtlich oder sinngemäß entnommenen Stellen als solche kenntlich gemacht habe.“
\ThPhysicalLocation, \today\tabto{9cm}{Verfasser*innen:}
\selectlanguage{english}
\SignatureLine{\ThRealAuthorName}
\newpage
\IncludeSchoolTemplate{1}{
\node at (77,-28)
{Informatik};
\node at (77,-63)
{\ThRealAuthorName};
\node at (77,-80)
{2019/20};
\node at (77,-92)
{Beispielarbeit};
\node at (77,-109)
{\ThPartner};
\node at (77,-127) [text width=305,align=justify] {
\fontsize{12pt}{12pt}
\selectfont
\par
Ziel des Projekts war die Entwicklung eines Tools zu \lipsum[1][1-3]
\vskip10pt
\par
Alle Programme sollten in Java realisiert werden.
};
\node at (77,-174) [text width=300,align=justify] {
\fontsize{12pt}{12pt}
\selectfont
\par
\lipsum[2][1-3]
\vskip10pt
\par
\lipsum[3][1-3]
};
\node at (77, -222) [text width=300,align=justify] {
\fontsize{12pt}{12pt}
\selectfont
\par
\lipsum[4]
};
}
\IncludeSchoolTemplate{2}{
\node at (77,-28)
{Informatik};
\node at (77,-80){
\includegraphics[width=310pt,trim=0pt 0pt 0pt 0pt,clip]{sample_graphic.png}
};
\node at (77,-171) [text width=305,align=center]
{\emph{Screenshot des Programms}};
\node at (77,-220)
{--};
\node at (77,-239)
{Öffentlich; Bibliothek der \ThSchoolName};
}
\IncludeSchoolTemplate{3}{
\node at (76,-28)
{Informatics};
\node at (77,-63)
{\ThRealAuthorName};
\node at (77,-80)
{2019/20};
\node at (77,-92)
{Sample Project};
\node at (77,-109)
{\ThPartner};
\node at (77,-125) [text width=305,align=justify] {
\fontsize{12pt}{12pt}
\selectfont
\par
\lipsum[1][1-5]
};
\node at (77,-173) [text width=300,align=justify] {
\fontsize{12pt}{12pt}
\selectfont
\par
\lipsum[5][1-5]
};
\node at (77, -225) [text width=300,align=justify] {
\fontsize{12pt}{12pt}
\selectfont
\par
\lipsum[6][1-8]
};
}
\IncludeSchoolTemplate{4}{
\node at (76,-28)
{Informatics};
\node at (77,-75){
\includegraphics[width=310pt,trim=0pt 0pt 0pt 0pt,clip]{sample_graphic.png}
};
\node at (77,-166) [text width=305,align=center]
{\emph{Screenshot of the program}};
\node at (77,-220)
{--};
\node at (77,-240)
{Public; Library of the \ThSchoolName};
}
}{}
\clearpage
\tableofcontents
\newpage
\pagenumbering{arabic}
\chapter{Introduction} \label{sec:introduction}
This thesis aims to do the thing\parencite{somewebsite}.
\begin{figure}[h]
\includegraphics[width=\textwidth]{sample_graphic.png}
\vskip0pt
\caption{Screenshot of the program} \label{fig:samplefigure}
\end{figure}
\begin{lstlisting}[language=Java]
public static void main() {
System.out.println("Hello World");
}
\end{lstlisting}
See \autoref{fig:samplefigure} and \autoref{sec:introduction}~Introduction.
\printbibliography[title={\hspace{\fill}Bibliography}]
\pagebreak
\listoffigures
\IfPrivateBuild{
\pagebreak
\chapter*{\hspace{5pt}Begleitprotokoll}
\begin{flushleft}
\small
Thema des übergeordneten komplexen Aufgabenbereichs oder Projekts:
\linebreak
\Large
Beispielarbeit
\vskip0pt
\small
Individuelle Themenstellung:
\linebreak
\Large
Projektdurchführung
\vskip15pt
\small
Betreuer/in:{\large\tabto{4cm}\ThSupervisorName}\linebreak
E-Mail-Adresse:{\large\tabto{4cm}\ThSupervisorEmail}\linebreak
Telefonnummer:{\large\tabto{4cm}--}\linebreak
\vskip15pt
\small
Name der Diplomandin/des Diplomanden und Klasse:{\large\tabto{4cm}\ThRealAuthorName, \ThAuthorClass}\linebreak
E-Mail-Adresse:{\large\tabto{4cm}\ThRealAuthorEmail}\linebreak
Telefonnummer:{\large\tabto{4cm}--}\linebreak
\vskip15pt
\small
Name der Kooperationspartnerin/des Kooperationspartners und Ansprechperson:{\large\tabto{4cm}\ThPartnerName, \ThPartnerPersonName}\linebreak
E-Mail-Adresse:{\large\tabto{4cm}\ThPartnerPersonEmail}\linebreak
Telefonnummer:{\large\tabto{4cm}--}\linebreak
\vskip15pt
\small
Teammitglieder:{\large\tabto{4cm}\ThRealAuthorName}
\vskip15pt
\fontsize{10pt}{10pt}
\selectfont
\begin{tabular}{c|c|c|c|c|c}
\makecell{Datum der\\Besprechung} & \makecell{Teilnehmer/innen\\der Besprechung} & Vereinbarungen & \makecell{Termin zur\\Erledigung} & \makecell{Paraphe\\Betreuer/in} & \makecell{Paraphe\\Schüler/innen} \\ \hline
26.06.2020 & \makecell{\ThSupervisorName,\\\ThRealAuthorName} & \makecell{Implementierung\\Feature 1} & 03.07.2020 & & \\
03.07.2020 & \makecell{\ThSupervisorName,\\\ThRealAuthorName} & \makecell{Feature 2\\CLI, GUI} & 10.07.2020 & & \\
10.07.2020 & \makecell{\ThSupervisorName,\\\ThRealAuthorName} & \makecell{Configuration\\Files, Manual} & 17.07.2020 & & \\
17.07.2020 & \makecell{\ThSupervisorName,\\\ThRealAuthorName} & \makecell{Bug fixes} & 24.07.2020 & & \\
17.07.2020 & \makecell{\ThSupervisorName,\\\ThRealAuthorName} & \makecell{Bug fixes} & 24.07.2020 & & \\
17.07.2020 & \makecell{\ThSupervisorName,\\\ThRealAuthorName} & \makecell{Bug fixes} & 24.07.2020 & & \\
17.07.2020 & \makecell{\ThSupervisorName,\\\ThRealAuthorName} & \makecell{Bug fixes} & 24.07.2020 & & \\
17.07.2020 & \makecell{\ThSupervisorName,\\\ThRealAuthorName} & \makecell{Bug fixes} & 24.07.2020 & & \\
\end{tabular}
\vskip35pt
\fontsize{8pt}{8pt}
\selectfont
Datum: \hdashrule[0pt][x]{3cm}{.5pt}{.75mm}
\hspace{\fill}
Unterschrift der Schülerin/des Schülers: \hdashrule[0pt][x]{4cm}{.5pt}{.75mm}
\end{flushleft}
}{}
\Appendix{
\includegraphics[angle=90,height=.65\paperheight]{sample_graphic.png}
}
\end{document}