\documentclass[twoside]{book}

% Packages required by doxygen
\usepackage{calc}
\usepackage{doxygen}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{multirow}
\usepackage{textcomp}
\usepackage[table]{xcolor}

% Font selection
\usepackage[T1]{fontenc}
\usepackage{mathptmx}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage{amssymb}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\allsectionsfont{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\renewcommand{\DoxyLabelFont}{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}

% Page & text layout
\usepackage{geometry}
\geometry{%
  a4paper,%
  top=2.5cm,%
  bottom=2.5cm,%
  left=2.5cm,%
  right=2.5cm%
}
\tolerance=750
\hfuzz=15pt
\hbadness=750
\setlength{\emergencystretch}{15pt}
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.2cm}
\makeatletter
\renewcommand{\paragraph}{%
  \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@parafont%
  }%
}
\renewcommand{\subparagraph}{%
  \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@subparafont%
  }%
}
\makeatother

% Headers & footers
\usepackage{fancyhdr}
\pagestyle{fancyplain}
\fancyhead[LE]{\fancyplain{}{\bfseries\thepage}}
\fancyhead[CE]{\fancyplain{}{}}
\fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}}
\fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}}
\fancyhead[CO]{\fancyplain{}{}}
\fancyhead[RO]{\fancyplain{}{\bfseries\thepage}}
\fancyfoot[LE]{\fancyplain{}{}}
\fancyfoot[CE]{\fancyplain{}{}}
\fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated on Fri Dec 2 2016 12\-:34\-:45 for Marlin\-Kinfit by Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Fri Dec 2 2016 12\-:34\-:45 for Marlin\-Kinfit by Doxygen }}
\fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{}}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\chaptermark}[1]{%
  \markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
  \markright{\thesection\ #1}%
}

% Indices & bibliography
\usepackage{natbib}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\makeindex

% Custom commands
\newcommand{\clearemptydoublepage}{%
  \newpage{\pagestyle{empty}\cleardoublepage}%
}


%===== C O N T E N T S =====

\begin{document}

% Titlepage & ToC
\pagenumbering{roman}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
{\Large Marlin\-Kinfit \\[1ex]\large 0.\-4.\-0 }\\
\vspace*{1cm}
{\large Generated by Doxygen 1.8.6}\\
\vspace*{0.5cm}
{\small Fri Dec 2 2016 12:34:45}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}

%--- Begin generated contents ---
\chapter{Marlin\-Kinfit}
\label{kinfit}
\input{kinfit}
\chapter{Hierarchical Index}
\input{hierarchy}
\chapter{Class Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Class Documentation}
\input{classBaseConstraint}
\input{classBaseDefs}
\input{classBaseEvent}
\input{classBaseFitObject}
\input{classBaseFitter}
\input{classBaseHardConstraint}
\input{classBaseJetPairing}
\input{classBaseSoftConstraint}
\input{classBaseTracer}
\input{classFourJetPairing}
\input{classFourJetZHPairing}
\input{classISRPhotonFitObject}
\input{classJBLHelix}
\input{classJetFitObject}
\input{classLeptonFitObject}
\input{classMassConstraint}
\input{classMomentumConstraint}
\input{classNeutrinoFitObject}
\input{classNewFitterGSL}
\input{classNewtonFitterGSL}
\input{classOPALFitterGSL}
\input{classParticleConstraint}
\input{classParticleFitObject}
\input{classSimplePhotonFitObject}
\input{classSoftGaussMassConstraint}
\input{classSoftGaussMomentumConstraint}
\input{classSoftGaussParticleConstraint}
\input{classTextTracer}
\input{classThreeVector}
\input{classTrackConstraint}
\input{structVertexFitObject_1_1TrackDescriptor}
\input{classTrackParticleFitObject}
\input{classTwoB4JPairing}
\input{classTwoVector}
\input{classVertexConstraint}
\input{classVertexFitObject}
\input{classZinvisibleFitObject}
\chapter{File Documentation}
\input{BaseConstraint_8cc}
\input{BaseConstraint_8h}
\input{BaseEvent_8h}
\input{BaseFitObject_8cc}
\input{BaseFitObject_8h}
\input{BaseFitter_8cc}
\input{BaseFitter_8h}
\input{BaseHardConstraint_8cc}
\input{BaseHardConstraint_8h}
\input{BaseJetPairing_8h}
\input{BaseSoftConstraint_8cc}
\input{BaseSoftConstraint_8h}
\input{BaseTracer_8cc}
\input{BaseTracer_8h}
\input{FourJetPairing_8h}
\input{FourVector_8h}
\input{ISRPhotonFitObject_8cc}
\input{IterationScanner_8cc}
\input{IterationScanner_8h}
\input{JBLHelix_8cc}
\input{JBLHelix_8h}
\input{JetFitObject_8cc}
\input{JetFitObject_8h}
\input{LeptonFitObject_8cc}
\input{LeptonFitObject_8h}
\input{MassConstraint_8cc}
\input{MassConstraint_8h}
\input{MomentumConstraint_8cc}
\input{MomentumConstraint_8h}
\input{NewFitterGSL_8cc}
\input{NewFitterGSL_8h}
\input{NewtonFitterGSL_8cc}
\input{NewtonFitterGSL_8h}
\input{OPALFitterGSL_8cc}
\input{OPALFitterGSL_8h}
\input{ParameterScanner_8cc}
\input{ParameterScanner_8h}
\input{ParticleConstraint_8cc}
\input{ParticleConstraint_8h}
\input{ParticleFitObject_8cc}
\input{ParticleFitObject_8h}
\input{RootTracer_8cc}
\input{RootTracer_8h}
\input{SimplePhotonFitObject_8cc}
\input{SoftBWMassConstraint_8cc}
\input{SoftBWMassConstraint_8h}
\input{SoftBWParticleConstraint_8cc}
\input{SoftBWParticleConstraint_8h}
\input{SoftGaussMassConstraint_8cc}
\input{SoftGaussMassConstraint_8h}
\input{SoftGaussMomentumConstraint_8cc}
\input{SoftGaussMomentumConstraint_8h}
\input{SoftGaussParticleConstraint_8cc}
\input{SoftGaussParticleConstraint_8h}
\input{TextTracer_8cc}
\input{TextTracer_8h}
\input{TrackConstraint_8h}
\input{TrackParticleFitObject_8cc}
\input{TrackParticleFitObject_8h}
\input{VertexConstraint_8h}
\input{VertexFitObject_8cc}
\input{VertexFitObject_8h}
\input{ZinvisibleFitObject_8cc}
\input{ZinvisibleFitObject_8h}
%--- End generated contents ---

% Index
\newpage
\phantomsection
\addcontentsline{toc}{chapter}{Index}
\printindex

\end{document}
