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}}
c31df1ed
PM
11\newcommand{\myfontsize}{12pt}
12\newcommand{\smallerfontsize}{11pt}
13\newcommand{\smallfontsize}{10pt}
14\newcommand{\oslbaseurl}{\url{http://w3studi.informatik.uni-stuttgart.de/~martispp/ont\#}}
15\newcommand{\oslheaderurl}{\url{http://w3studi.informatik.uni-stuttgart.de/~martispp/ont/db2osl.owl}}
16%\newcommand{\spacebeforetable}{2em}
17\newcommand{\itm}{\textbullet \ }
18
19% New commands
20%\newcommand{\file}[1]{{\sffamily\slshape #1}}
21\newcommand{\file}[1]{\textsf{#1}}
22\newcommand{\name}[1]{\textsc{#1}}
23\newcommand{\sbr}[1]{\texttt{#1}}
24\newcommand{\var}[1]{\textsl{\texttt{#1}}}
25\newcommand{\cmd}[1]{\uppercase{\texttt{#1}}}
26\newcommand{\ind}{\hspace*{30pt}}
27\newcommand{\code}[1]{\texttt{#1}}
28\newcommand{\codepar}[1]{\begin{itemize}\item[]\code{#1}\end{itemize}\vspace{12pt}}
29\newcommand{\fullref}[1]{\ref{#1} -- \nameref{#1}}
30
31% Documentclass etc.
32\documentclass[\myfontsize,a4paper,twoside=semi]{scrreprt}
62fe6284 33%\documentclass[paper=a4,twoside,bibliography=totoc,cleardoublepage=empty,parskip=half,final]{scrbook} % Remember to comment in \backmatter!
c31df1ed
PM
34\usepackage[utf8]{inputenc}
35\usepackage[T1]{fontenc}
36\usepackage{lmodern}
37\usepackage{color}
62fe6284 38%\usepackage[hyperref,dvipsnames]{xcolor}
c31df1ed
PM
39
40% Einstellungen bez. des 'scrreprt'-Stils
41% Caption Schriftstil und -Groesse
42\renewcommand{\capfont}{\footnotesize}
43\renewcommand{\caplabelfont}{\footnotesize\bfseries}
44\typearea{15} %Einstellung des Verh�ltnisses Gr��e des Textes zur Papiergr��e
45%\renewcommand{\familydefault}{\sfdefault} % "moderne" Schrift
46%\renewcommand{\headfont}{\normalfont\sf} % Kolumnentitel serifenlos
47%\renewcommand{\pnumfont}{\normalfont\sffamily} % Seitennummern serifenlos
48
49% Sprache
50\usepackage[ngerman,english]{babel}
51\selectlanguage{english}
52\setlength{\parindent}{0pt}
53
54\addto\extrasgerman{\renewcommand{\figurename}{Abb.}}
55\addto\extrasgerman{\renewcommand{\tablename}{Tab.}}
56
28b54c67
PM
57% Text
58\usepackage{textcomp}
59
62fe6284 60% Bilder / Graphiken
c31df1ed
PM
61\usepackage[rflt]{floatflt}
62\usepackage{epsfig,wrapfig}
63\usepackage{subcaption}
64\usepackage{float}
62fe6284 65\usepackage{graphicx}
c31df1ed 66
62fe6284 67% Mathematische Symbole etc.
c31df1ed 68\usepackage{amsmath,amssymb}
002fa020 69%\usepackage[binary-units=true,decimalsymbol=comma]{siunitx}
62fe6284
PM
70
71% Algorithmen
002fa020
PM
72%\usepackage{algpseudocode}
73%\usepackage{algorithm}
74%\usepackage{algorithmicx}
c31df1ed
PM
75
76% Tabellen
77\usepackage{longtable,lscape}
78\usepackage{multirow}
28b54c67 79\usepackage{multicol}
c31df1ed
PM
80\usepackage{tabularx}
81
82% Kopfzeilen
83\usepackage[automark,headsepline]{scrlayer-scrpage}
84\pagestyle{plain}
85\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
86\renewcommand{\sectionmark}[1]{\markboth{\thesection\ #1}{}}
87\clearpairofpagestyles
88\cfoot[\pagemark]{\pagemark}
89\lehead{\headmark}
90\rohead{\headmark}
91\pagestyle{scrheadings}
62fe6284
PM
92%\usepackage[automark]{scrpage2}
93%\renewcommand{\footnoterule}{}
94%\addtolength{\skip\footins}{\baselineskip}
95%\usepackage{fnpos}
c31df1ed
PM
96
97% Listenerscheinung
98\setlength{\itemsep}{0ex}
99\setlength{\parsep}{0ex}
100\setlength{\parskip}{2mm}
101
102% Biblatex
62fe6284
PM
103\usepackage[style=alphabetic,maxnames=10,backref=true,block=space,backend=bibtex]{biblatex}
104\setlength{\bibitemsep}{1em}
c31df1ed
PM
105\bibliography{bibliography}
106
62fe6284
PM
107% Cover
108\usepackage[title={\mytitle{}},
109 author={Philipp Martis},
110 type=bachelor,
111 institute=ipvs,
002fa020 112 number=281,
62fe6284
PM
113 course=cs,
114 examiner={PD\ Dr.\ Holger Schwarz},
115 supervisor={M. Sc. Leif Harald Karlsen},
116 startdate={23rd of November 2015},
117 enddate={24th of May 2016},
118 crk={D.0},
119 language=english]{cs-cover/uni-stuttgart-cs-cover}
120
121% Appendix
122\usepackage{appendix}
123
124% Links
125%\usepackage{url}
126\usepackage{caption} % Always link to the top of a figure or table
127\usepackage[]{hyperref} % Should be loaded last!
c31df1ed
PM
128\hypersetup{
129 unicode,
130 pdftitle={\mytitle{}},
131 pdfauthor={Philipp Martis},
132 pdfsubject={Ontology-based data access (OBDA)},
133 pdfkeywords={Ontology, Database, Database access, Big data},
134 pdfpagelayout=TwoPageRight,
135 linktoc=all,
136 colorlinks=true,
137 breaklinks=true,
138 extension=pdf,
139% destlabel=true,
140% allcolors=blue,
141 linkcolor=blue,
142 citecolor=green,
143 filecolor=cyan,
144 urlcolor=magenta,
145 pdfstartview=FitH,
146 pdfpagemode=UseOutlines,
147 bookmarksnumbered=true,
148 bookmarksopen=true,
149 bookmarksopenlevel=1
150}
c31df1ed
PM
151
152
153\begin{document}
154
155% Seitennumerierung bis zum Beginn der Einleitung auf kleine roemische Zahlen setzen
156\pagenumbering{roman}
157
158% Title page
62fe6284
PM
159\Titelblatt
160%\KOMAoption{fontsize}{\smallerfontsize{}}
161%\title{\mytitle{}}
162%\author{Bachelor thesis \\
163% by \\
164% stud.\ inf.\ Philipp Martis}
165%\publishers{realized at the \\
166% Institute for Parallel and Distributed Systems, \\
167% University of Stuttgart \\[5ex]
168% Stuttgart, in May 2016}
169%\date{}
170%\maketitle
171%\KOMAoption{fontsize}{\myfontsize{}}
c31df1ed
PM
172
173% Abstract
174\include{abstract}
175\addcontentsline{toc}{chapter}{Abstract}
176\include{kurzfassung}
177\addcontentsline{toc}{chapter}{Kurzfassung}
178
179% Contents
180\tableofcontents
181\addcontentsline{toc}{chapter}{Contents}
182
183%% Nomenclature
184%\addcontentsline{toc}{chapter}{Nomenclature}
185%\include{nomenclature}
186
187% List of figures
188\listoffigures
189\addcontentsline{toc}{chapter}{List of figures}
190
191% List of tables
192\listoftables
193\addcontentsline{toc}{chapter}{List of tables}
194
62fe6284
PM
195% List of algorithms
196%\listofalgorithms
197%\addcontentsline{toc}{chapter}{List of algorithms}
198
c31df1ed
PM
199\clearpage
200\pagestyle{plain}
201\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
202\renewcommand{\sectionmark}[1]{\markboth{\thesection\ #1}{}}
203
204% Seitennumerierung ab der folgenden Einleitung auf arabische Zahlen setzen
205\pagenumbering{arabic}
206
207% Introduction
208\include{introduction}
209
210% Background
211\include{background}
212
213% The OBDA Specification Language (OSL)
214\include{osl}
215
216% The db2osl software
217\include{program}
218
219% Summary
220\include{summary}
221
62fe6284
PM
222%\backmatter % Only for the book document classes
223
c31df1ed
PM
224% Appendix
225\include{appendix}
226\addcontentsline{toc}{chapter}{Appendix}
227
228% Bibliography bibtex (add pagebackref=true to hyperref options if desired)
229%\bibliographystyle{alpha}
230%\bibliography{bibliography}
231%\addcontentsline{toc}{chapter}{Bibliography}
232
233% Bibliography biblatex
234\printbibliography
235\addcontentsline{toc}{chapter}{Bibliography}
236
62fe6284
PM
237% Legal statement
238\pagestyle{empty}
239\renewcommand*{\chapterpagestyle}{empty}
240\clearpage
241\Versicherung
242
c31df1ed 243\end{document}