| 1 |
%% |
| 2 |
%% This is file `lwarp-longtable.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `longtable') |
| 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{longtable}[2014/10/28] |
| 22 |
\newbool{LWR@longtable@havehead} |
| 23 |
\boolfalse{LWR@longtable@havehead} |
| 24 |
\newenvironment{longtable*}[2][]{% |
| 25 |
\LWR@floatbegin{table}% |
| 26 |
\ifdef{\setcaptiontype}{% caption package: |
| 27 |
\setcaptiontype{\LTcaptype}% |
| 28 |
\caption@setoptions{longtable}% |
| 29 |
\caption@setoptions{@longtable}% |
| 30 |
\caption@LT@setup% |
| 31 |
}{% w/o caption package: |
| 32 |
\renewcommand*{\@captype}{\LTcaptype}% |
| 33 |
}% |
| 34 |
\booltrue{LWR@starredlongtable}% |
| 35 |
\boolfalse{LWR@longtable@havehead}% |
| 36 |
\let\captionlistentry\LWR@LTcaptionlistentry% |
| 37 |
\tabular{#2}% |
| 38 |
} |
| 39 |
{\endtabular\LWR@floatend} |
| 40 |
|
| 41 |
\newenvironment{longtable}[2][]{% |
| 42 |
\LWR@floatbegin{table}% |
| 43 |
\ifdef{\setcaptiontype}{% caption package: |
| 44 |
\setcaptiontype{\LTcaptype}% |
| 45 |
\caption@setoptions{longtable}% |
| 46 |
\caption@setoptions{@longtable}% |
| 47 |
\caption@LT@setup% |
| 48 |
}{% w/o caption package: |
| 49 |
\renewcommand*{\@captype}{\LTcaptype}% |
| 50 |
}% |
| 51 |
\refstepcounter{\LTcaptype}% |
| 52 |
\boolfalse{LWR@longtable@havehead}% |
| 53 |
\let\captionlistentry\LWR@LTcaptionlistentry% |
| 54 |
\tabular{#2}% |
| 55 |
} |
| 56 |
{\endtabular\LWR@floatend} |
| 57 |
|
| 58 |
\newcounter{LTchunksize} |
| 59 |
\newcommand*{\LWR@longtable@headerror}{% |
| 60 |
\PackageError{lwarp-longtable} |
| 61 |
{For longtable:\MessageBreak |
| 62 |
1: Keep either one of an \protect\endhead\space or\MessageBreak |
| 63 |
\space\protect\endfirsthead\space phrase as-is,\MessageBreak |
| 64 |
\space to be used by both print and HTML.\MessageBreak |
| 65 |
2: Place any other \protect\end... phrases inside a\MessageBreak |
| 66 |
\space\protect\warpprintonly\space macro, |
| 67 |
to be ignored by HTML.\MessageBreak |
| 68 |
3: At the end of the table,\MessageBreak |
| 69 |
\space add a final footer for HTML\MessageBreak |
| 70 |
\space inside a \protect\warpHTMLonly\space macro. |
| 71 |
This can be\MessageBreak |
| 72 |
\space a copy of an \protect\endfoot\space or |
| 73 |
\protect\endfirstfoot\MessageBreak |
| 74 |
\space phrase, but without the actual \protect\endfoot\MessageBreak |
| 75 |
\space or \protect\endfirstfoot\space macros.\MessageBreak |
| 76 |
\space If using threeparttablex, add\MessageBreak |
| 77 |
\space \protect\insertTableNotes\space here, |
| 78 |
optionally with\MessageBreak |
| 79 |
\space \protect\UseMinipageWidths\space in front.\MessageBreak |
| 80 |
See the Lwarp documentation regarding\MessageBreak |
| 81 |
longtables and threeparttablex} |
| 82 |
{See the Lwarp documentation regading longtables and threeparttablex.} |
| 83 |
} |
| 84 |
\newcommand*{\LWR@longtable@maybeheaderror}{% |
| 85 |
\ifbool{LWR@longtable@havehead}% |
| 86 |
{\LWR@longtable@headerror}% |
| 87 |
{% |
| 88 |
\booltrue{LWR@longtable@havehead} |
| 89 |
\LWR@tabularendofline% throws away options //[dim] and //* |
| 90 |
}% |
| 91 |
} |
| 92 |
\def\endhead{\LWR@longtable@maybeheaderror} |
| 93 |
\def\endfirsthead{\LWR@longtable@maybeheaderror} |
| 94 |
\def\endfoot{\LWR@longtable@headerror} |
| 95 |
\def\endlastfoot{\LWR@longtable@headerror} |
| 96 |
\let\tabularnewline\\ |
| 97 |
\providecommand*{\LWR@HTML@tabularnewline}{\LWR@tabularendofline} |
| 98 |
\LWR@formatted{tabularnewline} |
| 99 |
\newcommand{\setlongtables}{}% Obsolete command, does nothing. |
| 100 |
\newlength{\LTleft} |
| 101 |
\newlength{\LTright} |
| 102 |
\newlength{\LTpre} |
| 103 |
\newlength{\LTpost} |
| 104 |
\newlength{\LTcapwidth} |
| 105 |
\LetLtxMacro\LWR@origkill\kill |
| 106 |
\renewcommand*{\kill}{\LWR@tabularendofline} |
| 107 |
\appto\LWR@restoreorigformatting{% |
| 108 |
\LetLtxMacro\kill\LWR@origkill% |
| 109 |
} |
| 110 |
|
| 111 |
|
| 112 |
\endinput |
| 113 |
%% |
| 114 |
%% End of file `lwarp-longtable.sty'. |