% To: Ronald Greenberg <rig@eng.umd.edu>
% Subject: Re: revised manuscript for IEEE Trans. on Computers 
% Date: Fri, 15 Oct 1993 14:31:53 PDT
% From: Martine Schlag <martine@cse.ucsc.edu>
%
% Yes I've already got the copyright form.  The article gets typeset
% (again) by IEEE and the figures are photographed. Below is a
% home-brewed addition (to article.sty) which moves all figures to
% the end and causes the footnotes to come out on one page at the end.
% For the captions I take the list of figures file generated by
% latex and edit it by hand.

% Comments by RIG:
% I've edited this to put a "\" after "Fig.".
% I've also redefined the footnote command to do an endnote
% and added some other stuff at the bottom.
% I removed the settings of \topfraction and \dbltopfraction, which
% seem unnecessary to me.  I also didn't see any need for \topline
% or \bottomline.

\input endnotes.sty
\let\footnote=\endnote
\def\textfraction{0.99}
\def\floatpagefraction{0.99}
\def\dblfloatpagefraction{0.99}
\def\fnum@figure{Fig.\ \thefigure}
\def\fnum@table{Table \thetable}
\def\thetable{\@Roman\c@table}
\long\def\@makecaption#1#2{
 \vskip 10pt
 \setbox\@tempboxa\hbox{#1. #2}
 \ifdim \wd\@tempboxa >\hsize \unhbox\@tempboxa\par \else \hbox
to\hsize{\hfil\box\@tempboxa\hfil}
 \fi}
\def\section{\@startsection {section}{1}{\z@}{-2.0ex plus -0.2ex minus
 -.2ex}{1.3ex plus .2ex}{\large\bf}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-2.0ex plus -0.5ex
minus
 -.2ex}{0.5ex plus .2ex}{\normalsize\bf}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}

% Added by RIG:

% Redefine maketitle to more like IEEE Transactions style

\def\and{and }

\def\maketitle{
 \begin{center}
 \LARGE \@title
 \end{center}
 \begin{center}
 \large \@author
 \end{center}
 }

% Set section ``numbering'' as in IEEE Transactions articles

\def\thepart{\arabic{part}} % to use part for check list items
\def\thesection {\Roman{section}}
\def\thesubsection {\Alph{subsection}}

% Set up so \tableofcontents shows where items on the check list are

\setcounter{tocdepth}{0}
\def\l@section#1#2{}

% Set up caption command so it will give a warning if you use an optional
% argument, which truncates the caption that appears on a separate page.

\def\caption{\refstepcounter\@captype \@warndblarg{\@caption\@captype}}

\long\def\@warndblarg#1{\@ifnextchar[{\typeout{% 
 Warning: You have used an optional argument in a caption command,
which will yield a different caption on the separate page produced
using the list of figures and list of tables facilities.
 }#1}{\@xdblarg{#1}}}
