\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}{3ex plus 2ex minus 2ex}
\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 by Doxygen }}
\fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated 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

% Packages requested by user
\usepackage{amsmath}
\usepackage{amstext}

% 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}%
}

\usepackage{caption}
\captionsetup{labelsep=space,justification=centering,font={bf},singlelinecheck=off,skip=4pt,position=top}

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

\begin{document}

% Titlepage & ToC
\hypersetup{pageanchor=false,
             bookmarksnumbered=true,
             pdfencoding=unicode
            }
\pagenumbering{alph}
\begin{titlepage}
\vspace*{7cm}
\begin{center}%
{\Large M\+O\+M6 }\\
\vspace*{1cm}
{\large Generated by Doxygen 1.8.13}\\
\end{center}
\end{titlepage}
\clearemptydoublepage
\pagenumbering{roman}
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\hypersetup{pageanchor=true}

%--- Begin generated contents ---
\chapter{A\+LE}
\label{ALE}
\Hypertarget{ALE}
\input{ALE}
\chapter{A\+LE Timestep}
\label{ALE_Timestep}
\Hypertarget{ALE_Timestep}
\input{ALE_Timestep}
\chapter{Baroclinic Momentum Equations}
\label{Baroclinic_Momentum_Equations}
\Hypertarget{Baroclinic_Momentum_Equations}
\input{Baroclinic_Momentum_Equations}
\chapter{Barotropic-\/\+Baroclinic Coupling}
\label{Barotropic_Baroclinic_Coupling}
\Hypertarget{Barotropic_Baroclinic_Coupling}
\input{Barotropic_Baroclinic_Coupling}
\chapter{Barotropic Momentum Equations}
\label{Barotropic_Momentum_Equations}
\Hypertarget{Barotropic_Momentum_Equations}
\input{Barotropic_Momentum_Equations}
\chapter{Discrete Coriolis Term}
\label{Discrete_Coriolis}
\Hypertarget{Discrete_Coriolis}
\input{Discrete_Coriolis}
\chapter{Discrete Horizontal and Vertical Grids}
\label{Discrete_Grids}
\Hypertarget{Discrete_Grids}
\input{Discrete_Grids}
\chapter{Discrete Open Boundary Conditions}
\label{Discrete_OBC}
\Hypertarget{Discrete_OBC}
\input{Discrete_OBC}
\chapter{Discrete Pressure Gradient Term}
\label{Discrete_PG}
\Hypertarget{Discrete_PG}
\input{Discrete_PG}
\chapter{Energetic Consistency}
\label{Energetic_Consistency}
\Hypertarget{Energetic_Consistency}
\input{Energetic_Consistency}
\chapter{Finite Difference Operators}
\label{Finite_Difference_Operators}
\Hypertarget{Finite_Difference_Operators}
\input{Finite_Difference_Operators}
\chapter{General coordinate equations}
\label{General_Coordinate}
\Hypertarget{General_Coordinate}
\input{General_Coordinate}
\chapter{Governing Equations}
\label{Governing_Equations}
\Hypertarget{Governing_Equations}
\input{Governing_Equations}
\chapter{Notation for equations}
\label{Notation}
\Hypertarget{Notation}
\input{Notation}
\chapter{P\+PM Advection Scheme}
\label{PPM}
\Hypertarget{PPM}
\input{PPM}
\chapter{Sea Ice Considerations}
\label{Sea_Ice}
\Hypertarget{Sea_Ice}
\input{Sea_Ice}
\chapter{Solar Radiation}
\label{Solar_Radiation}
\Hypertarget{Solar_Radiation}
\input{Solar_Radiation}
\chapter{Specifics}
\label{Specifics}
\Hypertarget{Specifics}
\input{Specifics}
\chapter{Filtering Timesteps}
\label{Time_Filtering}
\Hypertarget{Time_Filtering}
\input{Time_Filtering}
\chapter{Equation of State}
\label{Equation_of_State}
\Hypertarget{Equation_of_State}
\input{Equation_of_State}
\chapter{Diagnostics}
\label{Diagnostics}
\Hypertarget{Diagnostics}
\input{Diagnostics}
\chapter{Domain Decomposition}
\label{Domain_Decomposition}
\Hypertarget{Domain_Decomposition}
\input{Domain_Decomposition}
\chapter{Global Orthogonal Grids}
\label{Global_Grids}
\Hypertarget{Global_Grids}
\input{Global_Grids}
\chapter{Horizontal indexing and memory}
\label{Horizontal_Indexing}
\Hypertarget{Horizontal_Indexing}
\input{Horizontal_Indexing}
\chapter{Parallel I/O}
\label{Parallel_IO}
\Hypertarget{Parallel_IO}
\input{Parallel_IO}
\chapter{Regional Orthogonal Grids}
\label{Regional_Grids}
\Hypertarget{Regional_Grids}
\input{Regional_Grids}
\chapter{Run-\/time Parameter System}
\label{Runtime_Parameter_System}
\Hypertarget{Runtime_Parameter_System}
\input{Runtime_Parameter_System}
\chapter{Testing}
\label{Testing}
\Hypertarget{Testing}
\input{Testing}
\chapter{Vertical Orthogonal Grids}
\label{Vertical_Grids}
\Hypertarget{Vertical_Grids}
\input{Vertical_Grids}
\chapter{The K-\/\+Profile Parameterization}
\label{CVMix_KPP}
\Hypertarget{CVMix_KPP}
\input{CVMix_KPP}
\chapter{Tracer Advection}
\label{Tracer_Advection}
\Hypertarget{Tracer_Advection}
\input{Tracer_Advection}
\chapter{Discrete Tracer Transport Equations}
\label{Discrete_Tracer}
\Hypertarget{Discrete_Tracer}
\input{Discrete_Tracer}
\chapter{Horizontal Diffusion}
\label{Horizontal_Diffusion}
\Hypertarget{Horizontal_Diffusion}
\input{Horizontal_Diffusion}
\chapter{Passive and Other User-\/defined Tracers}
\label{Passive_Tracers}
\Hypertarget{Passive_Tracers}
\input{Passive_Tracers}
\chapter{Tracer Fluxes}
\label{Tracer_Fluxes}
\Hypertarget{Tracer_Fluxes}
\input{Tracer_Fluxes}
\chapter{Tracer Timestep}
\label{Tracer_Timestep}
\Hypertarget{Tracer_Timestep}
\input{Tracer_Timestep}
\chapter{Tracer Transport Equations}
\label{Tracer_Transport_Equations}
\Hypertarget{Tracer_Transport_Equations}
\input{Tracer_Transport_Equations}
\chapter{Vertical Diffusion}
\label{Vertical_Diffusion}
\Hypertarget{Vertical_Diffusion}
\input{Vertical_Diffusion}
\chapter{Modules Index}
\input{namespaces}
\chapter{Data Type Index}
\input{annotated}
\chapter{File Index}
\input{files}
\chapter{Module Documentation}
\input{namespacemom}
\input{namespacemom__ale}
\input{namespacemom__eos}
\input{namespacemom__ice__shelf}
\input{namespacemom__meke}
\input{namespacemom__unit__scaling}
\chapter{Data Type Documentation}
\input{structmom__ale_1_1ale__cs}
\input{interfacemom__eos_1_1calculate__compress}
\input{interfacemom__eos_1_1calculate__density}
\input{interfacemom__eos_1_1calculate__density__derivs}
\input{interfacemom__eos_1_1calculate__density__second__derivs}
\input{interfacemom__eos_1_1calculate__spec__vol}
\input{interfacemom__eos_1_1calculate__specific__vol__derivs}
\input{interfacemom__eos_1_1calculate__tfreeze}
\input{structmom__eos_1_1eos__type}
\input{structmom__ice__shelf_1_1ice__shelf__cs}
\input{structmom__meke_1_1meke__cs}
\input{structmom_1_1mom__control__struct}
\input{structmom_1_1mom__diag__ids}
\input{structmom__unit__scaling_1_1unit__scale__type}
\chapter{File Documentation}
\input{__ALE_8dox}
\input{__ALE__timestep_8dox}
\input{MOM__ALE_8F90}
\input{MOM__ALE_8F90_source}
\input{__Baroclinic__Momentum_8dox}
\input{__Barotropic__Baroclinic__Coupling_8dox}
\input{__Barotropic__Momentum_8dox}
\input{__Discrete__Coriolis_8dox}
\input{__Discrete__grids_8dox}
\input{__Discrete__OBC_8dox}
\input{__Discrete__PG_8dox}
\input{__Energetic__consistancy_8dox}
\input{__Finite__difference_8dox}
\input{__General__coordinate_8dox}
\input{__Governing_8dox}
\input{__Notation_8dox}
\input{__PPM_8dox}
\input{__Sea__ice_8dox}
\input{__Solar__radiation_8dox}
\input{__Specifics_8dox}
\input{__Time__Filter_8dox}
\input{MOM_8F90}
\input{MOM_8F90_source}
\input{__Equation__of__State_8dox}
\input{MOM__EOS_8F90}
\input{MOM__EOS_8F90_source}
\input{__Diagnostics_8dox}
\input{__Domain__decomposition_8dox}
\input{__Global__grids_8dox}
\input{__Horizontal__indexing_8dox}
\input{__Parallel__IO_8dox}
\input{__Regional__grids_8dox}
\input{__Runtime__parameter__system_8dox}
\input{__Testing_8dox}
\input{__Vertical__grids_8dox}
\input{MOM__unit__scaling_8F90}
\input{MOM__unit__scaling_8F90_source}
\input{MOM__ice__shelf_8F90}
\input{MOM__ice__shelf_8F90_source}
\input{MOM__MEKE_8F90}
\input{MOM__MEKE_8F90_source}
\input{__CVMix__KPP_8dox}
\input{__Advection_8dox}
\input{__Discrete__tracer_8dox}
\input{__Horizontal__diffusion_8dox}
\input{__Passive__tracer_8dox}
\input{__Tracer__fluxes_8dox}
\input{__Tracer__timestep_8dox}
\input{__Tracer__Transport_8dox}
\input{__Vertical__diffusion_8dox}
%--- End generated contents ---

% Bibliography
\newpage
\phantomsection
\bibliographystyle{plain}
\bibliography{bibTmpFile_1,bibTmpFile_2,bibTmpFile_3}
\addcontentsline{toc}{chapter}{Bibliography}

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

\end{document}
