\documentclass[a4paper,12pt]{report}

\usepackage[masterthesis,english]{comp}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title{A Study and Implementation of Semantic Variability in Statecharts}
\author{Joeri Exelmans}
\principaladviser{Hans Vangheluwe}
\assistantadviser{Simon Van Mierlo}
\submitdate{August 2020}
\bibfile{references}
\bibpunct{[}{]}{;}{a}{,}{,}
% \bibliographystyle{alpha}
\setcitestyle{numbers} % this fixes build error

\usepackage{amssymb}

\usepackage{svg}
\graphicspath{ {images/} }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Python syntax highlighting
% from https://tex.stackexchange.com/questions/83882/how-to-highlight-python-syntax-in-latex-listings-lstinputlistings-command
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Default fixed font does not support bold face
\DeclareFixedFont{\ttb}{T1}{txtt}{bx}{n}{10} % for bold
\DeclareFixedFont{\ttm}{T1}{txtt}{m}{n}{10}  % for normal

% Custom colors
\usepackage{color}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}

\usepackage{subcaption}
\usepackage{tabularx}
\usepackage{pdflscape}

\definecolor{myblue}{RGB}{0, 0, 204}
\definecolor{mygreen}{RGB}{0, 102, 0}

\usepackage{listings}

\lstset{frame=tb}

\lstset{basicstyle=\ttfamily\footnotesize,breaklines=true}

% Python style for highlighting
\newcommand\pythonstyle{\lstset{
language=Python,
basicstyle=\ttm,
otherkeywords={self},             % Add keywords here
keywordstyle=\ttb\color{deepblue},
emph={MyClass,__init__},          % Custom highlighting
emphstyle=\ttb\color{deepred},    % Custom highlighting style
stringstyle=\color{deepgreen},
frame=tb,                         % Any extra options here
showstringspaces=false            % 
}}


% Python environment
\lstnewenvironment{python}[1][]
{
\pythonstyle
\lstset{#1}
}
{}

% Python for external files
\newcommand\pythonexternal[2][]{{
\pythonstyle
\lstinputlisting[#1]{#2}}}

% Python for inline
\newcommand\pythoninline[1]{{\pythonstyle\lstinline!#1!}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



% Make hyperref package use black links
\hypersetup{
	pdfauthor={Joeri Exelmans},
	pdftitle={A Study and Implementation of Semantic Variability in Statecharts},
	pdfkeywords={statecharts},
    colorlinks,
    citecolor=black,
    filecolor=black,
    linkcolor=black,
    urlcolor=black
}

%correct faulty hyphenation here, most useful for "nederlandstalige samenvatting" as english is hyphenated automatically
\hyphenation{die-nen}

% Make sure links to images link correctly to the image and not the text
\usepackage[all]{hypcap}

%TODO COMMANDS
\newcommand{\todo}[1]{
	\addcontentsline{tdo}{todo}{\protect{#1}}
    \textcolor{blue}{TODO: #1} %\marginpar{#1}
}

\makeatletter \newcommand \listoftodos{\section*{Todo list} \@starttoc{tdo}}
  \newcommand\l@todo[2]
    {\par\noindent \textit{#2}, \parbox{14cm}{#1}\par} \makeatother

%Make sure that subenumerations are also numbered and referenced correctly
\renewcommand{\theenumii}{.\arabic{enumii}}
\renewcommand{\labelenumii}{\labelenumi\arabic{enumii}}

\usepackage{url}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%\listoftodos
%\newpage
\frontpages
\input{00-Abstract}
\input{00-NedSamenvatting}
\input{00-Acknowledgements}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\mainbodypages
\input{01-Introduction}
\input{02-Background}
% \input{03-SemanticOptions}
\input{04-Implementation}
\input{05-Evaluation}
\input{98-RelatedWork}
\input{99-Conclusion}
\backpages

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{appendices}
\input{AA-Testcode}
\end{appendices}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
