diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty index 045f77844bb..97e5d4aad5e 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-longtable.sty @@ -23,10 +23,14 @@ \boolfalse{LWR@longtable@havehead} \newenvironment{longtable*}[2][]{% \LWR@floatbegin{table}% - \setcaptiontype{\LTcaptype}% - \caption@setoptions{longtable}% - \caption@setoptions{@longtable}% - \caption@LT@setup% + \ifdef{\setcaptiontype}{% caption package: + \setcaptiontype{\LTcaptype}% + \caption@setoptions{longtable}% + \caption@setoptions{@longtable}% + \caption@LT@setup% + }{% w/o caption package: + \renewcommand*{\@captype}{\LTcaptype}% + }% \booltrue{LWR@starredlongtable}% \boolfalse{LWR@longtable@havehead}% \let\captionlistentry\LWR@LTcaptionlistentry% @@ -36,10 +40,14 @@ \newenvironment{longtable}[2][]{% \LWR@floatbegin{table}% - \setcaptiontype{\LTcaptype}% - \caption@setoptions{longtable}% - \caption@setoptions{@longtable}% - \caption@LT@setup% + \ifdef{\setcaptiontype}{% caption package: + \setcaptiontype{\LTcaptype}% + \caption@setoptions{longtable}% + \caption@setoptions{@longtable}% + \caption@LT@setup% + }{% w/o caption package: + \renewcommand*{\@captype}{\LTcaptype}% + }% \refstepcounter{\LTcaptype}% \boolfalse{LWR@longtable@havehead}% \let\captionlistentry\LWR@LTcaptionlistentry% @@ -49,7 +57,7 @@ \newcounter{LTchunksize} \newcommand*{\LWR@longtable@headerror}{% - \PackageError{lwarp} + \PackageError{lwarp-longtable} {For longtable:\MessageBreak 1: Keep either one of an \protect\endhead\space or \protect\endfirsthead\space\MessageBreak |