diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-supertabular.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-supertabular.sty | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-supertabular.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-supertabular.sty index 8bb138caf45..e25733f35e9 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-supertabular.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-supertabular.sty @@ -32,14 +32,16 @@ \newcommand{\tablelasttail}[1]{% \long\gdef\LWRST@lasttail{#1}% } - \newcommand{\tablecaption}[2][]{% - \long\gdef\LWRST@caption{\caption[#1]{#2}}% + \long\gdef\LWRST@caption{% + \ifblank{#1}% + {\caption{#2}}% + {\caption[#1]{#2}}% + }% } \let\topcaption\tablecaption \let\bottomcaption\tablecaption - \newcommand*{\LWRST@caption}{} \newcommand*{\shrinkheight}[1]{} @@ -47,7 +49,7 @@ \NewDocumentEnvironment{supertabular}{s o m} {% \LWR@traceinfo{supertabular}% -\table% +\begin{table}% \LWRST@caption% \begin{tabular}{#3}% \TabularMacro\ifdefvoid{\LWRST@firsthead}% @@ -62,7 +64,7 @@ \LWRST@lasttail% }% \end{tabular}% -\endtable% +\end{table}% \LWR@traceinfo{supertabular done}% } |