\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 Mon Jan 12 2015 16:13:26 for dvi2bitmap by Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Mon Jan 12 2015 16:13:26 for dvi2bitmap 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}
\pagenumbering{roman}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
{\Large dvi2bitmap \\[1ex]\large dvi2bitmap1.\-0 }\\
\vspace*{1cm}
{\large Generated by Doxygen 1.8.4}\\
\vspace*{0.5cm}
{\small Mon Jan 12 2015 16:13:26}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

%--- Begin generated contents ---
\chapter{Dvi2\-Bitmap library}
\label{index}\hypertarget{index}{}\input{index}
\chapter{dvi2bitmap}
\label{md_README}
\hypertarget{md_README}{}
\input{md_README}
\chapter{Namespace Index}
\input{namespaces}
\chapter{Hierarchical Index}
\input{hierarchy}
\chapter{Class Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Namespace Documentation}
\input{namespacekpse}
\input{namespacePipeStreamSignalHandling}
\input{namespaceUtil}
\chapter{Class Documentation}
\input{classBitmap}
\input{structbitmap__info}
\input{structBitmap_1_1BitmapColour__s}
\input{classBitmapError}
\input{classBitmapImage}
\input{classBitmap_1_1const__iterator}
\input{classDviFile_1_1FontSet_1_1const__iterator}
\input{classDviBug}
\input{classDviError}
\input{classDviFile}
\input{classDviFileEvent}
\input{classDviFileFontChange}
\input{classDviFilePage}
\input{classDviFilePosition}
\input{classDviFilePostamble}
\input{classDviFilePreamble}
\input{classDviFileSetChar}
\input{classDviFileSetRule}
\input{classDviFileSpecial}
\input{classFileByteStream}
\input{classDviFile_1_1FontSet}
\input{classGIFBitmap}
\input{classInputByteStream}
\input{classInputByteStreamError}
\input{classKarlPathSearcher}
\input{structoption}
\input{classPageRange}
\input{classPipeStream}
\input{classPkError}
\input{classPkFont}
\input{classPkGlyph}
\input{classPkRasterdata}
\input{classPNGBitmap}
\input{structPipeStreamSignalHandling_1_1process__status}
\input{classXBMBitmap}
\input{classXPMBitmap}
\chapter{File Documentation}
\input{Bitmap_8cc}
\input{Bitmap_8h}
\input{BitmapImage_8cc}
\input{BitmapImage_8h}
\input{Byte_8h}
\input{config_8h}
\input{doxygen-package_8html}
\input{dvi2bitmap_8cc}
\input{DviError_8cc}
\input{DviError_8h}
\input{DviFile_8cc}
\input{DviFile_8h}
\input{DviFilePosition_8cc}
\input{DviFilePosition_8h}
\input{dvireport_8cc}
\input{FileByteStream_8cc}
\input{FileByteStream_8h}
\input{getopt__long_8c}
\input{getopt__long_8h}
\input{getsubopt_8c}
\input{GIFBitmap_8cc}
\input{GIFBitmap_8h}
\input{InputByteStream_8cc}
\input{InputByteStream_8h}
\input{KarlPathSearcher_8cc}
\input{KarlPathSearcher_8h}
\input{PageRange_8cc}
\input{PageRange_8h}
\input{PipeStream_8cc}
\input{PipeStream_8h}
\input{PkFont_8cc}
\input{PkFont_8h}
\input{PNGBitmap_8cc}
\input{PNGBitmap_8h}
\input{README_8md}
\input{stringstream_8h}
\input{Util_8cc}
\input{Util_8h}
\input{verbosity_8h}
\input{version_8h}
\input{XBMBitmap_8cc}
\input{XBMBitmap_8h}
\input{XPMBitmap_8cc}
\input{XPMBitmap_8h}
%--- End generated contents ---

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

\end{document}
