From db28af0c6e1e6a1e6ccd86b36e0741fefe34e830 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 6 Mar 2019 22:24:57 +0000 Subject: lwarp (6mar19) git-svn-id: svn://tug.org/texlive/trunk@50266 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/lwarp/lwarp-longtable.sty | 44 ++++++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty') diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty index 00d7a5815a0..30a6da0545e 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty @@ -19,6 +19,8 @@ \LWR@ProvidesPackageDrop{longtable}[2014/10/28] +\newbool{LWR@longtable@havehead} +\boolfalse{LWR@longtable@havehead} \newenvironment{longtable*}[2][]{% \LWR@floatbegin{table}% \setcaptiontype{\LTcaptype}% @@ -26,6 +28,7 @@ \caption@setoptions{@longtable}% \caption@LT@setup% \booltrue{LWR@starredlongtable}% +\boolfalse{LWR@longtable@havehead}% \let\captionlistentry\LWR@LTcaptionlistentry% \tabular{#2} } @@ -38,16 +41,49 @@ \caption@setoptions{@longtable}% \caption@LT@setup% \refstepcounter{\LTcaptype}% +\boolfalse{LWR@longtable@havehead}% \let\captionlistentry\LWR@LTcaptionlistentry% \tabular{#2} } {\endtabular\LWR@floatend} \newcounter{LTchunksize} -\def\endhead{\LWR@tabularendofline}% throws away options //[dim] and //* -\def\endfirsthead{\LWR@tabularendofline} -\def\endfoot{\LWR@tabularendofline} -\def\endlastfoot{\LWR@tabularendofline} +\newcommand*{\LWR@longtable@headerror}{% + \PackageError{lwarp} + {For longtable:\MessageBreak + 1: Keep either one of an \protect\endhead\space or + \protect\endfirsthead\space\MessageBreak + \space phrase as-is, to be used by both print and HTML.\MessageBreak + 2: Place any other \protect\end... phrases inside a\MessageBreak + \space\protect\warpprintonly\space macro, + to be ignored by HTML.\MessageBreak + 3: Add a final footer for HTML at the end of the table\MessageBreak + \space inside a \protect\warpHTMLonly\space macro. + This can be\MessageBreak + \space a copy of an \protect\endfoot\space or + \protect\endfirstfoot\space phrase,\MessageBreak + \space but without the actual \protect\endfoot\space + or \protect\endfirstfoot\MessageBreak + \space macros. If using threeparttablex, add\MessageBreak + \space \protect\insertTableNotes\space here, + optionally with\MessageBreak + \space \protect\UseMinipageWidths\space in front.\MessageBreak + See the lwarp documentation regarding longtables\MessageBreak + and threeparttablex} + {See the lwarp documentation regading longtables and threeparttablex.} +} +\newcommand*{\LWR@longtable@maybeheaderror}{% +\ifbool{LWR@longtable@havehead}% + {\LWR@longtable@headerror}% + {% + \booltrue{LWR@longtable@havehead} + \LWR@tabularendofline% throws away options //[dim] and //* + }% +} +\def\endhead{\LWR@longtable@maybeheaderror} +\def\endfirsthead{\LWR@longtable@maybeheaderror} +\def\endfoot{\LWR@longtable@headerror} +\def\endlastfoot{\LWR@longtable@headerror} \newcommand\tabularnewline{\LWR@tabularendofline} \newcommand{\setlongtables}{}% Obsolete command, does nothing. \newlength{\LTleft} -- cgit v1.2.3