% From: sheffler@colt.CS.CMU.EDU (Thomas Sheffler)
% Newsgroups: comp.text.tex
% Subject: Re: Put a framebox around an algorithm ...
% Date: 13 Oct 92 20:23:36 GMT
% Organization: Carnegie Mellon University
%
% USAGE:
%  \begin{figure}
%    \begin{bigbox}
%      \begin{tabbing}
%       (stuff in the tabular environment)
%      \end{tabbing}
%    \end{bigbox}
%   \caption{XXX}
%  \end{figure}
%
%%% BIGBOX - environment
%%%
%%% TOM SHEFFLER
%%% Carnegie Mellon, Aug 1990
%%%
%%% Make an environment for boxing a figure and setting it in
%%% a narrower width.
\newdimen\boxfigwidth % width of figure box

\def\bigbox{\begingroup
  % Figure out how wide to set the box in
  \boxfigwidth=\hsize
  \advance\boxfigwidth by -2\fboxrule
  \advance\boxfigwidth by -2\fboxsep
  \setbox4=\vbox\bgroup\hsize\boxfigwidth
  % Make an invisible hrule so that the box is exactly this wide
  \hrule height0pt width\boxfigwidth\smallskip
% Some environments like TABBING and other LIST environments
% use this measure of line size - \LINEWIDTH=\HSIZE-\LEFTMARGIN-\RIGHTMARGIN?
\linewidth=\boxfigwidth
}

\def\endbigbox{\smallskip\egroup\fbox{\box4}\endgroup}
