1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%Supertabular, more or less complete implementation. %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\let\st@tablefirsthead\@empty
\newcommand{\tablefirsthead}[1]{\gdef\st@tablefirsthead{#1}}
\newcommand{\tablehead}[1]{}
\newcommand{\tabletail}[1]{}
\let\st@tablelasttail\@empty
\newcommand{\tablelasttail}[1]{\gdef\st@tablelasttail{#1}}
\let\st@bottomcaption\@empty
\newcommand{\bottomcaption}[1]
{\def\st@bottomcaption{\caption{#1}}}
\let\st@topcaption\@empty
\newcommand{\topcaption}[1]
{\def\st@topcaption{\caption{#1}}}
\let\tablecaption\topcaption
%%%
\newenvironment{supertabular}[2][]
{\begin{table}\st@topcaption\begin{tabular}[#1]{#2}\st@tablefirsthead}
{\st@tablelasttail\end{tabular}\st@bottomcaption\end{table}}
\newcommand{\st@kont@supertabular*}[2][]
{\begin{tabular*}{\st@arg}[#1]{#2}\st@tablefirsthead}
\newenvironment{supertabular*}[1]
{\def\st@arg{#1}\begin{table}\st@topcaption\st@kont@supertabular*}
{\st@tablelasttail\end{tabular*}\st@bottomcaption\end{table}}
\let\mpsupertabular\supertabular
\let\endmpsupertabular\endsupertabular
\let\mpsupertabular*\supertabular*
\let\endmpsupertabular*\endsupertabular*
%%
\newcommand{\shrinkheight}[1]{}
|