-
Notifications
You must be signed in to change notification settings - Fork 0
/
Thesis.tex
234 lines (185 loc) · 6.41 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
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
% Main Thesis File: This is the main file and it connects all the different parts of the thesis and compiles it into a single outcome file.
\documentclass[onecolumn, 12pt, a4paper]{article}
\renewcommand{\baselinestretch}{1.5} % baseline stretch
% Packages
\usepackage{array}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage[cmex10]{amsmath}
\usepackage{adjustbox}
\usepackage{arabtex}
\usepackage{academicons}
\usepackage[german]{babel}
\usepackage{breakcites}
\usepackage{color}
\usepackage{epsfig}
\usepackage{etoolbox}
\usepackage{enumitem}
\usepackage{float}
\usepackage{fancyhdr}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{graphics}
%\usepackage{hyperref} % if you want to highlight the links
\usepackage[hidelinks]{hyperref}
\usepackage{latexsym,amsfonts}
\usepackage{longtable}
\usepackage{listings}
\usepackage{lscape}
\usepackage{lipsum}
\usepackage{multirow}
\usepackage{pdfpages}
\usepackage[figuresright]{rotating}
\usepackage{sectsty}
\usepackage{setspace}
\usepackage{subfigure}
\usepackage{textcomp}
\usepackage[subfigure]{tocloft}
\usepackage{utf8}
\usepackage{url}
\usepackage{wrapfig}
\usepackage{wasysym}
\usepackage{xcolor}
% parameters
\def\thesistype {Diplomarbeit}
\title{Titel}
\def\subtitle {Untertitel (optional)}
\author{Vorname Zuname}
\date{01.01.0001}
\def\place {Graz}
\def\degree {Doktor(in) der gesamten Heilkunde\\(Dr. med. univ.) }
\def\institut {Institut / Klinik für ...}
\def\supervisor {Supervisor}
\def\uni {Medizinische Universität Graz}
% here you can define your own acronymes
% Changing chapters' headings and subheadings to size 14
\setmainfont{Arial}
\sectionfont{\fontsize{16}{18}\selectfont}
\subsectionfont{\fontsize{14}{15}\selectfont}
\subsubsectionfont{\fontsize{14}{15}\selectfont}
\pagestyle{fancy} % adds a line at the top of every page, except title-page
\renewcommand{\headrulewidth}{0pt}
\fancyhf{} % Start with clearing everything in the header and footer
\fancyfoot[R]{\thepage}
%The following code changes the empty vertical space above a new chapter title. It sets it from 50pt to 20pt
\makeatletter
\patchcmd{\@makechapterhead}{50\p@}{20pt}{}{}
\patchcmd{\@makeschapterhead}{50\p@}{20pt}{}{}
\makeatother
%end of modification
% The following code redefines the plain pagestyle with the objective of moving the page number from the bottom to the top of the page. This only affects new chapter pages.
\fancypagestyle{plain}{
\fancyhf{} %clear all header and footer fields
\fancyfoot[R]{\thepage} %puts number on top center of the page
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}}
%ending of plain pagestyle modification.
% ### Nomenclature, List of Abbreviations and List of Symbols
\usepackage{ifthen,xkeyval,xfor,amsgen}
\usepackage[acronym,toc, nogroupskip]{glossaries}
\newglossary[slg]{symbols}{syi}{sbl}{List of Symbols}
\makeglossaries
\include{0_Abkuerzungen}
% Run the following three lines in the command line to get the lists
%makeindex -s Thesis.ist -t Thesis.alg -o Thesis.acr Thesis.acn
%makeindex -s Thesis.ist -t Thesis.slg -o Thesis.syi Thesis.sbl
%makeindex -s Thesis.ist -t Thesis.glg -o Thesis.gls Thesis.glo
% ### End of addition
% Modified commands
\newcommand{\Tab}{\hspace{2ex}}
\usepackage[lmargin=30mm, rmargin=25mm, vmargin=25mm, headsep=2.5mm]{geometry}
\newcommand{\mathsym}[1]{{}}
\newcommand{\unicode}[1]{{}}
%\newcommand{\orcid}[1]{\href{https://orcid.org/#1}{\textcolor[HTML]{A6CE39}{\aiOrcid}}}
\newcommand{\orcid}{\includegraphics[width=8pt]{ORCID}} % ORCID ID
\begin{document}
% $$$$$$$$$$$$$$$$$ Start of Thesis Front matter $$$$$$$$$$$$$$
%\vspace{10mm} % vertical space
\thispagestyle{empty}
\addvspace{5mm} % vertical space until length
%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
% make the title page
\begin{titlepage}
\makeatletter
\thispagestyle{empty}
\doublespacing
\begin{center}
{\textbf\thesistype} \\
\vspace{1cm}
{\LARGE\textbf\textsc{\@title}} \\
{\Large\textbf\subtitle} \\
\vspace{2cm}
eingereicht von\\
{\large\textbf \@author} \\
\vspace{2cm}
zur Erlangung des akademischen Grades \\
\vspace{0.2cm}
{\large\textbf\degree} \\
an der \\
\vspace{2cm}
{\large\textbf{\uni}} \\
\vspace{0.3cm}
ausgeführt am \\
{\large\textbf\institut} \\
\vspace{0.3cm}
unter der Anleitung von Betreuer/innen \\
{\large\textbf\supervisor{}} \\
\end{center}
\vfill
\place, \@date
\makeatother
\end{titlepage}
\section*{Eidesstattliche Erklärung}
\begin{itshape}
Ich erkläre ehrenwörtlich, dass ich die vorliegende Arbeit selbstständig und ohne
fremde Hilfe verfasst habe, andere als die angegebenen Quellen nicht verwendet
habe und die den benutzten Quellen wörtlich oder inhaltlich entnommenen Stellen
als solche kenntlich gemacht habe.
\vspace{2cm}
\makeatletter
\noindent \place, \@date \hfill \@author
\makeatother
\end{itshape}
\pagenumbering{Roman}
\include{0_Vorwort} % optional
\include{0_Danksagungen} % optional
%Table of content
\renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}}
%\begin{onehalfspacing}
\cleardoublepage
\renewcommand{\contentsname}{Inhaltsverzeichnis}
\tableofcontents
\cleardoublepage
%\end{onehalfspacing}
\printglossary[type=\acronymtype,style=long3col, title=Abkürzungsverzeichnis, toctitle=Abkürzungsverzeichnis, nonumberlist=true]
% adding list of figures
\cleardoublepage
\renewcommand{\listfigurename}{Abbildungsverzeichnis}
\addcontentsline{toc}{section}{\listfigurename}
\listoffigures
% adding list of tables
\cleardoublepage
\renewcommand{\listtablename}{Tabellenverzeichnis}
\addcontentsline{toc}{section}{\listtablename}
\listoftables
\include{9_Conclusion}
\include{9_Abstract}
\include{9_Papers}
% $$$$$$$$$$$$$$$$$ include your separate chapters $$$$$$$$$$$$$$
\cleardoublepage
\pagenumbering{arabic}
\include{1_Einleitung}
\include{2_Methoden}
\include{3_Ergebnisse}
\include{4_Diskussion}
% $$$$$$$$$$$$$$$$$ Reference style Starts $$$$$$$$$$$$$$
\bibliographystyle{vancouver}
\renewcommand\refname{Literaturverzeichnis}
\addcontentsline{toc}{section}{Literaturverzeichnis}
\bibliography{References}
% $$$$$$$$$$$$$$$$$ Reference style Ends $$$$$$$$$$$$$$
% $$$$$$$$$$$$$$$$$ include Appendices $$$$$$$$$$$$$$
\appendix
\include{9_Appendix}
% $$$$$$$$$$$$$$$$$ Appendix ends $$$$$$$$$$$$$$
\end{document}