latex template

Powerful LaTeX-Template for bachelor/master thesis (german)

Category

masters

License

Free to use (MIT)

File

main.tex

main.texRead-only preview
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Version 1.7.2 (2021-01-19)
%
% Created by Vel (vel@latextemplates.com) and Johannes Böttcher
% Based on https://www.latextemplates.com/template/masters-doctoral-thesis
%
% Modified by Nils Höll & Christian Hauff (@christianhauff)
%
% Template license:
% CC BY-NC-SA 4.0 (https://creativecommons.org/licenses/by-nc-sa/4.0/)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%----------------------------------------------------------------------------------------
%  BASIC DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[
  11pt, % The default document font size, options: 10pt, 11pt, 12pt
  oneside, % One side output by default, comment it out to switch to two side with alternating margins
  english, % AE: american, BE: english ngerman for (new) German -> (New spelling, important for line breaks in a word)
  singlespacing, % Single line spacing, alternatives: onehalfspacing or doublespacing
  % draft, % Uncomment to enable draft mode (no pictures, no links, overfull hboxes indicated)
  % nolistspacing, % If the document is onehalfspacing or doublespacing, uncomment this to set spacing in lists to single
  liststotoc, % Uncomment to add the list of figures/tables/etc to the table of contents
  % toctotoc, % Uncomment to add the main table of contents to the table of contents
  % parskip, % Uncomment to add space between paragraphs
  % nohyperref, % Uncomment to not load the hyperref package
  headsepline, % Uncomment to get a line under the header
  chapterinoneline, % Uncomment to place the chapter title next to the number on one line
  % consistentlayout, % Uncomment to change the layout of the declaration, abstract and acknowledgements pages to match the default layout
]{MastersDoctoralThesis} % The class file specifying the document structure

% Change depth of section numbering and table of contents representation
\setcounter{secnumdepth}{2} % Numbers down to \subsection; no \subsubsection
\setcounter{tocdepth}{2} % Printed in toc down to \subsection; no \subsubsection

%----------------------------------------------------------------------------------------
%  MARGIN SETTINGS
%----------------------------------------------------------------------------------------

\geometry{
  paper=a4paper, % Change to letterpaper for US letter
  inner=2.8cm, % Inner margin
  outer=2.8cm, % Outer margin
  bindingoffset=.5cm, % Binding offset
  top=1.5cm, % Top margin
  bottom=1.5cm, % Bottom margin
  % showframe, % Uncomment to show how the type block is set on the page
}


%----------------------------------------------------------------------------------------
%  THESIS INFORMATION
%----------------------------------------------------------------------------------------

% Author information
% Copy `Base/author_info.dist.tex` into `Base/author_info.tex` and set the values
% if you do not want personal data to end up in a public git repository
\IfFileExists{Base/author_info.tex}{\input{Base/author_info.tex}}{\input{Base/author_info.dist.tex}}

% Thesis information
\thesistitle{Catchy Title} % Your thesis title, print it elsewhere with \ttitle
\degree{Master Thesis} % Your degree name, print it elsewhere with \degreename
\subject{Computer Sciences} % Your subject area, this is not currently used anywhere in the template, print it elsewhere with \subjectname
\keywords{\LaTeX, Master Thesis, Programming} % List of keywords, print it elsewhere with \keywordnames

% Environment information
\supervisor{Dr. Supervisor} % Your supervisor's name, print it elsewhere with \supname
\examiner{Prof. Dr. Examiner} % Your examiner's name, print it elsewhere with \examname
\university{\href{https://myserver.com/}{University}} % Your university's name and URL, this is used in the title page and abstract, print it elsewhere with \univname
\faculty{\href{https://myserver.com/}{Faculty}} % Your faculty's name and URL, this is used in the title page and abstract, print it elsewhere with \facname


%----------------------------------------------------------------------------------------
%  PACKAGES
%----------------------------------------------------------------------------------------

% ------ FONTS ------
\usepackage[T1]{fontenc} % Output font encoding
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage{lmodern,textcomp} % Latin modern font
\usepackage{mathpazo} % Use the Palatino font by default


% ------ BIBLIOGRAPHY ------
% Use the bibtex backend with the authoryear citation style (which resembles APA); DIN ISO: science
\usepackage[backend=bibtex,style=authoryear,natbib=true]{biblatex}
\addbibresource{sources.bib} % The filename of the bibliography


% ------ FIGURES ------
\usepackage{graphicx}
\usepackage[font=small,labelfont=bf]{caption} % Required for specifying captions to tables and figures
\usepackage{subcaption} % Required for nested captions
\usepackage{wrapfig} % Required for wrapping text around figures


% ------ TRANSLATIONS ------
\usepackage{translator}

% Include translations
\input{translations.tex}


% ------ ACRONYMS ------
\usepackage[nohyperlinks, printonlyused]{acronym}


% ------ OTHER ------
\usepackage{shortvrb}
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}

\usepackage{float}
\restylefloat{table}

\usepackage[autostyle=true]{csquotes} % Required to generate language-dependent quotes in the bibliography; generates quotes with \enquote{Text}
\hbadness=99999 %suppresses most underfull hbox warnings


% ------ LISTINGS ------
\usepackage{listings}

% Define JavaScript language support
\lstdefinelanguage{JavaScript}{
  keywords={break, case, catch, continue, debugger, default, delete, do, else, false, finally, for, function, if, in, instanceof, new, null, return, switch, this, throw, true, try, typeof, var, void, while, with},
  morecomment=[l]{//},
  morecomment=[s]{/*}{*/},
  morestring=[b]',
  morestring=[b]",
  sensitive=true
}

% Load required languages
\lstloadlanguages{PHP, XML, HTML, Java, JavaScript, SQL}

% Define colors for highlighting
\definecolor{lstbg}{gray}{0.95}
\definecolor{lstComment}{RGB}{51, 102, 0}
\definecolor{lstKey}{RGB}{0, 51, 204}
\definecolor{lstStr}{RGB}{162, 43, 43}

% Styling
\lstset{
  showtabs=false,
  showspaces=false,
  %tabsize=4,
  %tab=\rightarrowfill,
  showstringspaces=false,
  basicstyle=\ttfamily,
  columns=fullflexible,
  frame=single,
  %frameround=tttt,
  breaklines=true,
  backgroundcolor=\color{lstbg},
  commentstyle=\color{lstComment},
  stringstyle=\color{lstStr},
  keywordstyle=\color{lstKey},
  %prebreak=\mbox{\textbackslash}%,
  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 {ß}{{\ss}}1
}


%----------------------------------------------------------------------------------------
%  ADDITIONAL COMMANDS
%----------------------------------------------------------------------------------------

\input{commands.tex}


% ------ HYPERSETUP ------
\AtBeginDocument{
  \hypersetup{
    pdftitle=\ttitle, % Set the PDF's title to your title
    pdfauthor=\authorname, % Set the PDF's author to your name
    % hidelinks % Prints all links black; comment out the following color defs
    linkcolor=cyan,
    citecolor=olive,
    filecolor=magenta,
    urlcolor=blue,
    }
}


%----------------------------------------------------------------------------------------
%  DOCUMENT START
%----------------------------------------------------------------------------------------

\begin{document}

% ------ PAGE NUMBERING ------
\frontmatter % Use roman page numbering style (I, II, III, IV...) for the pre-content pages
\pagenumbering{Roman} % Capital roman numbers, use "roman" or comment for lower case (i, ii, iii, iv...)

\pagestyle{plain} % Default to the plain heading style until the thesis style is called for the body content

\sloppy

% ------ PRELIMINARY PAGES ------

% Include title page
\input{Base/titlepage.tex}

% Include declaration of independence
\input{Base/declaration.tex}

\cleardoublepage

% Include quotation page
\input{Base/quotation.tex}

% Include abstract page
\input{Base/abstract.tex}

% Include acknowledgements page
\input{Base/acknowledgements.tex}


%----------------------------------------------------------------------------------------
%  LIST OF CONTENTS/FIGURES/TABLES PAGES
%----------------------------------------------------------------------------------------

{\hypersetup{linkcolor=black} % Black links in all lists
  \tableofcontents % Prints the main table of contents
  \listoffigures % Prints the list of figures
  \listoftables % Prints the list of tables
  \lstlistoflistings % Prints the list of (code) listings
  \addchaptertocentry{Listings} % Add the list of listings to the table of contents
}


%----------------------------------------------------------------------------------------
%  ABBREVIATIONS
%----------------------------------------------------------------------------------------
  
\chapter{\abbrevname}
\begin{acronym}[AAAAAA]
  \acro{acl}[ACL]{Access Control List}
  \acro{ajax}[AJAX]{Asynchronous JavaScript and XML}
  \acro{api}[API]{Application Programming Interface}
  \acro{css}[CSS]{Cascading Style Sheets}
  \acro{gui}[GUI]{Graphical User Interface}
  \acro{html}[HTML]{Hypertext Markup Language}
  \acro{json}[JSON]{JavaScript Object Notation}
  \acro{php}[PHP]{PHP Hypertext Preprocessor}
  \acro{sql}[SQL]{Structured Query Language}
  \acro{uid}[UID]{User Identifier}
  \acro{url}[URL]{Uniform Resource Locator}
  \acro{ux}[UX]{User Experience}
  % \acro{}[]{}
\end{acronym}
% Use 
% - \ac{id} for standard behavior (\Ac{id} for first letter capitalized)
% - \acs{id} for acronym
% - \acl{id} for long version
% - \acp{id} for plural (with 's' at the end)
% - \acf{id} for the full version (long name + acronym in parentheses)
% - \newacro{id}[Acronym]{Long Name} to define acronyms outside the abbreviations list; e.g. for shorthands
% See https://ctan.mirror.norbert-ruehl.de/macros/latex/contrib/acronym/acronym.pdf

\newpage


% ------ GLOSSARY ------

\input{Base/glossary.tex}


%----------------------------------------------------------------------------------------
%  THESIS CONTENT - CHAPTERS
%----------------------------------------------------------------------------------------

\mainmatter % Begin numeric (1,2,3...) page numbering

\pagestyle{thesis} % Return the page headers back to the "thesis" style

% Include the chapters of the thesis as separate files from the Chapters folder
% Uncomment the lines as you write the chapters

\include{Chapters/01_introduction}
\include{Chapters/02_foundations}
\include{Chapters/03_methods}
\include{Chapters/04_results}
\include{Chapters/05_discussion}
\include{Chapters/06_conclusion}


%----------------------------------------------------------------------------------------
%  THESIS CONTENT - APPENDICES
%----------------------------------------------------------------------------------------

\appendix % Cue to tell LaTeX that the following "chapters" are Appendices

% Include the appendices of the thesis as separate files from the Appendices folder
% Uncomment the lines as you write the Appendices

% \include{Appendices/AppendixA}
% \include{Appendices/AppendixB}
% \include{Appendices/AppendixC}


%----------------------------------------------------------------------------------------
%  BIBLIOGRAPHY
%----------------------------------------------------------------------------------------

\printbibliography[heading=bibintoc]

%----------------------------------------------------------------------------------------

\end{document}
Preview
latex template preview
latex template LaTeX Template | Bibby | Bibby AI