% This style file is for papers for  SPE Conferences and Symposia. The  next
% few lines describe how to format such a paper. It is followed by the style
% file. Don't remove any % signs from the first column. I have set this file
% to be used with latex2e. All the  necessary files are in
% /usr/local/share/lib/texmf/tex/inputs/latex.
% This directory can be accessed by PE accounts only.  Required files:
% fancyheadings.sty, multicol.sty, specopyright.tex, speilogo.ps,
% times.sty (optional).
%
%       BELOW IS THE MAIN STYLE FILE.
%
%---------------------------------------------------------
%              THE BIBLIOGARPHY  SPECS
%---------------------------------------------------------
\def\thebibliography#1{\section*{References\@mkboth{References}{References}}
     \list {\arabic{enumi}.}
     {\settowidth\labelwidth{#1.}\leftmargin\labelwidth
       \advance\leftmargin 12pt \labelsep 5pt \labelwidth 20pt
       \usecounter{enumi}}
    \def\newblock{\hskip .11em plus .33em minus -.07em}
    \itemsep -.2em
     \sloppy \sfcode`\.=1000\relax }
\let\endthebibliography=\endlist

%---------------------------------------------------------
%              CITE-Superscript
%---------------------------------------------------------
\def\@cite#1#2{\raise.7ex\hbox{\scriptsize #1}}
%\def\@cite#1#2{\hbox{\scriptsize #1}}
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{{\scriptsize,}}\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{#1}}

%----------------------------------------------------------
%               SECTION STYLES
%----------------------------------------------------------
%\def\section{\@startsection
%{section}                                 % the name
%{1}                                       % the level
%{0pt}                                     % the indent
%{\baselineskip}                           % the beforeskip
%{3pt}                                     % the afterskip
%{\Large \sfseries\bfseries} }             % the style

\renewcommand{\section}{\@startsection
{section}                                  %the name
{1}                                        %the level
{\z@}%                                     %the indent
{-3.5ex \@plus -1ex \@minus -.2ex}%        %the beforskip
{0.3ex \@plus.2ex}%                        %the afterskip
{\reset@font\normalsize\sffamily\bfseries}}%the style

\renewcommand{\subsection}{\@startsection
{subsection}                 % the name
{2}                          % the level
{0pt}                        % the indent
{\baselineskip}              % the beforeskip
{-6pt }    % the afterskip
{\normalsize \bf}}           % the style

\renewcommand{\subsubsection}{\@startsection
{subsubsection}              % the name
{3}                          % the level
{1em}                        % the indent
{\baselineskip}              % the beforeskip
{-\fontdimen2\font
 plus -\fontdimen3\font
 minus -\fontdimen4\font}    % the afterskip
{\normalsize \sl\bfseries}}  % the style

\renewcommand{\paragraph}{\@startsection
{paragraph}                  % the name
{4}                          % the level
{1em}                        % the indent
{\baselineskip}              % the beforeskip
{-\fontdimen2\font
 plus -\fontdimen3\font
 minus -\fontdimen4\font}    % the afterskip
{\normalsize \sl }}          % the style

\def\newheadline{\protect\\}


% -----------------------------------------------------
%                  COUNTERS
% -----------------------------------------------------
\pagenumbering{arabic} \setcounter{secnumdepth}{0} \def\thesection
{}
\def\thesubsection {} \def\thesubsubsection {} \def\theparagraph {}
\def\thesubparagraph {} \def\theequation{\arabic{equation}}
\def\@eqnnum{{ \rm (\theequation)}} \def\thefigure{\@arabic\c@figure}
\def\thetable{\@arabic\c@table} \def\appfl@g{APPENDIX}
\def\appendix{\par
    \setcounter{section}{0}
    \setcounter{equation}{0}
    \def\@chapapp{APPENDIX}
    \def\thesection{\Alph{section}}
    \def\theequation{\thesection-\arabic{equation}}
    \def\section{
    \setcounter{equation}{0}
    \refstepcounter{section}
    \@startsection {section}{1}{0pt}{-3.5ex \@plus -1ex \@minus -.2ex}
                   {0.3ex \@plus.2ex}{\normalsize\sffamily\bfseries} }}

% ------------------------------------------------------
%             Page Layout
% ------------------------------------------------------
\setlength{\textwidth}{540pt} \setlength{\oddsidemargin}{-36pt}
\setlength{\evensidemargin}{-36pt} \setlength{\textheight}{660pt}
\setlength{\topmargin}{-36pt} \setlength{\headheight}{17pt}
\setlength{\headsep}{20pt} \setlength{\footskip}{36pt}
\setlength{\columnseprule}{0pt} \setlength{\columnsep}{36pt}
\renewcommand{\baselinestretch}{0.952}
%-------------------------------------
