\documentclass[ps2pdf,11pt,report]{SANDreport}
%\documentclass[a4paper]{book}
%\usepackage{a4wide}

\input{DakotaDefs.tex}
\usepackage{makeidx}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{wrapfig}
\usepackage{bigbox}
\usepackage{subfigure}
\usepackage{moreverb}
\usepackage{float}
\usepackage{alltt}
\usepackage{times}
\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{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{}

\title{Dakota, A Multilevel Parallel Object-Oriented Framework for 
Design Optimization, Parameter Estimation, Uncertainty Quantification, 
and Sensitivity Analysis\\\vspace{5mm}Version \DakotaVersion\space User's Manual}

\author{\DakotaAuthorLong}

\date{\today}

\SANDnum{\DakotaSANDUsers}
\SANDprintDate{\today}
\SANDauthor{\DakotaAuthorSAND}
\SANDreleaseType{Unlimited Release}

\makeindex
\setcounter{tocdepth}{1}
\renewcommand\footrulewidth{0.4pt}

\begin{document}

\maketitle

\begin{abstract}
\DakotaAbstractShared
\DakotaAbstractUsers
\end{abstract}

\pagenumbering{arabic}
%\setcounter{page}{3}

% \newcommand{\clearemptydoublepage} defined in doxygen.sty as:
\newpage{\pagestyle{empty}\cleardoublepage}

\tableofcontents
%\listoffigures
%\listoftables

% \newcommand{\clearemptydoublepage} defined in doxygen.sty as:
\newpage{\pagestyle{empty}\cleardoublepage}

\SANDmain 

%\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}{2} % Turn on chapter numbering (after the Preface)
\input{Users_Intro}
\input{Users_Tutorial}
\input{Users_Capabilities}
\input{Users_Method_PStudy}
\input{Users_Method_DACE}
\input{Users_Method_UQ}
\input{Users_Method_Opt}
\input{Users_Method_NLS}
\input{Users_Method_SurrBased}
\input{Users_Strategy}
\input{Users_Models}
\input{Users_Variables}
\input{Users_Interface}
\input{Users_Responses}
\input{Users_Input}
\input{Users_Output}
\input{Users_Advanced_Interfaces}
\input{Users_Parallel}
\input{Users_Guidance}
\input{Users_Restart}
\input{Users_Failure_Capturing}
\input{Users_Additional_Examples}

\bibliographystyle{plain}
\bibliography{Users}

\begin{SANDdistribution}
  % ACADEMIA

  % INDUSTRY

  % LABS

  % SANDIA INTERNAL  
  %\SANDdistInternal{1}{MailStop}{Name}{Organization}
  \SANDdistInternal{10}{1318}{B.~M.~Adams}{1411}

  % Housekeeping copies necessary for every unclassified report:
  \SANDdistInternal{1}{9018}{Central Technical Files}{8940-2}
  \SANDdistInternal{2}{0899}{Technical Library}{4916}
  \SANDdistInternal{2}{0619}{Review \& Approval Desk}{4916}

  % If report has a Patent Caution or Patent Interest, add this:
  %\SANDdistInternal{3}{0161}{Patent and Licensing Office}{4916}
\end{SANDdistribution}

\end{document}
