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

% NLS support packages
platex
% 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

% 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 S\+P\+ML ライブラリ \\[1ex]\large 1.\+0.\+0 }\\
\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{spml -\/-\/ a Fortran 90 library for spectral model based on ispack and gtool5}
\label{index}\hypertarget{index}{}\input{index}
\chapter{C\+O\+P\+Y\+R\+I\+G\+HT}
\label{COPYRIGHT}
\Hypertarget{COPYRIGHT}
\input{COPYRIGHT}
\chapter{spml library installation guide}
\label{INSTALL}
\Hypertarget{INSTALL}
\input{INSTALL}
\chapter{Namespace Index}
\input{namespaces}
\chapter{File Index}
\input{files}
\chapter{Namespace Documentation}
\input{namespaceae__module}
\input{namespaceat__module}
\input{namespaceee__mpi__module}
\input{namespaceeigmatrix}
\input{namespaceet__module}
\input{namespacetee__mpi__module}
\input{namespaceua__mpi__module}
\input{namespaceua__mpi__module__base}
\input{namespaceua__mpi__module__deriv}
\input{namespaceua__mpi__module__integral}
\input{namespaceua__mpi__module__interpolate}
\input{namespaceua__mpi__module__spectrum}
\input{namespaceut__mpi__module}
\input{namespacew__module}
\input{namespacew__module__base}
\input{namespacew__module__deriv}
\input{namespacew__module__integral}
\input{namespacew__module__interpolate}
\input{namespacew__module__spectrum}
\input{namespacew__mpi__module}
\input{namespacew__mpi__module__base}
\input{namespacew__mpi__module__deriv}
\input{namespacew__mpi__module__integral}
\input{namespacew__mpi__module__interpolate}
\input{namespacew__mpi__module__spectrum}
\input{namespacew__wave__module}
\input{namespacew__wave__module__base}
\input{namespacew__wave__module__deriv}
\input{namespacew__wave__module__interpolate}
\input{namespacewa__module}
\input{namespacewa__module__base}
\input{namespacewa__module__deriv}
\input{namespacewa__module__integral}
\input{namespacewa__module__interpolate}
\input{namespacewa__module__spectrum}
\input{namespacewa__wave__module}
\input{namespacewa__wave__module__base}
\input{namespacewa__wave__module__deriv}
\input{namespacewa__wave__module__interpolate}
\input{namespacewb__mpi__module}
\input{namespacewb__mpi__module__base}
\input{namespacewb__mpi__module__deriv}
\input{namespacewb__mpi__module__integral}
\input{namespacewb__mpi__module__interpolate}
\input{namespacewb__mpi__module__spectrum}
\input{namespacewt__wave__module}
\chapter{File Documentation}
\input{COPYRIGHT_8md}
\input{INSTALL_8md}
\input{README_8md}
\input{ae__module_8f90}
\input{at__module_8f90}
\input{ee__mpi__module_8f90}
\input{et__module_8f90}
\input{tee__mpi__module_8f90}
\input{ua__mpi__module_8f90}
\input{ua__mpi__module__base_8f90}
\input{ua__mpi__module__deriv_8f90}
\input{ua__mpi__module__integral_8f90}
\input{ua__mpi__module__interpolate_8f90}
\input{ua__mpi__module__spectrum_8f90}
\input{ut__mpi__module_8f90}
\input{dlgamma_8f90}
\input{eigmatrix_8f90}
\input{w__module_8f90}
\input{w__module__base_8f90}
\input{w__module__deriv_8f90}
\input{w__module__integral_8f90}
\input{w__module__interpolate_8f90}
\input{w__module__spectrum_8f90}
\input{w__mpi__module_8f90}
\input{w__mpi__module__base_8f90}
\input{w__mpi__module__deriv_8f90}
\input{w__mpi__module__integral_8f90}
\input{w__mpi__module__interpolate_8f90}
\input{w__mpi__module__spectrum_8f90}
\input{w__wave__module_8f90}
\input{w__wave__module__base_8f90}
\input{w__wave__module__deriv_8f90}
\input{w__wave__module__interpolate_8f90}
\input{wa__module_8f90}
\input{wa__module__base_8f90}
\input{wa__module__deriv_8f90}
\input{wa__module__integral_8f90}
\input{wa__module__interpolate_8f90}
\input{wa__module__spectrum_8f90}
\input{wa__wave__module_8f90}
\input{wa__wave__module__base_8f90}
\input{wa__wave__module__deriv_8f90}
\input{wa__wave__module__interpolate_8f90}
\input{wb__mpi__module_8f90}
\input{wb__mpi__module__base_8f90}
\input{wb__mpi__module__deriv_8f90}
\input{wb__mpi__module__integral_8f90}
\input{wb__mpi__module__interpolate_8f90}
\input{wb__mpi__module__spectrum_8f90}
\input{wt__wave__module_8f90}
%--- End generated contents ---

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

\end{document}
