\documentclass[twoside]{book}

% Packages required by doxygen
\usepackage{fixltx2e}
\usepackage{calc}
\usepackage{doxygen}
\usepackage{graphicx}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{multirow}
\PassOptionsToPackage{warn}{textcomp}
\usepackage{textcomp}
\usepackage[nointegrals]{wasysym}
\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}%
}
\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}}

% 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 Thu Sep 17 2015 19\+:47\+:33 for Elektra by Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Thu Sep 17 2015 19\+:47\+:33 for Elektra 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

% Hyperlinks (required, but should be loaded last)
\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex,pagebackref=true]{hyperref}
\else
  \usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
  colorlinks=true,%
  linkcolor=blue,%
  citecolor=blue,%
  unicode%
}

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


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

\begin{document}

% Titlepage & ToC
\hypersetup{pageanchor=false,
             bookmarks=true,
             bookmarksnumbered=true,
             pdfencoding=unicode
            }
\pagenumbering{roman}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
{\Large Elektra \\[1ex]\large 0.\+8.\+13 }\\
\vspace*{1cm}
{\large Generated by Doxygen 1.8.8}\\
\vspace*{0.5cm}
{\small Thu Sep 17 2015 19:47:33}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

%--- Begin generated contents ---
\chapter{The Elektra A\+P\+I}
\label{index}\hypertarget{index}{}\input{index}
\chapter{Deprecated List}
\label{deprecated}
\hypertarget{deprecated}{}
\input{deprecated}
\chapter{Module Index}
\input{modules}
\chapter{Namespace Index}
\input{namespaces}
\chapter{Hierarchical Index}
\input{hierarchy}
\chapter{Data Structure Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Module Documentation}
\input{group__api}
\include{group__kdb}
\include{group__key}
\include{group__keyset}
\include{group__meta}
\include{group__keymeta}
\include{group__keytest}
\include{group__keyname}
\include{group__plugin}
\include{group__proposal}
\include{group__keyvalue}
\chapter{Namespace Documentation}
\input{namespacekdb}
\input{namespacekdb_1_1tools}
\chapter{Data Structure Documentation}
\input{classkdb_1_1tools_1_1Backend}
\input{structkdb_1_1tools_1_1BackendInfo}
\input{classkdb_1_1tools_1_1Backends}
\input{structkdb_1_1Command}
\input{classkdb_1_1Context}
\input{classkdb_1_1ContextPolicyIs}
\input{classkdb_1_1Coordinator}
\input{classkdb_1_1DefaultGetPolicy}
\input{classkdb_1_1DefaultSetPolicy}
\input{classkdb_1_1Discriminator}
\input{classkdb_1_1GetPolicyIs}
\input{classkdb_1_1KDB}
\input{classkdb_1_1Key}
\input{classkdb_1_1KeySet}
\input{classkdb_1_1KeySetIterator}
\input{classkdb_1_1KeySetReverseIterator}
\input{classkdb_1_1Layer}
\input{classkdb_1_1LockPolicyIs}
\input{classkdb_1_1tools_1_1Modules}
\input{classkdb_1_1NameIterator}
\input{classkdb_1_1NameReverseIterator}
\input{classkdb_1_1none__t}
\input{classkdb_1_1ObserverPolicyIs}
\input{structkdb_1_1PerContext}
\input{classkdb_1_1tools_1_1Plugin}
\input{classkdb_1_1tools_1_1Plugins}
\input{classkdb_1_1SetPolicyIs}
\input{classkdb_1_1ThreadSubject}
\input{structkdb_1_1tools_1_1ToolException}
\input{structkdb_1_1Va}
\input{classkdb_1_1ValueObserver}
\input{classkdb_1_1WritePolicyIs}
\chapter{File Documentation}
\input{automergeconfiguration_8hpp}
\input{automergestrategy_8cpp}
\input{automergestrategy_8hpp}
\input{src_2backend_8cpp}
\input{backend_8hpp}
\input{backends_8hpp}
\input{comparison_8cpp}
\input{comparison_8hpp}
\input{importmergeconfiguration_8hpp}
\input{interactivemergestrategy_8cpp}
\input{interactivemergestrategy_8hpp}
\input{kdbplugin_8hpp}
\input{keyhelper_8cpp}
\input{keyhelper_8hpp}
\input{mergeconfiguration_8hpp}
\input{mergeconflict_8hpp}
\input{mergeconflictstrategy_8cpp}
\input{mergeconflictstrategy_8hpp}
\input{mergeresult_8cpp}
\input{mergeresult_8hpp}
\input{mergetask_8hpp}
\input{mergetestutils_8cpp}
\input{metamergestrategy_8cpp}
\input{metamergestrategy_8hpp}
\input{modules_8cpp}
\input{modules_8hpp}
\input{newkeystrategy_8cpp}
\input{newkeystrategy_8hpp}
\input{onesidemergeconfiguration_8hpp}
\input{onesidestrategy_8cpp}
\input{onesidestrategy_8hpp}
\input{onesidevaluestrategy_8cpp}
\input{overwritemergeconfiguration_8hpp}
\input{plugin_8cpp}
\input{plugin_8hpp}
\input{plugins_8cpp}
\input{plugins_8hpp}
\input{proposal_8c}
\input{testtool__automergestrategy_8cpp}
\input{testtool__backend_8cpp}
\input{testtool__comparison_8cpp}
\input{testtool__keyhelper_8cpp}
\input{testtool__mergecases_8cpp}
\input{testtool__mergeresult_8cpp}
\input{testtool__metamergestrategy_8cpp}
\input{testtool__newkeystrategy_8cpp}
\input{testtool__onesidestrategy_8cpp}
\input{testtool__samemountpoint_8cpp}
\input{testtool__umount_8cpp}
\input{threewaymerge_8cpp}
\input{threewaymerge_8hpp}
\input{toolexcept_8hpp}
%--- End generated contents ---

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

\end{document}
