%sw20seqa {Article: Similar to Sequential Analysis Journal}{12pt}{article}
%Copyright (C) 1994-95 TCI Software Research
\typeout{TCI Document Style `sw20seqa' <1 July 1994>.}
\typeout{NOTICE:  This macro file is NOT proprietary and may be 
freely copied and distributed.}
%
\input thmsupp.tex %TCI theorem option support
%
% Approximates the Sequential Analysis Journal
% Prepared for Debbie Crary

\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{1}
% Make the page area as large as possible

%\setlength{\topmargin}{0.0in}
%\setlength{\textheight}{8.5in}
%\setlength{\oddsidemargin}{.5in}
%\setlength{\evensidemargin}{.5in}
%\setlength{\textwidth}{5.5in}

\addtolength{\oddsidemargin}{-3pt}
\evensidemargin=\oddsidemargin
\addtolength{\textwidth}{8pt}
\addtolength{\topmargin}{-17pt}
\addtolength{\textheight}{66pt}
\newdimen\dummy
\dummy=\oddsidemargin
\addtolength{\dummy}{72pt}
\marginparwidth=.675\dummy
\marginparsep=.1\dummy


%Change to \pagestyle{empty} to suppress numbers on following pages
%\pagestyle{plain}
\pagestyle{empty}

% Change level 3 enumerate to use close paren instead of period
\def\labelenumiii{\theenumiii)}

% Define \tighttoc to alter table of contents entry so that
% sections are treated like subsections, subsubsections, etc.

\def\tighttoc{\def\l@section{\@dottedtocline{1}{0em}{1.4em}}}
\tighttoc

\def\maketitle{\par
 \begingroup
 \def\thefootnote{\fnsymbol{footnote}}
 \def\@makefnmark{\hbox 
 to 0pt{$^{\@thefnmark}$\hss}} 
 \if@twocolumn 
 \twocolumn[\@maketitle] 
 \else \newpage
 \global\@topnum\z@ \@maketitle \fi\thispagestyle{plain}\@thanks
 \endgroup
 \setcounter{footnote}{0}
 \let\maketitle\relax
 \let\@maketitle\relax
 \gdef\@thanks{}%
 %\gdef\@author{}
 %\gdef\@title{}
 \let\thanks\relax}


% JCS - removed date from title
\def\@maketitle{%
      \newpage\null
      \begin{center}
         {\normalsize\bf \@title \par} 
         \vskip .75em 
         {\sc \lineskip .2em
         \begin{tabular}[t]{c}\@author 
         \end{tabular}\par}

         \if\@empty\thekeywords
         \else 
            \vskip .5cm
            {\it Key words and phrases:} \thekeywords 
			\vskip .5cm
		 \fi

      \end{center}
      \par }
\def\abstract{\if@twocolumn
\section*{Abstract}
\else\small 
\quotation\centering
{\sc Abstract} 
\fi}
\def\endabstract{\if@twocolumn\else\endquotation\fi}

\mark{{}{}} 

\@ifundefined{@title}{\def\@title{}}{}
\@ifundefined{@author}{\def\@author{}}{}

\if@twoside \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@evenhead{\rm \thepage\hfil
{\small\sc \@author}\hfil}
\def\@oddhead{\hbox{}]\hfil {\small\sc \@title} \hfil
\rm\thepage}\def\sectionmark##1{\markboth {\uppercase{\ifnum \c@secnumdepth
>\z@
 \thesection\hskip 1em\relax \fi ##1}}{}}\def\subsectionmark##1{\markright
{\ifnum \c@secnumdepth >\@ne
 \thesubsection\hskip 1em\relax \fi ##1}}}
\else \def\ps@headings{\let\@mkboth\markboth
\def\@oddfoot{}\def\@evenfoot{}\def\@oddhead{\hbox {}\sl \rightmark \hfil
\rm\thepage}\def\sectionmark##1{\markright {\uppercase{\ifnum \c@secnumdepth
>\z@
 \thesection\hskip 1em\relax \fi ##1}}}}
\fi
\def\ps@myheadings{\let\@mkboth\@gobbletwo
 \def\@oddhead{\hbox{}\hfil{\sc\small\@title}\hfil\rm\thepage}
 \def\@oddfoot{}
 \def\@evenhead{\rm\thepage\hfil{\sc\small\@author}\hfil\hbox{}}
 \def\@evenfoot{}\def\sectionmark##1{}\def\subsectionmark##1{}}

\def\thepart{\Roman{part}}%
\def\thesection{\arabic{section}}%
\def\thesubsection{\thesection.\arabic{subsection}}%
\def\thesubsubsection{\thesubsection .\arabic{subsubsection}}%
\def\theparagraph{\thesubsubsection.\arabic{paragraph}}%
\def\thesubparagraph{\theparagraph.\arabic{subparagraph}}%

\newdimen\sectionruledimen
\sectionruledimen.4pt
\def\makeparrule{%
 \def\par{%
  \endgraf\nobreak\vskip\lineskip\nointerlineskip
  \hbox to\hsize{\hskip\sectionbackskip\leaders\hrule height
   \sectionruledimen\hfil}%
  %\nointerlineskip
  }%
 }%

\def\section{%
 \@startsection {section}{1}{\sectionbackskip}{10pt plus 1.2ex minus .2ex}%
  {.5pt}{\centering\normalsize\sc\makeparrule}%
 }%
\newdimen\sectionbackskip
\sectionbackskip\z@
\newdimen\sectionruledimen
\sectionruledimen\z@

\def\subsection{%
 \@startsection{subsection}{2}{\z@}{10pt plus 1ex minus .2ex}%
  {1.0em}{\normalsize\bf}%
 }%

\def\subsubsection{%
 \@startsection{subsubsection}{3}{\parindent}{7pt plus 1ex minus .2ex}%
  {1.0em}{\normalsize\bf}%
 }%
     
\def\paragraph{%
 \@startsection{subsubsection}{4}{\parindent}{5pt plus 1ex minus .2ex}%
  {1.0em}{\normalsize\bf}%
 }%

\def\subparagraph{%
 \@startsection{subsubsection}{5}{\parindent}{2pt plus 1ex minus .2ex}%
  {1.0em}{\normalsize\bf}%
 }%

\def\@startsection#1#2#3#4#5#6{\if@noskipsec \leavevmode \fi
   \par \@tempskipa #4\relax
   \@afterindenttrue
   \ifdim \@tempskipa <\z@ \@tempskipa -\@tempskipa \@afterindentfalse\fi
   \if@nobreak \everypar{}\else
     \addpenalty{\@secpenalty}\addvspace{\@tempskipa}\fi \@ifstar
     % Do not add a dot if star section (gp)
     {\@ssectnodot{#3}{#4}{#5}{#6}}{\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
 
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
     \let\@svsec\@empty\else
     \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname.\hskip 1em}\fi
     \@tempskipa #5\relax
      \ifdim \@tempskipa>\z@
        \begingroup #6\relax
          \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}%
        \endgroup
       \csname #1mark\endcsname{#7}\addcontentsline
         {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                      \protect\numberline{\csname the#1\endcsname}\fi
                    #7}\else
        \def\@svsechd{#6\hskip #3\relax  %% \relax added 2 May 90
                   \@svsec #8.\csname #1mark\endcsname
                      {#7}\addcontentsline
                           {toc}{#1}{\ifnum #2>\c@secnumdepth \else
                             \protect\numberline{\csname the#1\endcsname}\fi
                       #7}}\fi
     \@xsect{#5}}
 
\def\@ssect#1#2#3#4#5{\@tempskipa #3\relax
   \ifdim \@tempskipa>\z@
     \begingroup #4\@hangfrom{\hskip #1}{\interlinepenalty \@M #5.\par}\endgroup
   \else \def\@svsechd{#4\hskip #1\relax #5.}\fi
    \@xsect{#3}}
 
\def\@ssectnodot#1#2#3#4#5{\@tempskipa #3\relax
   \ifdim \@tempskipa>\z@
     \begingroup #4\@hangfrom{\hskip #1}{\interlinepenalty \@M #5\par}\endgroup
   \else \def\@svsechd{#4\hskip #1\relax #5}\fi
    \@xsect{#3}}
 
% Redefine theorem environment macros to put \theoremcounterend
% (default ".") after the "theorem" head.

\def\@begintheorem#1#2{\sl \trivlist
   \item[\hskip \labelsep{\bf #1\ #2\thmcounterend}]}
\def\@opargbegintheorem#1#2#3{\sl \trivlist
      \item[\hskip \labelsep{\bf #1\ #2\ {\rm [#3]}\thmcounterend}]}
\def\thmcounterend{.}


\def\thebibliography#1{\section*{References}
 \list
 {[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus .07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}
\let\endthebibliography=\endlist

%\pagestyle{myheadings}
\pagestyle{plain}

\@addtoreset{equation}{section}
\def\theequation{\thesection.\arabic{equation}}

\def\thekeywords{}
\def\keyphrases#1{\def\thekeywords{#1}}
