% !TeX program = xelatex
% !TeX encoding = utf8
% !TeX root = Fading.tex
% vim: set ts=2 sw=2 noet:

\documentclass[
	twoside, openright, titlepage, numbers = noenddot,
	headinclude, footinclude, cleardoublepage = empty, abstract = on,
	BCOR = 5mm, paper = a4, fontsize = 11pt
]{scrreprt}

%% Custom packages
\usepackage{tex/docmacros}

%% Language configuration
\usepackage{polyglossia}

%% Links
\usepackage{hyperref}

\hypersetup{
	colorlinks = true
}

%% Citations
\usepackage[
	backend = biber,
	style = ieee,
]{biblatex}

\addbibresource{Fading.bib}

%% Pretty figures
\usepackage{tikz}

\usetikzlibrary{
	calc,
	backgrounds
}
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}

%% Pretty plots
\usepackage{pgfplots}

%% Include pictures
\usepackage{graphicx}

\begin{document}

	\hypersetup{pageanchor = false}
	%% TODO: titlepage

	\cleardoublepage
	\pagenumbering{roman}

	%% TODO: abstract
	% \begin{abstract}
	% \end{abstract}

	\hypersetup{pageanchor = true}
	\pagenumbering{arabic}
	\setcounter{page}{1}

	\include{chapters/introduction}
	\include{chapters/theory}
	\include{chapters/implementation}
	\include{chapters/conclusions}

	\printbibliography

\end{document}
