\documentclass[twoside]{book}

% Packages required by doxygen
\usepackage{fixltx2e}
\usepackage{calc}
\usepackage{doxygen}
\usepackage[export]{adjustbox} % also loads graphicx
\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[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 Wed Jun 3 2015 12\+:50\+:26 for N\+L\+S\+L by Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated on Wed Jun 3 2015 12\+:50\+:26 for N\+L\+S\+L 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 N\+L\+S\+L }\\
\vspace*{1cm}
{\large Generated by Doxygen 1.8.9.1}\\
\vspace*{0.5cm}
{\small Wed Jun 3 2015 12:50:26}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

%--- Begin generated contents ---
\chapter{Modules Index}
\input{namespaces}
\chapter{Data Type Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Module Documentation}
\input{namespacebasis}
\input{namespacebincom}
\input{namespace_b_l05_c_h_s_a}
\input{namespacec16pc371e}
\input{namespacedfunc}
\input{namespaceeprmat}
\input{namespaceeprprm}
\input{namespaceerrmsg}
\input{namespaceexpdat}
\input{namespaceftwork}
\input{namespaceiterat}
\input{namespacelmcom}
\input{namespacelpnam}
\input{namespacemaxl}
\input{namespacemspctr}
\input{namespacemtsdef}
\input{namespacenlsdim}
\input{namespacenlsnam}
\input{namespaceparcom}
\input{namespaceparsav}
\input{namespacephyscn}
\input{namespacepidef}
\input{namespacernddbl}
\input{namespacestdio}
\input{namespacesymdef}
\input{namespacetimer}
\input{namespacetridag}
\chapter{Data Type Documentation}
\input{unionfpdatum}
\input{unioni4__datum}
\input{structwstruct}
\input{structxarry}
\chapter{File Documentation}
\input{addprm_8f90}
\input{anxlk_8f90}
\input{assgnc_8f90}
\input{basis_8f90}
\input{basisc_8f90}
\input{bessel_8f90}
\input{bincom_8f90}
\input{_b_l05_c_h_s_a_8py}
\input{brent_8f90}
\input{c16pc371e_8py}
\input{caldlm_8f90}
\input{catch_8c}
\input{ccrints_8f90}
\input{cd2km_8f90}
\input{cfs_8f90}
\input{cgltri_8f90}
\input{confc_8f90}
\input{convtc_8f90}
\input{correl_8f90}
\input{covar_8f90}
\input{covrpt_8f90}
\input{cscg_8f90}
\input{datac_8f90}
\input{daxpy_8f90}
\input{dchex_8f90}
\input{dcopy_8f90}
\input{ddot_8f90}
\input{dfunc_8f90}
\input{drotg_8f90}
\input{dtime_8c}
\input{enorm_8f90}
\input{eprls_8f90}
\input{eprmat_8f90}
\input{eprprm_8f90}
\input{errmsg_8f90}
\input{expdat_8f90}
\input{fitc_8f90}
\input{fitl_8f90}
\input{fixc_8f90}
\input{fmomnt_8f90}
\input{fortrancall_8h}
\input{ftfuns_8f90}
\input{ftwork_8f90}
\input{fz_8f90}
\input{gconvl_8f90}
\input{genio_8c}
\input{getdat_8f90}
\input{helpc_8f90}
\input{ipar_8f90}
\input{ipsfind_8f90}
\input{iterat_8f90}
\input{l1pfun_8f90}
\input{lbasix_8f90}
\input{lcheck_8f90}
\input{letc_8f90}
\input{lfun_8f90}
\input{lgrint_8f90}
\input{lmcom_8f90}
\input{lmnls_8f90}
\input{lmpar_8f90}
\input{lpnam_8f90}
\input{lprmpt_8c}
\input{matrll_8f90}
\input{maxl_8f90}
\input{mnbrak_8f90}
\input{momdls_8f90}
\input{mspctr_8f90}
\input{mtsdef_8f90}
\input{nlsdim_8f90}
\input{nlsl_8f90}
\input{nlsnam_8f90}
\input{ordrpr_8f90}
\input{parc_8f90}
\input{parcom_8f90}
\input{parsav_8f90}
\input{physcn_8f90}
\input{pidef_8f90}
\input{plgndr_8f90}
\input{pltx_8c}
\input{pltx__dummy_8c}
\input{pmatrl_8f90}
\input{pstvec_8f90}
\input{qrfac_8f90}
\input{qrsolv_8f90}
\input{qrutil_8f90}
\input{rmvprm_8f90}
\input{rnddbl_8f90}
\input{scalec_8f90}
\input{scmvm_8f90}
\input{series_8f90}
\input{setmts_8f90}
\input{setnm_8f90}
\input{setprm_8f90}
\input{setspc_8f90}
\input{shiftc_8f90}
\input{sitec_8f90}
\input{srchc_8f90}
\input{sscale_8f90}
\input{sshift_8f90}
\input{statc_8f90}
\input{stats_8f90}
\input{stdio_8f90}
\input{strutl1_8f90}
\input{strutl2_8f90}
\input{stvect_8f90}
\input{symdef_8f90}
\input{tdchek_8f90}
\input{tdsqz_8f90}
\input{tensym_8f90}
\input{testmods_8f90}
\input{timer_8f90}
\input{tridag_8f90}
\input{varyc_8f90}
\input{w3j_8f90}
\input{writec_8f90}
\input{writr_8f90}
\input{zaxpy_8f90}
\input{zaypx_8f90}
\input{zdotu_8f90}
%--- End generated contents ---

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

\end{document}
