\documentclass[letterpaper]{book}

\input{../../DakotaDefs.tex}
%\usepackage{a4wide}
\oddsidemargin  0.25 in
\evensidemargin 0 in
\topmargin  0 in
\textwidth  6.25 in
\textheight 8.25 in

\usepackage{makeidx}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{bigbox}
\usepackage{subfigure}
\usepackage{subfigmat}
\usepackage{moreverb}
\usepackage{float}
\usepackage{alltt}
\usepackage{times}
\usepackage{textcomp}
\usepackage{tabulary}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage[utf8]{inputenc}
\ifx\pdfoutput\undefined
\usepackage[ps2pdf,
            pagebackref=true,
            colorlinks=true,
            linkcolor=blue
           ]{hyperref}
\else
\usepackage[pdftex,
            pagebackref=true,
            colorlinks=true,
            linkcolor=blue
           ]{hyperref}
\fi
\usepackage{colortbl}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{amssymb,lastpage}
\usepackage{listings}
\renewcommand{\lstlistingname}{Figure}

%\usepackage{doxygen}
% Some settings borrowed from doxygen.sty:
\pagestyle{fancyplain}
\setlength{\parindent}{0cm}
\setlength{\parskip}{0.2cm}
\lhead[\fancyplain{}{\bfseries\thepage}]
        {\fancyplain{}{\bfseries\rightmark}}
\rhead[\fancyplain{}{\bfseries\leftmark}]
        {\fancyplain{}{\bfseries\thepage}}
\rfoot[\fancyplain{}{\bfseries\scriptsize Dakota Version \DakotaVersion\space User's Manual generated on \today}]{}
\lfoot[]{\fancyplain{}{\bfseries\scriptsize Dakota Version \DakotaVersion\space User's Manual generated on \today}}
\cfoot{}

\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{2}
\makeindex
%\setcounter{tocdepth}{1}
\renewcommand\footrulewidth{0.4pt}

% break long keywords across underscores
\newcommand*\dakotakw[1]{\texttt{\expandafter\dodakotakw\detokenize{#1}\relax}}
\newcommand*\dodakotakw[1]{\ifx\relax#1\else
  \expandafter\ifx\string_#1\string_\allowbreak\else#1\fi
  \expandafter\dodakotakw\fi}

% Lifted from SANDreport.cls: "this page intentionally left blank"
\def\emptypage@emptypage{%
  \hbox{}\vspace*{\fill}
  \begin{center}
    This page intentionally left blank.
  \end{center}
  \vspace{\fill}\newpage%
}%
\def\cleardoublepage{%
  \clearpage%
  \if@twoside%
  \ifodd\c@page%
  % no-op
  \else\emptypage@emptypage%
  \fi% odd page
  \fi% two side
}%

\begin{document}

\begin{titlepage}
\pagenumbering{arabic}
\setcounter{page}{3}
\begin{center}
{\large \DakotaSANDUsers}\\
{\large Unlimited Release}\\
{\large \DakotaSANDDate}\\
%{\large Updated \today}\\

\vspace*{1.5cm}
{\LARGE Dakota, A Multilevel Parallel Object-Oriented Framework for 
Design Optimization, Parameter Estimation, Uncertainty Quantification, 
and Sensitivity Analysis:\\Version \DakotaVersion\space User's Manual}\\
\vspace*{1cm}

\DakotaAuthorUsersSAND
\\ \vspace*{0.5cm}
\DakotaSNLAddress

% SNL Creative Arts says abstract needs to begin on title page,
% so may need to comment the following \newpage
\newpage

{\Large \bf Abstract}
\end{center}

\DakotaAbstractShared
\DakotaAbstractUsers

\end{titlepage}

\cleardoublepage
\tableofcontents
\cleardoublepage

\setcounter{secnumdepth}{-1} % Turn off chapter numbering (for the Preface)
%\chapter{Dakota Users Manual}
%\label{index}\hypertarget{index}{}\input{index}
\input{Users_Preface}
\setcounter{secnumdepth}{3} % Turn on chapter numbering (after the Preface)
\input{Users_Intro}
\input{Users_Tutorial}
%\input{Users_Environment} % needed?
\input{Users_Method_PStudy}
\input{Users_Method_DACE}
\input{Users_Method_UQ}
\input{Users_Method_Opt}
\input{Users_Method_NLS}
%\input{Users_Method_SurrBased} % moved to Users_Advanced_Methods
\input{Users_Models}
\input{Users_Variables}
\input{Users_Interface}
\input{Users_Responses}
\input{Users_Input}
\input{Users_Output}
\input{Users_Advanced_Methods}
\input{Users_Advanced_Models}
\input{Users_Advanced_Interfaces}
\input{Users_Parallel}
\input{Users_Restart}
\input{Users_Failure_Capturing}
\input{Users_Additional_Examples}

\bibliographystyle{plain}
\bibliography{../../Dakota}

\end{document}
