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