\documentclass[%
  a4paper,%                                        % DIN A4
  oneside,%                                        % einseitiger Druck
  12pt,%                                           % 12pt Schriftgröße
]{article}

\usepackage[utf8]{inputenc}

% include required packages
\usepackage{url}
\usepackage{array}
\usepackage{color}
\usepackage{listings}
\usepackage{xspace}
\usepackage{tabularx}
\usepackage{hyperref}
\usepackage{fancyhdr}
\usepackage{multicol}

% HTML compilation
\usepackage{hevea}

% font setup
\usepackage{cmbright}
\usepackage{txfonts}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}

% par. settings
\parindent 0pt
\parskip 8pt

\pretolerance=150
\tolerance=500
\hbadness=752

\definecolor{blue}{rgb}{0,0,1}
\definecolor{violet}{rgb}{0.5,0,0.5}

\definecolor{darkred}{rgb}{0.5,0,0}
\definecolor{darkblue}{rgb}{0,0,0.5}
\definecolor{darkgreen}{rgb}{0,0.5,0}

\pagenumbering{arabic}

\input{variables}

\title{%
%BEGIN LATEX
\libtitle
%END LATEX
\libsubtitle}

\author{Dominik Charousset}

\date{\today}

% page setup
\setlength{\voffset}{-0.5in}
\setlength{\hoffset}{-0.5in}
\addtolength{\textwidth}{1in}
\addtolength{\textheight}{1.5in}
\setlength{\headheight}{15pt}

% some HEVEA / HTML style sheets
\newstyle{body}{width:600px;margin:auto;padding-top:20px;text-align: justify;}

% more compact itemize
\newenvironment{itemize*}%
  {\begin{itemize}%
    \setlength{\itemsep}{0pt}%
    \setlength{\parskip}{0pt}}%
  {\end{itemize}}

\begin{document}

% fancy header setup
%BEGIN LATEX
\fancypagestyle{plain}{%
\fancyhf{} % clear all header and footer fields
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
}
%END LATEX

\maketitle
\clearpage
\pagestyle{empty}
\tableofcontents
\clearpage

% fancy header setup for page 1
%BEGIN LATEX
\setcounter{page}{1}
\pagenumbering{arabic}
\pagestyle{fancy}
\fancyhead[L,R]{}
\fancyhead[C]{\leftmark}
\renewcommand{\sectionmark}[1]{%
\markboth{\MakeUppercase{#1}}{}%
}
%END LATEX

% code listings setup
\lstset{%
  language=C++,%
  morekeywords={constexpr,nullptr,size_t,uint32_t,assert,override,final},%
  basicstyle=\ttfamily\small,%
  sensitive=true,%
  keywordstyle=\color{blue},%
  stringstyle=\color{darkgreen},%
  commentstyle=\color{violet},%
  showstringspaces=false,%
  tabsize=4,%
  numberstyle=\footnotesize%
}

% content
\include{Introduction}
\include{FirstSteps}
\include{PatternMatching}
\include{Actors}
\include{SendingMessages}
\include{ReceivingMessages}
\include{SynchronousMessages}
\include{ActorManagement}
\include{SpawningActors}
\include{MessagePriorities}
\include{NetworkTransparency}
\include{NetworkIO}
\include{GroupCommunication}
\include{ManagingGroupsOfWorkers}
\include{ActorCompanions}
\include{TypeSystem}
\include{BlockingAPI}
\include{StronglyTypedActors}
\include{Messages}
\include{CommonPitfalls}
\include{Appendix}

\end{document}
