-
Notifications
You must be signed in to change notification settings - Fork 8
/
thesis.tex
137 lines (105 loc) · 4.25 KB
/
thesis.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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Do not change this document unless you know what you're doing! %%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% To write your thesis, edit the following files:
% * myconfiguration.sty
% * mybibliography.bib
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[12pt,a4paper,twoside,openright]{report}
\usepackage{fontspec}
\usepackage{myconfiguration,osrthesis}
\usepackage[backend=biber,style=apa]{biblatex}
\setlength{\headheight}{15pt}
\DeclareLanguageMapping{ngerman}{ngerman-apa}
\DeclareLanguageMapping{british}{british-apa}
\addbibresource[datatype=bibtex]{mybibliography.bib}
\title{\thesistitle}
\author{\thesisauthorgivenname\ \thesisauthorsurname}
\date{\thesissubmissiondate}
\begin{document}
\maketitle
\shipout\null
\renewcommand{\chaptername}{} % Remove 'Chapter' in chapter headings
%%%%%%%%%%%%%%%%% PREFIX SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{roman}
\headerstyleprefixsection
%% Remove the page breaks between chapters
\makeatletter
\renewcommand\chapter{\par%
\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\makeatother
\ifthenelse{\equal{\thesislanguage}{German}}
{ %true
\chapter*{Eidesstattliche Erklärung}
\label{ch:eidesstattliche_erklaerung}
Ich versichere, dass ich die Arbeit ohne fremde Hilfe und ohne Benutzung anderer als der angegebenen Quellen angefertigt habe und dass die Arbeit in gleicher oder ähnlicher Form noch keiner anderen Prüfungsbehörde vorgelegen hat und von dieser als Teil einer Prüfungsleistung angenommen wurde.
Alle Ausführungen, die wörtlich oder sinngemäß übernommen wurden, sind als solche gekennzeichnet.
}
{ %false
\chapter*{Declaration of Originality}
\label{ch:declaration_of_originality}
I confirm that the submitted thesis is original work and was written by me without further assistance.
Appropriate credit has been given where reference has been made to the work of others.
The thesis was not examined before, nor has it been published.
The submitted electronic version of the thesis matches the printed version.
}
\vspace{.5in}
\makebox[3in]{\hrulefill} \\
\thesissubmissioncity, \printdate{\thesissubmissiondate}
\ifthenelse{\equal{\thesislanguage}{German}}
{ %true
\chapter*{Lizenz}\label{ch:lizenz}
Diese Arbeit unterliegt der Creative Commons Attribution 4.0 International Lizenz (CC BY 4.0), \url{https://creativecommons.org/licenses/by/4.0/}
}
{ %false
\chapter*{License}
\label{ch:license}
This work is licensed under the Creative Commons Attribution 4.0 International license (CC BY 4.0), see \url{https://creativecommons.org/licenses/by/4.0/}
}
\vspace{.5in}
\makebox[3in]{\hrulefill} \\
\thesissubmissioncity, \printdate{\thesissubmissiondate}
%% Re-install the page breaks between chapters
\makeatletter
\renewcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
\thispagestyle{plain}%
\global\@topnum\z@
\@afterindentfalse
\secdef\@chapter\@schapter}
\makeatother
\chapter*{Abstract}\label{chapter:abstract}
\input contents/abstract.tex
\ifthenelse{\equal{\thesislanguage}{German}}
{ % true
\chapter*{Zusammenfassung}\label{chapter:zusammenfassung}
\input contents/zusammenfassung.tex
} { %false
}
\tableofcontents
\listoffigures
\listoftables
\input{contents/acronyms.tex}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%% MAIN SECTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\cleardoublepage
\pagenumbering{arabic}
\headerstylemainsection
\input contents/example.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%% CLOSING SECTIONS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{appendices}
\renewcommand{\setthesection}{\Alph{section}}
\renewcommand{\thesection}{\Alph{section}}
\headerstyleclosingsection\
\renewcommand\sectionmark[1]{\markright{\thesection : #1}} % Appendix A. => Appendix A:
\input contents/appendices.tex
\end{appendices}
\cleardoublepage
\renewcommand\bibname{\referencesname}
\addcontentsline{toc}{chapter}{\referencesname}
\printbibliography
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}