\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\usepackage{graphicx, fancyhdr, color}
\usepackage[colorlinks=false]{hyperref}
\usepackage{ifpdf}
\usepackage{subfigure}
\usepackage{amssymb , amsmath}
\usepackage{multirow}
\usepackage{subfigure} 
\usepackage{natbib}  
\usepackage{ifthen}
\usepackage{setspace}
\usepackage{caption} 

\usepackage[noprefix,norefpage,norefeq]{nomencl}
%\usepackage{nomentbl}

\ifpdf
\graphicspath{{./fig-pdf/}}
\DeclareGraphicsRule{*}{mps}{*}{}
\else
\graphicspath{{./fig/}}
\DeclareGraphicsRule{*}{eps}{*}{} 
\fi

\usepackage{spenew} 
%\usepackage[numbers,sort&compress]{natbib}
%\usepackage[sort&compress]{natbib} 
\bibpunct[; ]{(}{)}{;}{a}{}{,}
%\bibpunct 
%\setcitestyle{open={(},close={)},semicolon,aysep={,},yysep={;},notesep={, }}
%\setcitepstyle{agu}
% algorithm
%\setcitestyle{super,open={},close={}}
\usepackage{algorithmic, algorithm}
\renewcommand{\algorithmiccomment}[1]{{\color{blue}/* \emph{#1} */}}
\renewcommand{\algorithmicrepeat}{\textbf{do}}
\renewcommand{\nomname}{Nomenclature}

\setlength{\parskip}{0pt}
%<*sample01>
%\RequirePackage{ifthen}
%\renewcommand{\nomgroup}[1]{%
%  \ifthenelse{\equal{#1}{R}}{\item[\textbf{Variables}]}{%
%  \ifthenelse{\equal{#1}{G}}{\item[\textbf{Constants}]}
%  {}
%  }
%}

\RequirePackage{ifthen}
\renewcommand{\nomgroup}[1]{%
  \ifthenelse{\equal{#1}{X}}{\item[\textbf{Subscripts}]}{%
  \ifthenelse{\equal{#1}{Y}}{\item[\textbf{Superscripts}]}
  {}
  }
}
%</sample01>

%\newcommand{\bibstyle@plainnat}%
% {    \renewcommand\bibnumfmt[1]{##1.}}

%\renewcommand\bibnumfmt[1]{#1.}
%\renewcommand{\bibnumfmt}[1]{\textbf{#1}:}

%\makenomenclature
%makeindex atce_2009_wellpatternopt.nlo -s  nomencl.ist -o atce_2009_wellpatternopt.nls
%\doublespace
\setlength{\nomitemsep}{-\parsep}
%\renewcommand{\nomgroup}[1]{\medskip}

\captionsetup[subfigure]{style=default, margin=0pt, parskip=0pt,
                        hangindent=0pt, indention=0pt, singlelinecheck=true}

%\begin{document}
%\bibliographystyle{plainnat}


%-----------------------------------------------------------------------------
% 
% title and header stuff
%
%-----------------------------------------------------------------------------

%\begin{figure}[tr]
%\begin{flushright} 
% \includegraphics[height=1in]{fig-otc}
%\end{flushright}
%\end{figure}

%% SPE paper number on page one.
%\noindent {\Large \sffamily OTC 20918} \vspace*{30pt}
%
%% The paper title on page one.
%\noindent {\bf \Large \sffamily Efficient seismic monitoring of hydrocarbon reservoirs using multiple shooting vessels} \vspace*{5pt}

%% Author's name on page one
%\noindent {\sffamily Gboyega Ayeni, SPE, Yaxun Tang, and Biondo Biondi, Stanford Exploration Project, Stanford University}\vspace*{15pt}
%
%% HEADERS AND FOOTERS (Footers are blank)
%\pagestyle{fancy}
%\lhead[\thepage \vspace*{5pt}]{OTC 20918\vspace*{5pt}}
%%\chead[Development and application of a new well pattern optimization algorithm \vspace*{5pt}] {J.E Onwunalu \and L.J Durlofsky. \vspace*{5pt}}
%\rhead[OTC 20918\vspace*{5pt}] {\thepage \vspace*{5pt}}
%
%\thispagestyle{empty}           %for no headers on page one.
%\input{otccopyright}            %the tex file containing copyright
%                                 %info.
