%%
%% This is file `kaucollectiontemplate.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% kauthesis.dtx  (with options: `collectiontemplate')
%% 
%% This is a generated file.
%% 
%% Copyright (c) 2011-2014 Stefan Berthold <stefan.berthold@kau.se>
%% 
%% This file is part of the kauthesis bundle.
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status `author-maintained'.
%% 
%% The Current Maintainer and author of this work is Stefan Berthold.
%% 
%% This work consists of all files listed in manifest.txt.
%% 
%% kauthesis.dtx
%% Copyright (c) 2011-2015 Stefan Berthold <stefan.berthold@kau.se>
\documentclass{kaucollection}

%%%
% Template preamble
%%%
\usepackage{xstring}
\usepackage{scrlayer-scrpage}
\pagestyle{scrheadings}
\renewcommand*\headfont{\normalfont\small}
\rehead{\thepaper}
\lohead{\thepapertitle}
\lohead{%
  \IfStrEq{\thepapertitle}{Privacy-Preserving \& Incrementally-Deployable Support for Certificate Transparency in Tor}%
    {Privacy-Preserving \& Incrementally-Deployable Support for Certificate Transpa...}%
    {\IfStrEq{\thepapertitle}{Sauteed Onions: Transparent Associations from Domain Names to Onion Addresses}%
      {Sauteed Onions: Transparent Associations from Domain Names to Onion Add...}%
      {\thepapertitle}%
    }%
}

%%%
% Template metadata
%%%
\title{%
  On Certificate Transparency Verification and\\
  Unlinkability of Websites Visited by Tor Users
}

\author{%
  Rasmus Dahlberg
}
\institute{%
  Department of Mathematics and Computer Science
}
\place{%
  Karlstad University
}

%%%
% Thesis preamble
%%%
\usepackage[sectionbib]{natbib}
\usepackage{chapterbib}

% Better line breaks
\usepackage{microtype}

% Appendix that starts from A for each paper
\usepackage{appendix}
\renewcommand{\restoreapp}{}

% Crypto notation
\usepackage[
    lambda, advantage, operators, sets, adversary, landau, probability, notions,
    logic, ff, mm, primitives, events, complexity, asymptotics, keys
]{cryptocode}

% Tables
\usepackage{booktabs}

% Figures
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usetikzlibrary{shapes.misc,positioning,arrows,snakes}

\usepackage{rotating}

% Colors
\usepackage{color}
\usepackage{colortbl}
\definecolor{rgddTeal}{HTML}{009999}
\definecolor{rgddLime}{HTML}{809933}
\definecolor{rgddPurple}{HTML}{993380}
\definecolor{rgddRed}{HTML}{E04644}
\definecolor{rgddGreen}{HTML}{008000}
\definecolor{rgddBlue}{HTML}{2809B2}
\definecolor{rgddBlack}{HTML}{000000}

% Links
\usepackage{hyperref}
\hypersetup{
  colorlinks = true,                              % Color links instead of boxes
  urlcolor   = rgddBlue,                            % Color external hyper links
  linkcolor  = rgddBlue,                                  % Color internal links
  citecolor  = rgddGreen,                                      % Color citations
}
\def\UrlBreaks{\do\/\do-}                       % More flexible line-break rules

% Code listings
\usepackage{listings}

% Theorems with s/openbox/rgddopenbox in rgddamsthm.sty to avoid package class
\usepackage{rgddamsthm}
\theoremstyle{definition}
\newtheorem{definition}{Definition}

% Command to underscore
\usepackage{stackengine}
\newcommand\barbelow[1]{\stackunder[1.2pt]{#1}{\rule{.8ex}{.075ex}}}

%%%
% Document start
%%%
\begin{document}
  \frontmatter

  \begin{abstract}
    \input{src/abstract}
  \end{abstract}

  \section*{Kring verifiering av Certificate Transparency samt länkbarhet av Tor-användare och besökta webbplatser}
  \textsc{Rasmus Dahlberg}\\
  \noindent\textit{Institutionen för matematik och datavetenskap}
  \section*{Sammanfattning}
  \input{src/sammanfattning}
  \cleardoublepage

  \begin{acknowledgements}
    \input{src/acknowledgements}
  \end{acknowledgements}

  \input{src/abbr}\addcontentsline{toc}{section}{List of Acronyms}%
  \cleardoublepage

  {
    \hypersetup{linkcolor=black}
    \listofpapers
  }
  \cleardoublepage

  \input{src/other}\addcontentsline{toc}{section}{List of Other Contributions}%
  \cleardoublepage

  {
    \hypersetup{linkcolor=black}
    \tableofcontents
  }

  \mainmatter
  \include{src/introduction/main}\setcounter{footnote}{0}
  \include{src/lwm/main}\setcounter{footnote}{0}
  \include{src/ctga/main}\setcounter{footnote}{0}
  \include{src/ctor/main}\setcounter{footnote}{0}
  \include{src/sauteed/main}\setcounter{footnote}{0}
  \include{src/cat/main}\setcounter{footnote}{0}
  \include{src/tlwo/main}\setcounter{footnote}{0}
  
\end{document}
\endinput
%%
%% End of file `kaucollectiontemplate.tex'.
