\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{bm}
\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{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 Theory Manual generated on \today}]{}
\lfoot[]{\fancyplain{}{\bfseries\scriptsize Dakota Version \DakotaVersion\space Theory Manual generated on \today}}
\cfoot{}

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


\usepackage{xcolor}
\usepackage{colortbl}
\usepackage[ruled]{algorithm2e}
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}
\newcommand{\card}[1]{\lvert#1\rvert}
\newcommand{\abs}[1]{\left\lvert #1 \right\rvert}
\def\RHiLi{\leavevmode\rlap{\hbox to \hsize{\color{blue!20}\leaders\hrule height .8\baselineskip depth .5ex\hfill}}}
\def\EHiLi{\leavevmode\rlap{\hbox to \hsize{\color{green!20}\leaders\hrule height .8\baselineskip depth .5ex\hfill}}}
\def\IHiLi{\leavevmode\rlap{\hbox to \hsize{\color{yellow!20}\leaders\hrule height .8\baselineskip depth .5ex\hfill}}}
\def\SHiLi{\leavevmode\rlap{\hbox to \hsize{\color{red!20}\leaders\hrule height .8\baselineskip depth .5ex\hfill}}}

% 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%
   \emptypage@emptypage%
%  \fi% odd page
  \fi% two side
}%

\begin{document}

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

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

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

\newpage

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

\DakotaAbstractShared
\DakotaAbstractTheory

\end{titlepage}

\cleardoublepage
\tableofcontents
\cleardoublepage

%\setcounter{secnumdepth}{-1} % Turn off chapter numbering (for the Preface)
%\input{Theory_Preface}
%\setcounter{secnumdepth}{6} % Turn on chapter numbering (after the Preface)
%\input{Theory_Intro}
\input{Theory_UQ_Sampling}
\input{Theory_UQ_Reliability}
\input{Theory_UQ_StochExp}
\input{Theory_UQ_Epistemic}
\input{Theory_UQ_Bayesian}
\input{Theory_Surrogates}
\input{Theory_Opt_SurrBased}
\input{Theory_Opt_GlobalSurrBased}
\input{Theory_UQ_DimReduction}
\input{Theory_Opt_UnderUnc}
% TO DO: add analysis from MAO paper (do not extract anything from User's)
%\input{Theory_Parallel}

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

\end{document}
