%
% Sub-float environments
%
% Reuben Thomas   6/7/99-30/7/01
% After a hint in the subfigure package documentation
%

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{subfloat}
    [2001/07/30 v1.02 Sub-float environments]


\RequirePackage{subfigure}

\newbox\subflo@tbox
\newenvironment{subfig}
    {\def\caption##1{\gdef\subcapsave{\relax##1}}%
     \let\subcapsave\@empty
     \setbox\subflo@tbox\hbox
     \bgroup}
    {\egroup
     \subfigure[\subcapsave]{\box\subflo@tbox}}
\newenvironment{subtab}
    {\def\caption##1{\gdef\subcapsave{\relax##1}}%
     \let\subcapsave\@empty%
     \setbox\subflo@tbox\hbox%
     \bgroup}%
    {\egroup%
     \subtable[\subcapsave]{\box\subflo@tbox}}
