\typeout{TCI Document Style `sw20gilb' <16 Dec 1994>.}
\typeout{NOTICE:  This macro file is NOT proprietary and may be 
freely copied and distributed.}
\renewcommand{\arraystretch}{1.5}
\setlength{\arraycolsep}{1mm}
%
\input thmsupp.tex %TCI theorem option support
%
% JCS - modified macro to clear a double page but place no page number 
% on the odd page if it is blank.
%
\baselineskip 13pt
\def\cleardoublepage{\clearpage\if@twoside\thispagestyle{empty}\ifodd\c@page\else
    \hbox{}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
%
% 
%
% JCS - added redefinition of \theexample so that examples would 
% be numbered without reference to section.  I.e. 3 rather than 7.2.3
% CWC -this counter was only acitve if maketitle done. I move this out, so that
% a sub-document would have this env. Chris
\def\theexample{\arabic{example}} % moved out by chris. was in maketitle
\def\maketitle{\global % counter moved out.  chris. see above.
 \begin{titlepage}%
 \let\footnotesize\small
 \let\footnoterule\relax
  \pagenumbering{roman}
 \pagestyle{empty}
 \setcounter{page}{1}%
 \null
 \vfil
 \vskip 60\p@
 \begin{center}%
   {\LARGE \@title \par}%
   \vskip 3em
   {\large
     \lineskip .75em
     \begin{tabular}[t]{c}\@author
     \end{tabular}\par}%
    \vskip 1.5em
   {\large \@date \par}%
\end{center}\par
\@thanks
\vfil
\null
\end{titlepage}%
\setcounter{footnote}{0}%
\let\thanks\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\maketitle\relax}
%
% JCS - added running header "Preface" to the preface
%
%\newenvironment{abstract}{\abstract}{\endabstract}%
\def\abstract{\newpage % newpage added by chris
\thispagestyle{plain}% page style added by chris
\setcounter{page}{9}% counter added by chris
  \addcontentsline{toc}{chapter}{Preface} % added by chris
\markboth{Preface}{Preface} % changed markboth for both pages chris
\if@twocolumn
\chapter*{Preface}%
\else
\begin{center}%
     {\bf Preface\vspace{-.5em}\vspace{\z@}}%
\end{center}%
%\quotation  
\fi}

\def\endabstract{\if@twocolumn\else\fi}
%
% JCS - Adjust table of contents so that it continues roman numbering
% and does not start arabic numbering. Arabic numbering is actually
% initiated by \chapter*.  So we need to temporarily redefine \chapter*
%
\def\tableofcontents{%
      \setcounter{page}{5}
   {\def\chapter{\cleardoublepage
      \thispagestyle{plain}%
      \global\@topnum\z@
      \@afterindentfalse
      \secdef\@chapter\@schapter}
   \@restonecolfalse
   \if@twocolumn\@restonecoltrue\onecolumn\fi
   \chapter*{\contentsname
        \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
   \@starttoc{toc}\if@restonecol\twocolumn\fi}%
       {\newpage\thispagestyle{empty}}}
%
\def\switchnumbering{%
     \pagenumbering{arabic}
     \def\switchnumbering{\relax}}
%
\def\chapter{\cleardoublepage\switchnumbering
   \thispagestyle{plain}%
   \global\@topnum\z@
   \@afterindentfalse
   \secdef\@chapter\@schapter}
%
\def\ps@headings{\let\@mkboth\markboth
 \def\@oddfoot{}\def\@evenfoot{}%       No feet.
 \def\@evenhead{\rm \thepage\hfil \bf \leftmark}%        Left heading.
 \def\@oddhead{{\bf \rightmark}\hfil \rm\thepage}% Right heading.
 \def\chaptermark##1{\markboth {\uppercase{\ifnum \c@secnumdepth >\m@ne
      \@chapapp\ \thechapter \ \fi ##1}}{}}%
 \def\sectionmark##1{\markright {\uppercase{\ifnum \c@secnumdepth >\z@
   \thesection\ \fi ##1}}}}
%
\def\ps@myheadings{\let\@mkboth\@gobbletwo
 \def\@oddhead{{\sl\rightmark}\hfil \rm\thepage}%
 \def\@oddfoot{}\def\@evenhead{\rm \thepage\hfil\sl\leftmark}%
 \def\@evenfoot{}\def\chaptermark##1{}\def\sectionmark##1{}%
 \def\subsectionmark##1{}}
%
\pagestyle{headings}
%
\def\labelenumi{\theenumi.}
\def\theenumi{\bf\arabic{enumi}}

\def\labelenumii{(\theenumii)}
\def\theenumii{{\bf\alph{enumii}}}
\def\p@enumii{\theenumi}

\def\labelenumiii{\theenumiii.}
\def\theenumiii{{\bf\roman{enumiii}}}
\def\p@enumiii{\theenumi(\theenumii)}

\def\labelenumiv{\theenumiv.}
\def\theenumiv{\bf\Alph{enumiv}}
\def\p@enumiv{\p@enumiii\theenumiii}

\def\labelitemi{$\m@th\bullet$}
\def\labelitemii{\bf --}
\def\labelitemiii{$\m@th\ast$}
\def\labelitemiv{$\m@th\cdot$}

% Take off the appendix counter chris.
\renewcommand\appendix{\par
  \setcounter{chapter}{0}%
  \setcounter{section}{0}%
  \renewcommand\@chapapp{\appendixname}
  \renewcommand\thechapter{}}%

