%  CAPTIONS

\makeatletter

%\def\fnum@figure{{\bf Figure \thefigure}}
%\def\fnum@table{{\bf Table \thetable}}

% For use in indenting captions
% Note for the centering of captions to work exactly right, there should
% be no space after the text of the caption.
\newlength{\captionwidth}
 \setlength{\captionwidth}{\columnwidth}%
 \addtolength{\captionwidth}{-2\leftmargini}%

% Make captions be in footnote size and indented ; DOESN'T WORK RIGHT WITH HYPERREF AND OTHER FAILURES TO OPERATE
% \long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
%   ext@#1\endcsname}{#1}{\protect\numberline{\csname 
%   the#1\endcsname}{\ignorespaces #2}}\begingroup
%     \@parboxrestore
% \setlength{\captionwidth}{\columnwidth}%
% \addtolength{\captionwidth}{-2\leftmargini}%
% \hspace*{\leftmargini}%
% \parbox{\captionwidth}%
% {\footnotesize
%  \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}}%
% \hspace*{\leftmargini}%
% \par
% \endgroup}

\long\def\@makecaption#1#2{%
  \vskip\abovecaptionskip
    \hspace*{\leftmargini}\parbox{\captionwidth}{\footnotesize #1: #2}\par
  \vskip\belowcaptionskip}

% Provide captions for figures occupying full page width when in twocolumn mode
% Note must use \dblcaption.  Probably as problematical as commented out def of \@caption above.
\def\dblcaption{\refstepcounter\@captype \@dblarg{\@dblcaption\@captype}}
\long\def\@dblcaption#1[#2]#3{\par\addcontentsline{\csname
  ext@#1\endcsname}{#1}{\protect\numberline{\csname 
  the#1\endcsname}{\ignorespaces #2}}\begingroup
    \@parboxrestore
\setlength{\captionwidth}{\textwidth}%
\addtolength{\captionwidth}{-2\leftmargini}%
\hspace*{\leftmargini}%
\parbox{\captionwidth}%
{\footnotesize
 \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}}%
\hspace*{\leftmargini}%
\par
\endgroup}

\makeatother
