% ==============================================================================
% LaTeX header
\documentclass[a4paper]{article}


% ==============================================================================
% Packages required by doxygen
\usepackage{a4wide}
\usepackage{calc}
\usepackage{ifthen}
\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 from doxygen
\usepackage[T1]{fontenc}
\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 from doxygen
\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 from doxygen
\usepackage{fancyhdr}
\pagestyle{fancyplain}

\renewcommand{\footrulewidth}{0pt}
\lfoot{}
\rfoot{$NAME $VERSION}


% ==============================================================================
% Indices & bibliography from doxygen

\usepackage{natbib}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\makeindex

\setcounter{tocdepth}{3}


% ==============================================================================
% Hyperlinks from doxygen
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex,
            pagebackref=true,
            colorlinks=true,
            linkcolor=blue,
            unicode
           ]{hyperref}
\else
\usepackage[ps2pdf,
            pagebackref=true,
            colorlinks=true,
            linkcolor=blue,
            unicode
           ]{hyperref}
\usepackage{pspicture}
\fi


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


% ==============================================================================
% Start of body

\begin{document}
\sffamily  % Use sans serif fonts


% ==============================================================================
% Titlepage

\begin{titlepage}
   \begin{center}
      \large
      $ $  % Some whitespace as anchor
      \vspace{2cm}

      \includegraphics[width=10cm]{Logo.png}\\

      \vspace{2cm}
      Usenet Newsreader
      \vspace{2cm}

      \rule{\linewidth}{0.5mm}

      \vspace{\baselineskip}
      \vspace{0.4cm}
      \huge
      Documentation for
      \vspace{0.5cm}

      $NAME $VERSION
      \large
      \vspace{\baselineskip}

      \rule{\linewidth}{0.5mm}

      \vspace{2cm}
      Generated $DATE using
         \includegraphics[width=2cm]{Doxygen.png} and \LaTeX\\
   \end{center}
\end{titlepage}


% ==============================================================================
% Start of TOC

\pagenumbering{roman}
\tableofcontents

\pagenumbering{arabic}
\newpage


% End of header
