Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-supertabular.sty

raw
1 %%
2 %% This is file `lwarp-supertabular.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `supertabular')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18
19
20
21 \LWR@ProvidesPackageDrop{supertabular}[2004/02/20]
22 \newcommand{\LWRST@firsthead}{}
23
24 \newcommand{\tablefirsthead}[1]{%
25 \long\gdef\LWRST@firsthead{#1}%
26 }
27
28 \newcommand{\tablehead}[1]{}
29 \newcommand{\tabletail}[1]{}
30
31 \newcommand{\LWRST@lasttail}{}
32
33 \newcommand{\tablelasttail}[1]{%
34 \long\gdef\LWRST@lasttail{#1}%
35 }
36 \newcommand{\tablecaption}[2][]{%
37 \long\gdef\LWRST@caption{%
38 \ifblank{#1}%
39 {\caption{#2}}%
40 {\caption[#1]{#2}}%
41 }%
42 }
43
44 \let\topcaption\tablecaption
45 \let\bottomcaption\tablecaption
46 \newcommand*{\LWRST@caption}{}
47
48 \newcommand*{\shrinkheight}[1]{}
49
50 \NewDocumentEnvironment{supertabular}{s o m}
51 {%
52 \LWR@traceinfo{supertabular}%
53 \begin{table}%
54 \LWRST@caption%
55 \begin{tabular}{#3}%
56 \TabularMacro\ifdefvoid{\LWRST@firsthead}%
57 {\LWR@getmynexttoken}%
58 {\expandafter\LWR@getmynexttoken\LWRST@firsthead}%
59 }%
60 {%
61 \ifdefvoid{\LWRST@lasttail}%
62 {}%
63 {%
64 \TabularMacro\ResumeTabular%
65 \LWRST@lasttail%
66 }%
67 \end{tabular}%
68 \end{table}%
69 \gdef\LWRST@caption{}%
70 \LWR@traceinfo{supertabular done}%
71 }
72
73 \NewDocumentEnvironment{mpsupertabular}{s o m}
74 {\minipage{\linewidth}\supertabular{#3}}
75 {\endsupertabular\endminipage}
76
77 \endinput
78 %%
79 %% End of file `lwarp-supertabular.sty'.