<reponame>lukas-abegg/bachelorthesis<filename>bachelorthesis.tex
	%% LLT: Turn off some annoying warnings...
\RequirePackage{silence}
\WarningFilter{titlesec}{Non standard sectioning command}
\WarningFilter{scrreprt}{Usage of package}
\WarningFilter{scrreprt}{Activating an ugly workaround}
% **************************************************
% Document Class Definition
% **************************************************
\documentclass[					%
	paper=A4,					% paper size --> A4 is default in Germany
%	twoside=true,				% onesite or twoside printing
    oneside=true,
%	twoside=false,				% onesite or twoside printing
	openright,					% doublepage cleaning ends up right side
	parskip=full,				% spacing value / method for paragraphs
	chapterprefix=true,			% prefix for chapter marks
	10pt,						% font size
	headings=small,				% size of headings		
%	bibliography=totoc,			% include bib in toc
%	listof=totoc,				% include listof entries in toc
	titlepage=on,				% own page for each title page
	captions=tableabove,			% display table captions above the float env
	draft=false, 				% value for draft version
]{scrreprt}						%

\usepackage{csvsimple,longtable,booktabs}
\usepackage{tocloft}
\usepackage{graphicx}				% Grafiken
\usepackage[utf8]{inputenc}			% defines file's character encoding
\usepackage{paralist}          		% for compactitem itemization
\usepackage{chngcntr}           		% Einfache Nummerierung von Abbildungen
\counterwithout{figure}{chapter} 	% Einfache Nummerierung von Abbildungen
\usepackage{listings} 				% Code Listings
\usepackage{float} 					% exaktes Figure Placement mit H
\usepackage[center]{caption}          		% Figure-Captions formatieren
\usepackage[table,xcdraw]{xcolor}
\usepackage[german,ruled]{algorithm2e}

% change font-size algorithm2e
\SetAlFnt{\footnotesize}
\SetAlgoLined

\lstset{
  breaklines=true,
%  numbers=left,
  numbersep=5pt,
  basicstyle=\footnotesize\ttfamily,
  numberstyle=\tiny\color{black}
%  literate=%
%  {Ö}{{\"O}}1
%  {Ä}{{\"A}}1
%  {Ü}{{\"U}}1
%  {ß}{{\ss}}2
%  {ü}{{\"u}}1
%  {ä}{{\"a}}1
%  {ö}{{\"o}}1
}
\lstset{literate=
  {á}{{\'a}}1 {é}{{\'e}}1 {í}{{\'i}}1 {ó}{{\'o}}1 {ú}{{\'u}}1
  {Á}{{\'A}}1 {É}{{\'E}}1 {Í}{{\'I}}1 {Ó}{{\'O}}1 {Ú}{{\'U}}1
  {à}{{\`a}}1 {è}{{\`e}}1 {ì}{{\`i}}1 {ò}{{\`o}}1 {ù}{{\`u}}1
  {À}{{\`A}}1 {È}{{\'E}}1 {Ì}{{\`I}}1 {Ò}{{\`O}}1 {Ù}{{\`U}}1
  {ä}{{\"a}}1 {ë}{{\"e}}1 {ï}{{\"i}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
  {Ä}{{\"A}}1 {Ë}{{\"E}}1 {Ï}{{\"I}}1 {Ö}{{\"O}}1 {Ü}{{\"U}}1
  {â}{{\^a}}1 {ê}{{\^e}}1 {î}{{\^i}}1 {ô}{{\^o}}1 {û}{{\^u}}1
  {Â}{{\^A}}1 {Ê}{{\^E}}1 {Î}{{\^I}}1 {Ô}{{\^O}}1 {Û}{{\^U}}1
  {œ}{{\oe}}1 {Œ}{{\OE}}1 {æ}{{\ae}}1 {Æ}{{\AE}}1 {ß}{{\ss}}1
  {ű}{{\H{u}}}1 {Ű}{{\H{U}}}1 {ő}{{\H{o}}}1 {Ő}{{\H{O}}}1
  {ç}{{\c c}}1 {Ç}{{\c C}}1 {ø}{{\o}}1 {å}{{\r a}}1 {Å}{{\r A}}1
  {€}{{\EUR}}1 {£}{{\pounds}}1
}

\usepackage{minted} % needed for the inclusion of source code
\usepackage{pgfplots} % needed for drawing diagrams
\usepackage{pgfplotstable}
\usetikzlibrary{matrix}
\usepackage{textcomp}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathtools} 
\usepackage{array}
\usepackage{color}
\usepackage{colortbl}
\usepackage{multirow}
\usepackage{hhline}
\usepackage{filecontents} 
% **************************************************
% Information and Commands for Reuse
% **************************************************
\newcommand{\thesisTitle}{Bachelorarbeit}
\newcommand{\thesisName}{<NAME>}
\newcommand{\thesisMatrikelNr}{Matrikelnummer 798972}
\newcommand{\thesisSubtitle}{Suchoptimierung mittels maschinellen Lernens}
\newcommand{\thesisZeitraum}{Zeitraum 04.07.2016 - 11.10.2016}
\newcommand{\thesisSemester}{Sommersemester 2016}
\newcommand{\thesisDate}{Oktober 11, 2016}

\newcommand{\thesisFirstReviewer}{Prof. Dr. habil. <NAME>}
\newcommand{\thesisFirstPosition}{Fachbereich VI - Informatik und Medien}
\newcommand{\thesisFirstReviewerUniversity}{\protect{Beuth Hochschule f{\"u}r Technik}}
\newcommand{\thesisFirstReviewerUniversitySmall}{\protect{Beuth Hochschule}}
\newcommand{\thesisFirstReviewerUniversityCity}{Berlin}
\newcommand{\thesisFirstReviewerUniversityStreetAddress}{Luxemburger Str. 10}
\newcommand{\thesisFirstReviewerUniversityPostalCode}{13353}

\newcommand{\thesisSecondReviewer}{Prof. Dr. rer. nat. <NAME>}
\newcommand{\thesisSecondPosition}{Fachbereich VI - Informatik und Medien}
\newcommand{\thesisSecondReviewerUniversity}{\protect{Beuth Hochschule f{\"u}r Technik}}
\newcommand{\thesisSecondReviewerUniversitySmall}{\protect{Beuth Hochschule}}
\newcommand{\thesisSecondReviewerUniversityCity}{Berlin}
\newcommand{\thesisSecondReviewerUniversityStreetAddress}{Luxemburger Str. 10}
\newcommand{\thesisSecondReviewerUniversityPostalCode}{13353}

\newcommand{\thesisUniversity}{\protect{Beuth Hochschule f{\"u}r Technik}}
\newcommand{\thesisUniversityDepartment}{Studiengang Medieninformatik (B.Sc.)}
\newcommand{\thesisFachsemester}{Fachsemester 6}
\newcommand{\thesisUniversityCity}{Berlin}
\newcommand{\thesisUniversityStreetAddress}{Luxemburger Str. 10}
\newcommand{\thesisUniversityPostalCode}{13353}

% **************************************************
% Debug LaTeX Information
% **************************************************
%\listfiles

% **************************************************
% Load and Configure Packages
% **************************************************
\usepackage[german]{babel}    		% Deutsche Sprache in automatisch generiertem
\usepackage[							% use bachelorthesis style
	figuresep=colon,%
	sansserif=false,%
	hangfigurecaption=false,%
	hangsection=false,%
	hangsubsection=false,%
	colorize=full,%
	colortheme=bluemagenta,%
	bibsys=bibtex,%
	bibfile=bib-refs,%
	bibstyle=alphabetic,	%
]{bachelorthesis}

\hypersetup{								% setup the hyperref-package options
	pdftitle={\thesisTitle},				% 	- title (PDF meta)
	pdfsubject={\thesisSubtitle},		% 	- subject (PDF meta)
	pdfauthor={\thesisName},				% 	- author (PDF meta)
	plainpages=false,					% 	-
	colorlinks=false,					% 	- colorize links?
	pdfborder={0 0 0},					% 	-
	breaklinks=true,						% 	- allow line break inside links
	bookmarksnumbered=true,				%
	bookmarksopen=true					%
}

\sloppy


% **************************************************
% Document CONTENT
% **************************************************
\begin{document}

\setstretch{1.1}
 
% --------------------------
% rename document parts
% --------------------------
\renewcaptionname{german}{\figurename}{Abb.}
\renewcaptionname{german}{\tablename}{Tab.}
\renewcommand\listingscaption{Code}
\renewcommand\listoflistingscaption{Sourcecode-Verzeichnis}
\renewcaptionname{german}{\listfigurename}{Abbildungs-Verzeichnis}
\renewcaptionname{german}{\listtablename}{Tabellen-Verzeichnis}
\renewcommand{\cftlottitlefont}{\color{ctcolorblack}\huge \fontfamily{phv}\selectfont}
\renewcommand{\cftloftitlefont}{\color{ctcolorblack}\huge \fontfamily{phv}\selectfont}

% --------------------------
% Formulas
% --------------------------
\setlength{\abovedisplayskip}{0pt}
\setlength{\abovedisplayshortskip}{0pt}
\setlength{\belowdisplayskip}{0pt}
\setlength{\belowdisplayshortskip}{0pt}
    
% --------------------------
% itemize
% --------------------------
\newenvironment{myitemize}
{ \begin{itemize}
    \setlength{\itemsep}{0pt}
    \setlength{\parskip}{0pt}
    \setlength{\parsep}{0pt}     }
{ \end{itemize}                  } 

% --------------------------
% Front matter
% --------------------------
\pagenumbering{roman}				% roman page numbing (invisible for empty page style)
\pagestyle{empty}					% no header or footers
\input{content/titlepages}			% INCLUDE: all titlepages
\pagestyle{plain}					% display just page numbers

\setcounter{tocdepth}{2}				% define depth of toc
\tableofcontents						% display table of contents
\cleardoublepage

% --------------------------
% Body matter
% --------------------------
\pagenumbering{arabic}				% arabic page numbering
\setcounter{page}{1}					% set page counter
\pagestyle{maincontentstyle} 		% fancy header and footer

\input{content/chapter-einfuehrung} 			% INCLUDE: Einführung
\input{content/chapter-grundlagen} 			% INCLUDE: Grundlagen
\input{content/chapter-reranking} 			% INCLUDE: Kern der Arbeit
\input{content/chapter-implementierung} 		% INCLUDE: Kern der Implementierung
\input{content/chapter-evaluation}			% INCLUDE: Evaluation
\input{content/chapter-zusammenfassung} 		% INCLUDE: Zusammenfassung

\pagebreak

%************************************************
% Anhang
%************************************************
\input{content/chapter-anhang} 			% INCLUDE: Anhang

% **************************************************
% End of Document CONTENT
% **************************************************
\end{document}
