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

\documentclass[
	% page size and margins
	paper = a4, twoside, openright, BCOR = 5mm,
	headinclude, footexclude,
	% font size
	fontsize = 11pt,
	% style of empty pages (after chapters)
	cleardoublepage = empty,
	% extra sections
	titlepage, abstract = on,
	% header and footers
	automark,
]{scrreprt}

%% Language configuration
\usepackage{polyglossia}

%% Custom packages
\usepackage{tex/docmacros}
\usepackage{tex/docstyle}

%% Pretty figures
\usepackage{circuitikz}  % Electric diagrams
\usepackage{pgfplots}    % Pretty plots
\usepackage{tikz}        % Pretty drawings
\usepackage{tikz-3dplot} % More dimensions!

\pgfplotsset{compat=1.17}
\usetikzlibrary{
	external,
	calc,
	positioning,
	backgrounds,
	decorations.pathreplacing,
	decorations.markings,
	matrix,
	arrows,
}
% \tikzexternalize[
	% mode=graphics if exists,
	% figure list=true]
\pgfdeclarelayer{background}
\pgfdeclarelayer{foreground}
\pgfsetlayers{background,main,foreground}


\usepackage{graphicx}   % Include pictures
\usepackage{subcaption} % Subfigures

%% Load bibliography 
\addbibresource{Fading.bib}

%% Recompute page margins
\KOMAoptions{DIV=default}

%% Metadata
\title{Multipath fading demonstration using software defined radio}
\author{Naoki Sean Pross \and Sara Cinzia Halter}
\date{Fall semester 2021}

\begin{document}

	\hypersetup{pageanchor = false}

	%% TODO: create a proper titlepage
	\maketitle
	% \include{tex/titlepage}

	\cleardoublepage
	\pagenumbering{roman}
	\setcounter{page}{1}

	\begin{abstract}
		%% TODO: write abstract
		Here goes the abstract
	\end{abstract}

	\tableofcontents

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

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

	\printbibliography

\end{document}
