Major change
[u/philim/db2osl_thesis.git] / Bachelor thesis.tex
CommitLineData
c31df1ed
PM
1%&latex
2% headsepline: Linie am oberen Blattrand unterhalb der Seitennummer
3% bibtotoc: Aufnahme des Literaturverzeichnisses ins Inhaltsverzeichnis
4%\documentclass[a4paper,headsepline,bibtotoc]{scrreprt}
5
6% Constants
7\newcommand{\mytitle}{Bootstrapping ontology-based data access specifications from
8 relational databases}
9\newcommand{\myprog}{\name{db2osl}}
10\newcommand{\osl}{\name{OSL}}
11\newcommand{\oslspec}{\osl{} specification}
12\newcommand{\myfontsize}{12pt}
13\newcommand{\smallerfontsize}{11pt}
14\newcommand{\smallfontsize}{10pt}
15\newcommand{\oslbaseurl}{\url{http://w3studi.informatik.uni-stuttgart.de/~martispp/ont\#}}
16\newcommand{\oslheaderurl}{\url{http://w3studi.informatik.uni-stuttgart.de/~martispp/ont/db2osl.owl}}
17%\newcommand{\spacebeforetable}{2em}
18\newcommand{\itm}{\textbullet \ }
19
20% New commands
21%\newcommand{\file}[1]{{\sffamily\slshape #1}}
22\newcommand{\file}[1]{\textsf{#1}}
23\newcommand{\name}[1]{\textsc{#1}}
24\newcommand{\sbr}[1]{\texttt{#1}}
25\newcommand{\var}[1]{\textsl{\texttt{#1}}}
26\newcommand{\cmd}[1]{\uppercase{\texttt{#1}}}
27\newcommand{\ind}{\hspace*{30pt}}
28\newcommand{\code}[1]{\texttt{#1}}
29\newcommand{\codepar}[1]{\begin{itemize}\item[]\code{#1}\end{itemize}\vspace{12pt}}
30\newcommand{\fullref}[1]{\ref{#1} -- \nameref{#1}}
31
32% Documentclass etc.
33\documentclass[\myfontsize,a4paper,twoside=semi]{scrreprt}
34\usepackage[utf8]{inputenc}
35\usepackage[T1]{fontenc}
36\usepackage{lmodern}
37\usepackage{color}
38
39% Einstellungen bez. des 'scrreprt'-Stils
40% Caption Schriftstil und -Groesse
41\renewcommand{\capfont}{\footnotesize}
42\renewcommand{\caplabelfont}{\footnotesize\bfseries}
43\typearea{15} %Einstellung des Verh�ltnisses Gr��e des Textes zur Papiergr��e
44%\renewcommand{\familydefault}{\sfdefault} % "moderne" Schrift
45%\renewcommand{\headfont}{\normalfont\sf} % Kolumnentitel serifenlos
46%\renewcommand{\pnumfont}{\normalfont\sffamily} % Seitennummern serifenlos
47
48% Sprache
49\usepackage[ngerman,english]{babel}
50\selectlanguage{english}
51\setlength{\parindent}{0pt}
52
53\addto\extrasgerman{\renewcommand{\figurename}{Abb.}}
54\addto\extrasgerman{\renewcommand{\tablename}{Tab.}}
55
56% Bilder
57\usepackage[rflt]{floatflt}
58\usepackage{epsfig,wrapfig}
59\usepackage{subcaption}
60\usepackage{float}
61
62% Mathematische Symbole
63\usepackage{amsmath,amssymb}
64
65% Tabellen
66\usepackage{longtable,lscape}
67\usepackage{multirow}
68\usepackage{tabularx}
69
70% Kopfzeilen
71\usepackage[automark,headsepline]{scrlayer-scrpage}
72\pagestyle{plain}
73\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
74\renewcommand{\sectionmark}[1]{\markboth{\thesection\ #1}{}}
75\clearpairofpagestyles
76\cfoot[\pagemark]{\pagemark}
77\lehead{\headmark}
78\rohead{\headmark}
79\pagestyle{scrheadings}
80
81% Listenerscheinung
82\setlength{\itemsep}{0ex}
83\setlength{\parsep}{0ex}
84\setlength{\parskip}{2mm}
85
86% Biblatex
87\usepackage[style=alphabetic,maxnames=10,backref=true,backend=bibtex]{biblatex}
88\bibliography{bibliography}
89
90% Hyperref
91\usepackage[]{hyperref}
92\hypersetup{
93 unicode,
94 pdftitle={\mytitle{}},
95 pdfauthor={Philipp Martis},
96 pdfsubject={Ontology-based data access (OBDA)},
97 pdfkeywords={Ontology, Database, Database access, Big data},
98 pdfpagelayout=TwoPageRight,
99 linktoc=all,
100 colorlinks=true,
101 breaklinks=true,
102 extension=pdf,
103% destlabel=true,
104% allcolors=blue,
105 linkcolor=blue,
106 citecolor=green,
107 filecolor=cyan,
108 urlcolor=magenta,
109 pdfstartview=FitH,
110 pdfpagemode=UseOutlines,
111 bookmarksnumbered=true,
112 bookmarksopen=true,
113 bookmarksopenlevel=1
114}
115\usepackage{caption} % Always link to the top of a figure or table
116
117
118\begin{document}
119
120% Seitennumerierung bis zum Beginn der Einleitung auf kleine roemische Zahlen setzen
121\pagenumbering{roman}
122
123% Title page
124\KOMAoption{fontsize}{\smallerfontsize{}}
125\title{\mytitle{}}
126
127\author{Bachelor thesis \\
128 by \\
129 stud.\ inf.\ Philipp Martis}
130
131\publishers{realized at the \\
132 Institute for Parallel and Distributed Systems, \\
133 University of Stuttgart \\[5ex]
134 Stuttgart, in May 2016}
135
136\date{}
137\maketitle
138\KOMAoption{fontsize}{\myfontsize{}}
139
140% Abstract
141\include{abstract}
142\addcontentsline{toc}{chapter}{Abstract}
143\include{kurzfassung}
144\addcontentsline{toc}{chapter}{Kurzfassung}
145
146% Contents
147\tableofcontents
148\addcontentsline{toc}{chapter}{Contents}
149
150%% Nomenclature
151%\addcontentsline{toc}{chapter}{Nomenclature}
152%\include{nomenclature}
153
154% List of figures
155\listoffigures
156\addcontentsline{toc}{chapter}{List of figures}
157
158% List of tables
159\listoftables
160\addcontentsline{toc}{chapter}{List of tables}
161
162\clearpage
163\pagestyle{plain}
164\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
165\renewcommand{\sectionmark}[1]{\markboth{\thesection\ #1}{}}
166
167% Seitennumerierung ab der folgenden Einleitung auf arabische Zahlen setzen
168\pagenumbering{arabic}
169
170% Introduction
171\include{introduction}
172
173% Background
174\include{background}
175
176% The OBDA Specification Language (OSL)
177\include{osl}
178
179% The db2osl software
180\include{program}
181
182% Summary
183\include{summary}
184
185% Appendix
186\include{appendix}
187\addcontentsline{toc}{chapter}{Appendix}
188
189% Bibliography bibtex (add pagebackref=true to hyperref options if desired)
190%\bibliographystyle{alpha}
191%\bibliography{bibliography}
192%\addcontentsline{toc}{chapter}{Bibliography}
193
194% Bibliography biblatex
195\printbibliography
196\addcontentsline{toc}{chapter}{Bibliography}
197
198\end{document}