% Copyright (C) 2014-2020 by Thomas Auzinger <thomas@auzinger.name>

\documentclass[draft,final]{vutinfth} % Remove option 'final' to obtain debug information.

% Load packages to allow in- and output of non-ASCII characters.
\usepackage{lmodern}        % Use an extension of the original Computer Modern font to minimize the use of bitmapped letters.
\usepackage[T1]{fontenc}    % Determines font encoding of the output. Font packages have to be included before this line.
\usepackage[utf8]{inputenc} % Determines encoding of the input. All input files have to use UTF8 encoding.

% Extended LaTeX functionality is enables by including packages with \usepackage{...}.
\usepackage{amsmath}    % Extended typesetting of mathematical expression.
\usepackage{amssymb}    % Provides a multitude of mathematical symbols.
\usepackage{mathtools}  % Further extensions of mathematical typesetting.
\usepackage{microtype}  % Small-scale typographic enhancements.
\usepackage[inline]{enumitem} % User control over the layout of lists (itemize, enumerate, description).
\usepackage{multirow}   % Allows table elements to span several rows.
\usepackage{booktabs}   % Improves the typesettings of tables.
\usepackage{subcaption} % Allows the use of subfigures and enables their referencing.
\usepackage[ruled,linesnumbered,algochapter]{algorithm2e} % Enables the writing of pseudo code.
\usepackage[usenames,dvipsnames,table]{xcolor} % Allows the definition and use of colors. This package has to be included before tikz.
\usepackage{nag}       % Issues warnings when best practices in writing LaTeX documents are violated.
\usepackage{todonotes} % Provides tooltip-like todo notes.
\usepackage{listings}
\usepackage{minted}
\usepackage{rotating}
\usepackage[numbers]{natbib}
\usepackage[colorlinks=true,linkcolor=blue]{hyperref}  % Enables cross linking in the electronic document version. This package has to be included second to last.
\usepackage[acronym,toc]{glossaries} % Enables the generation of glossaries and lists fo acronyms. This package has to be included last.

% Define convenience functions to use the author name and the thesis title in the PDF document properties.
\newcommand{\authorname}{Tobias Eidelpes} % The author name without titles.
\newcommand{\thesistitle}{Stateful Web Tracking: Techniques and Countermeasures} % The title of the thesis. The English version should be used, if it exists.

% Set PDF document properties
\hypersetup{
    pdfpagelayout   = TwoPageRight,           % How the document is shown in PDF viewers (optional).
    linkbordercolor = {Melon},                % The color of the borders of boxes around crosslinks (optional).
    pdfauthor       = {\authorname},          % The author's name in the document properties (optional).
    pdftitle        = {\thesistitle},         % The document's title in the document properties (optional).
    pdfsubject      = {Web Tracking},              % The document's subject in the document properties (optional).
    pdfkeywords     = {Stateful, Web, Tracking, Survey} % The document's keywords in the document properties (optional).
}

\setpnumwidth{2.5em}        % Avoid overfull hboxes in the table of contents (see memoir manual).
\setsecnumdepth{subsection} % Enumerate subsections.

\definecolor{light-gray}{gray}{0.95} % Define colour for minted code snippets

\nonzeroparskip             % Create space between paragraphs (optional).
\setlength{\parindent}{0pt} % Remove paragraph identation (optional).

\setcounter{tocdepth}{3}    % Set depth of table of contents to 3

\makeindex      % Use an optional index.
\makeglossaries % Use an optional glossary.
%\glstocfalse   % Remove the glossaries from the table of contents.

% Set persons with 4 arguments:
%  {title before name}{name}{title after name}{gender}
%  where both titles are optional (i.e. can be given as empty brackets {}).
\setauthor{}{\authorname}{}{male}
\setauthorextra
\setadvisor{}{Thomas Grechenig}{}{male}

% For bachelor and master theses:
\setfirstassistant{}{Karl Pinter}{}{male}

% Required data.
\setregnumber{01527193}
\setdate{31}{03}{2020} % Set date with 3 arguments: {day}{month}{year}.
\settitle{\thesistitle}{Stateful Web Tracking: Techniques and Countermeasures} % Sets English and German version of the title (both can be English or German). If your title contains commas, enclose it with additional curvy brackets (i.e., {{your title}}) or define it as a macro as done with \thesistitle.

% Select the thesis type: bachelor / master / doctor / phd-school.
% Bachelor:
\setthesis{bachelor}

% For bachelor and master:
\setcurriculum{Software \& Information Engineering}{Software \& Information Engineering} % Sets the English and German name of the curriculum.

\input{acronym.tex}

\begin{document}

\frontmatter % Switches to roman numbering.
% The structure of the thesis has to conform to the guidelines at
%  https://informatics.tuwien.ac.at/study-services

\addtitlepage{naustrian} % German title page (not for dissertations at the PhD School).
\addtitlepage{english} % English title page.
\addinsotitlepage{naustrian}
\addstatementpage

\begin{kurzfassung}
    Das Wachstum des Internets und der steigende Wettbewerb online hat
    Webseitenbetreiber dazu verleitet, Trackingmechanismen zu nutzen um Kunden
    und Kundinnen besser anwerben zu können und höhere Gewinne zu erzielen.
    Diese Mechanismen stellen zunehmend einen massiven Eingriff in die
    Privatsphäre dar, ohne den Nutzern und Nutzerinnen eine Wahl zu lassen. Aus
    diesem Grund sind Internetnutzende dazu gezwungen sich selbst vor diesen
    Eingriffen zu schützen. Durch die Entwicklung von Privatsphäre wahrenden
    Tools ist es möglich dieses Ziel zu erreichen. Diese Arbeit zielt darauf ab,
    User darüber zu informieren wie Trackingmechanismen funktionieren und wie
    und von wem sie eingesetzt werden, indem aktuelle Forschung zum Tracking
    zusammengefasst wird. Zusätzlich wird Individuen die Möglichkeit gegeben,
    sich durch die Nutzung von speziellen Tools und Techniken gegen invasive
    Trackingmechanismen zu schützen. Angesichts der überwältigenden Menge an
    Trackingmöglichkeiten stellt sich heraus, dass Nutzer und Nutzerinnen immer
    mehr an Wissen benötigen um sich gegen das Tracking effektiv wehren zu
    können.
\end{kurzfassung}

\begin{abstract}
    The growth of the Internet and the increasing competition online has led to
    web sites using tracking mechanisms to increase customer engagement and
    profits. These mechanisms have become increasingly privacy invasive without
    giving users a choice of how much of themselves they want to share. As a
    consequence, users are forced to protect themselves from tracking mechanisms
    on their own. A myriad of tools and techniques is available to individuals
    to achieve that goal. This thesis aims to educate about tracking mechanisms,
    how they work and who employs them how often by summarizing recent research.
    Additionally, common defenses against tracking are presented and discussed.
    The results of this survey on tracking mechanisms and defenses indicate that
    tracking cannot be curbed entirely and that users are faced with increasing
    difficulties protecting themselves online.
\end{abstract}

% Select the language of the thesis, e.g., english or naustrian.
\selectlanguage{english}

% Add a table of contents (toc).
\tableofcontents % Starred version, i.e., \tableofcontents*, removes the self-entry.

% Switch to arabic numbering and start the enumeration of chapters in the table of content.
\mainmatter

% Include introduction.tex
\input{introduction.tex}

% Include methods.tex
\input{methods.tex}

% Include defenses.tex
\input{defenses.tex}

% Include conclusion
\input{conclusion.tex}

\backmatter

% Use an optional list of figures.
\listoffigures % Starred version, i.e., \listoffigures*, removes the toc entry.

% Use an optional list of tables.
\cleardoublepage % Start list of tables on the next empty right hand page.
\listoftables % Starred version, i.e., \listoftables*, removes the toc entry.

% Use an optional list of alogrithms.

% Add an index.
\printindex

% Add a glossary.
\printglossaries

% Add a bibliography.
\bibliographystyle{plainnat}
\bibliography{references}

\end{document}
