thesis_template
Author
Philip Döbler
Last Updated
3 anni fa
License
Creative Commons CC BY 4.0
Abstract
Template for bachelor and master theses carried out at the group of modular supercomputing and quantum computing at Goethe University Frankfurt.
Template for bachelor and master theses carried out at the group of modular supercomputing and quantum computing at Goethe University Frankfurt.
\documentclass[
paper = a4,
fontsize = 12pt,
headinclude = true,
% start chapters on the right side
open = right,
% Use twosided layout. Every chapter starts on the right side, therefore sometimes blank pages are added between chapters.
twoside = true,
BCOR = 10mm,
% add lists and bibliography to table of contents
toc = listofnumbered,
toc = bibnumbered,
% enumerate chapters as x.y instead of x.y.
numbers = noendperiod
]{scrreprt}
% use some additional package, add your own below if required
\usepackage[utf8]{inputenc}
% package for code listings
\usepackage{listings}
% package providing colors (e.g. for syntax highlighting in listings)
\usepackage{xcolor}
% package for german language, change to english if required
\usepackage[ngerman]{babel}
% package to set the line spacing
\usepackage{setspace}
% package for hyperlinks (e.g. in the table of contents) and set links to same style as text
\usepackage[hidelinks]{hyperref}
% package to create acronyms
\usepackage[acronym]{glossaries}
% package for pseudocode
\usepackage[german, algochapter, linesnumbered]{algorithm2e}
% package to create diagrams
\usepackage{tikz}
\usetikzlibrary{positioning}
\usetikzlibrary{shapes.geometric, arrows}
\tikzset{font={\fontsize{10pt}{12}\selectfont}}
% include acronyms
\input{preamble/acronyms}
% avoid bold caption for algorithms to be consistent with other captions
\SetAlCapSty{}
\SetNlSty{footnotesize}{}{}
% definitions for syntax highlighting in listings environment
% define custom colors for syntax highlighting in code listings
\definecolor{lst_comments}{rgb}{0, 0.75, 0}
\definecolor{lst_linenumbers}{rgb}{0.2, 0.2, 0.2}
\definecolor{lst_keywords}{rgb}{0, 0, 0.75}
\definecolor{lst_strings}{rgb}{0.75, 0, 0}
\definecolor{lst_background}{rgb}{0.97, 0.97, 0.97}
% define style for listings
\lstdefinestyle{msqc_style}{
backgroundcolor=\color{lst_background},
commentstyle=\color{lst_comments},
keywordstyle=\color{lst_keywords},
stringstyle=\color{lst_strings},
% style of the line numbers on the left side
numberstyle=\tiny\color{lst_linenumbers},
% use monospace font for code and set size to the size of footnotes
basicstyle=\footnotesize,
xleftmargin=2em,
% break long lines, if this happens it might be better to manually add a line break at an appropriate place
breaklines = true,
% place caption below the listing
captionpos = b,
% don't drop spaces to fix alignment and always convert tabs to spaces
keepspaces = true,
% place line numbers on the left side
numbers = left,
% distance between line numbers and listing
numbersep = 7pt,
% don't show special characters for spaces
showspaces = false,
% don't show special characters for spaces in strings
showstringspaces = false,
% don't show special characters for tabs
showtabs = false,
% set size of tab to 4 spaces
tabsize = 4
}
% set style for the document
\lstset{style=msqc_style}
% set line spacing to 1.5
\onehalfspacing
\begin{document}
% use roman numbering for preamble
\pagenumbering{Roman}
% add title page and abstract
\input{preamble/title_page}
\input{preamble/abstract}
% print table of contents
\tableofcontents
% use arabic numbering for main part
\cleardoublepage\pagenumbering{arabic}
% create a tex file for each chapter and include it below
\include{chapters/introduction}
\include{chapters/main_section}
\include{chapters/conclusion}
\begin{appendix}
% create a tex file for each appendix and include it below
\input{appendices/example_appendix}
% add lists of figures, tables and listings to the appendix
\listoffigures
\listoftables
\lstlistoflistings
% add acronyms
\printglossary[type=\acronymtype, title=Abkürzungsverzeichnis, toctitle=Abkürzungsverzeichnis, numberedsection]
% add bibliography
\bibliography{bibliography/references}{}
\bibliographystyle{ieeetr}
\end{appendix}
\end{document}