Debian Codegraph @

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

raw
1 %%
2 %% This is file `lwarp-xtab.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `xtab')
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{xtab}[2011/07/31]
22 \newcommand{\LWRXT@firsthead}{}
23
24 \newcommand{\tablefirsthead}[1]{%
25 \long\gdef\LWRXT@firsthead{#1}%
26 }
27
28 \newcommand{\tablehead}[1]{}
29
30 \newcommand{\tablelasthead}[1]{}
31
32 \newcommand{\notablelasthead}{}
33
34 \newcommand{\tabletail}[1]{}
35
36 \newcommand{\LWRXT@lasttail}{}
37
38 \newcommand{\tablelasttail}[1]{%
39 \long\gdef\LWRXT@lasttail{#1}%
40 }
41 \newcommand{\tablecaption}[2][]{%
42 \long\gdef\LWRXT@caption{%
43 \ifblank{#1}%
44 {\caption{#2}}%
45 {\caption[#1]{#2}}%
46 }%
47 }
48
49 \let\topcaption\tablecaption
50 \let\bottomcaption\tablecaption
51 \newcommand*{\LWRXT@caption}{}
52
53 \newcommand*{\shrinkheight}[1]{}
54
55 \newcommand*{\xentrystretch}[1]{}
56
57 \NewDocumentEnvironment{xtabular}{s o m}
58 {%
59 \LWR@traceinfo{xtabular}%
60 \table%
61 \LWRXT@caption%
62 \begin{tabular}{#3}%
63 \TabularMacro\ifdefvoid{\LWRXT@firsthead}%
64 {\LWR@getmynexttoken}%
65 {\expandafter\LWR@getmynexttoken\LWRXT@firsthead}%
66 }%
67 {%
68 \ifdefvoid{\LWRXT@lasttail}%
69 {}%
70 {%
71 \TabularMacro\ResumeTabular%
72 \LWRXT@lasttail%
73 }%
74 \end{tabular}%
75 \endtable%
76 \gdef\LWRXT@caption{}%
77 \LWR@traceinfo{xtabular done}%
78 }
79
80 \NewDocumentEnvironment{mpxtabular}{s o m}
81 {\minipage{\linewidth}\xtabular{#3}}
82 {\endxtabular\endminipage}
83
84 \endinput
85 %%
86 %% End of file `lwarp-xtab.sty'.