summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/caption
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-10-03 22:44:10 +0000
committerKarl Berry <karl@freefriends.org>2018-10-03 22:44:10 +0000
commitbc810e6340a36baa5a2918ed256a605f54f04811 (patch)
treec8f9199f1458a3ad9551163a014175ba07478e41 /Master/texmf-dist/tex/latex/caption
parent55845302274b6cfc093524d6b32db3b1747626c5 (diff)
caption (3oct18)
git-svn-id: svn://tug.org/texlive/trunk@48824 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/caption')
-rw-r--r--Master/texmf-dist/tex/latex/caption/bicaption.sty14
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption.sty183
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption3.sty71
-rw-r--r--Master/texmf-dist/tex/latex/caption/ltcaption.sty18
4 files changed, 196 insertions, 90 deletions
diff --git a/Master/texmf-dist/tex/latex/caption/bicaption.sty b/Master/texmf-dist/tex/latex/caption/bicaption.sty
index 33c20d5be37..8177a7a3f93 100644
--- a/Master/texmf-dist/tex/latex/caption/bicaption.sty
+++ b/Master/texmf-dist/tex/latex/caption/bicaption.sty
@@ -37,7 +37,7 @@
%% caption-deu.tex, caption-eng.tex, and caption-rus.tex.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{bicaption}[2016/03/27 v1.1-158 Bilingual Captions (AR)]
+\ProvidesPackage{bicaption}[2018/08/26 v1.1-159 Bilingual Captions (AR)]
\RequirePackage{caption}[2016/02/01] % needs v3.3-134 or newer
\caption@AtBeginDocument{\caption@ifcompatibility{%
\caption@Error{%
@@ -116,9 +116,8 @@
\caption@ProcessOptions*{bicaption}
\let\bicaption@addcontentsline@ORI\caption@addcontentsline
\renewcommand*\caption@addcontentsline[2]{%
- \caption@ifundefined\bicaption@LT@setup{}{%
- \bicaption@LT@setup
- \global\let\bicaption@LT@setup\@undefined}%
+ \bicaption@LT@setup
+ \global\let\bicaption@LT@setup\relax
\caption@ifundefined\bicaption@lentry
{\bicaption@addcontentsline@ORI{#1}{#2}}%
{\expandafter\bicaption@addcontentsline\expandafter
@@ -226,10 +225,11 @@
\bicaption@ifswap
{\egroup\bicaption@cmd[{#3}]{#4}}%
{\egroup\bicaption@cmd[{#1}]{#2}}}
+\let\bicaption@LTsetup\relax
+\let\bicaption@LT@setup\relax
\g@addto@macro\caption@LT@setup{%
- \caption@ifundefined\bicaption@LTsetup{}{%
- \bicaption@LTsetup
- \global\let\bicaption@LTsetup\@undefined}}
+ \bicaption@LTsetup
+ \global\let\bicaption@LTsetup\relax}
\newcommand\bicaption@setup[2]{%
\def\bicaption@lentry{#1}%
\def\bicaption@text{\ignorespaces#2}}
diff --git a/Master/texmf-dist/tex/latex/caption/caption.sty b/Master/texmf-dist/tex/latex/caption/caption.sty
index d9690ed6337..0636ca6d7e5 100644
--- a/Master/texmf-dist/tex/latex/caption/caption.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption.sty
@@ -37,8 +37,8 @@
%% caption-deu.tex, caption-eng.tex, and caption-rus.tex.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2018/05/01 v3.3-147 Customizing captions (AR)]
-\RequirePackage{caption3}[2018/05/01] % needs v1.8 or newer
+\ProvidesPackage{caption}[2018/09/12 v3.3-152 Customizing captions (AR)]
+\RequirePackage{caption3}[2018/09/12] % needs v1.8c or newer
\caption@ifbool{documentclass}{}{%
\caption@WarningNoLine{%
Unsupported document class (or package) detected,\MessageBreak
@@ -287,21 +287,23 @@
}
\caption@SetupOptions{caption}{\caption@setkeys{#1}{#2}}
\caption@ProcessOptions*{caption}
-\newif\ifcaption@caption
-\newif\ifcaption@subcaption
-\newif\ifcaption@ContinuedFloat
+\newcounter{caption@flags}
+\newcommand*\caption@ifflag[1]{%
+ \@tempcnta\c@caption@flags
+ \divide\@tempcnta #1\relax
+ \ifodd\@tempcnta
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi}
+\newcommand*\caption@clrflags{%
+ \setcounter{caption@flags}\z@}
\newcommand*\caption@clrflag[1]{%
- \caption@chgflag{#1}{false}}
+ \caption@ifflag{#1}{\caption@addtoflags{-#1}}{}}
\newcommand*\caption@setflag[1]{%
- \caption@chgflag{#1}{true}}
-\newcommand*\caption@chgflag[2]{%
- \global\csname caption@#1#2\endcsname}
-\caption@AtBeginDocument{%
- \caption@ifundefined\FR@loc@{}{%
- \caption@InfoNoLine{floatrow package is loaded}%
- \g@addto@macro\FR@loc@{%
- \renewcommand*\caption@chgflag[2]{%
- \csname caption@#1#2\endcsname}}}}
+ \caption@ifflag{#1}{}{\caption@addtoflags{#1}}}
+\newcommand*\caption@addtoflags{%
+ \addtocounter{caption@flags}}
\def\caption@caption{%
\caption@iftype
{\caption@checkgrouplevel\@empty\caption
@@ -481,6 +483,44 @@
\M@gettitle{#2}%
}}%
\caption@CheckCommand\@caption{%
+ % arabicore.sty [2006/01/01 v1.0 Arabi Core switching commands (may still change)]
+ \long\def\@caption#1[#2]#3{%
+ \par
+ \addtocontents{\csname ext@#1\endcsname}{\xstring\select@language{\main@Arabi@language}}%
+ \addcontentsline{\csname ext@#1\endcsname}{#1}%
+ {\protect\numberline{\csname the#1\endcsname}{\ignorespaces \if@rl{\textRL{#2}}\else\textLR{#2}\fi}}%
+ \begingroup
+ \@parboxrestore
+ \if@minipage
+ \@setminipage
+ \fi
+ \normalsize
+ \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces \if@rl{\textRL{#3}}\else\textLR{#3}\fi}\par
+ \endgroup}}%
+ \caption@CheckCommand\@caption{%
+ % rlbabel.def [2005/03/30 v2.3h Right-to-Left support from the babel system Hebrew language support from the babel system]
+ \long\def\@caption#1[#2]#3{%
+ \par
+ \addcontentsline{\csname ext@#1\endcsname}{#1}%
+ {\protect\numberline{\csname the#1\endcsname}%
+ {\ignorespaces #2}}%
+ \def\@fignm{figure}
+ \ifx#1\@fignm\addcontentsline{fol}{#1}%
+ {\protect\numberline{\csname the#1\endcsname}%
+ {\ignorespaces #2}}\fi%
+ \def\@tblnm{table}
+ \ifx#1\@tblnm\addcontentsline{tol}{#1}%
+ {\protect\numberline{\csname the#1\endcsname}%
+ {\ignorespaces #2}}\fi%
+ \begingroup
+ \@parboxrestore
+ \if@minipage
+ \@setminipage
+ \fi
+ \normalsize
+ \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
+ \endgroup}}%
+ \caption@CheckCommand\@caption{%
% magyar.ldf [2005/03/30 v1.4j Magyar support from the babel system]
\long\def\@caption#1[#2]#3{%
\csname par\endcsname
@@ -671,6 +711,16 @@
% subfig.sty [2005/06/28 ver: 1.3 subfig package]
\def\@caption{\caption@}%
}%
+ \caption@CheckCommand\@caption{%
+ % chkfloat.sty [2012/08/19 v0.1 chkfloat: check for moved floats]
+ \def\@caption#1[#2]#3{\chkfloat@caption{#1}[#2]{#3}%
+ \addtocontents{fof}{\protect\chkfloat@{\thepage}{\chkfloat@page}{\csname fnum@#1\endcsname: #2}}%
+ }}%
+ \caption@CheckCommand\@caption{%
+ % chkfloat.sty [20??/??/?? v0.? chkfloat: check for moved floats]
+ \def\@caption#1[#2]#3{\chkfloat@caption{#1}[#2]{#3}%
+ \chkfloat@addcontentsline{#1}{#2}%
+ }}%
\caption@IfCheckCommand{}{%
\caption@InfoNoLine{%
Incompatible package detected (regarding \string\@caption).\MessageBreak
@@ -739,9 +789,7 @@
{\caption@@settype{sub}*{sub\@captype}}%
{\caption@@settype{sub}{sub\@captype}}}%
\newcommand*\caption@settype{%
- \caption@clrflag{caption}%
- \caption@clrflag{subcaption}%
- \caption@clrflag{ContinuedFloat}%
+ \caption@clrflags
\caption@set@type}
\newcommand*\caption@set@type{%
\caption@@settype{}}
@@ -880,7 +928,7 @@
\caption@Error{Continued `#1' after `\caption@CFtype'}%
\fi}
\newcommand*\caption@@ContinuedFloat{%
- \caption@setflag{ContinuedFloat}%
+ \caption@setflag1% ContinuedFloat
\caption@@@ContinuedFloat}
\newcommand*\caption@@@ContinuedFloat{%
\stepcounter{ContinuedFloat}%
@@ -909,21 +957,21 @@
{\caption@Error{No float type '#1' defined}}%
{\caption@ref@stepcounter{#1}%
\caption@fixposition
- \caption@iftop\caption@setflag\caption@clrflag{caption}%
- \caption@clrflag{subcaption}%
+ \caption@iftop\caption@setflag\caption@clrflag2% caption
+ \caption@clrflag4% subcaption
\@nameuse{donemaincaptiontrue}}}
\newcommand*\caption@ref@stepcounter{%
- \ifcaption@ContinuedFloat
+ \caption@ifflag1{% ContinuedFloat
\let\caption@tempa\caption@@refcounter
- \caption@clrflag{ContinuedFloat}%
- \else
+ \caption@clrflag1% ContinuedFloat
+ }{%
\let\caption@tempa\caption@@refstepcounter
- \ifcaption@caption \else
- \ifcaption@subcaption
+ \caption@ifflag2{}{% caption
+ \caption@ifflag4{% subcaption
\let\caption@tempa\caption@@refcounter
- \fi
- \fi
- \fi
+ }{}%
+ }%
+ }%
\caption@tempa}
\newcommand*\caption@@refcounter[1]{%
\let\caption@stepcounter@ORI\stepcounter
@@ -1010,20 +1058,21 @@
\newcommand*\caption@subtypehook{%
\ifx\caption\caption@subcaption \else
\caption@warmup
- \ifcaption@caption \else
+ \caption@ifflag2{}{% caption
\let\caption@add@contentsline\caption@addsubcontentsline
\let\caption@addsubcontentslines\@gobble
- \ifcaption@subcaption \else
- \ifcaption@ContinuedFloat
- \caption@clrflag{ContinuedFloat}%
- \else
+ \caption@ifflag4{}{% subcaption
+ \caption@ifflag1{% ContinuedFloat
+ \caption@clrflag1%
+ }{%
\caption@@stepcounter\@captype
- \fi
- \caption@setflag{subcaption}%
- \fi
- \fi
+ }%
+ \caption@setflag4% subcaption
+ }%
+ }%
\c@ContinuedFloat=0\relax
\let\caption@setfloatcapt\@firstofone
+ \let\caption@chkfloat\@gobbletwo
\caption@setbox{none}%
\caption@clearmargin
\caption@iflist{}{\let\caption@setlist\@gobble}%
@@ -1153,16 +1202,15 @@
}%
}}
\def\caption@tempa#1{%
- \@ifundefined{extras#1}\caption@AtBeginDocument\@firstofone{%
- \@ifundefined{extras#1}{}{%
- \caption@InfoNoLine{#1 babel option is loaded}%
- \expandafter\addto\csname extras#1\endcsname{%
- % reverse changes made by magyar.ldf
- \let\@makecaption\caption@makecaption
- \babel@save\@makecaption
- \caption@redefine
- \babel@save\@caption}%
- }}}
+ \@ifpackagewith{babel}{#1}{%
+ \caption@InfoNoLine{#1 babel option is loaded}%
+ \expandafter\addto\csname extras#1\endcsname{%
+ % reverse changes made by magyar.ldf
+ \let\@makecaption\caption@makecaption
+ \babel@save\@makecaption
+ \caption@redefine
+ \babel@save\@caption}%
+ }{}}
\caption@tempa{hungarian}%
\caption@tempa{magyar}%
\newcommand\caption@IfPackageLoaded[1]{%
@@ -1253,6 +1301,15 @@
}{}%
\caption@undefbool{needfreeze}}
\let\caption@warmup\relax
+\caption@IfPackageLoaded{chkfloat}[2012/08/19 v0.1]{%
+ \caption@ifundefined\chkfloat@addcontentsline{%
+ \renewcommand\caption@chkfloat[2]{%
+ \caption@ifundefined\chkfloat@page{}{%
+ \addtocontents{fof}{\protect\chkfloat@{\thepage}{\chkfloat@page}{\csname fnum@#1\endcsname: #2}}}}%
+ }{%
+ \renewcommand\caption@chkfloat{\chkfloat@addcontentsline}%
+ }%
+ }{}%
\caption@IfPackageLoaded{float}[2001/11/08 v1.3d]{%
\@ifpackageloaded{floatrow}{%
\caption@If@Package@Loaded{floatrow}[2007/08/24 v0.2a]{}{}%
@@ -1508,7 +1565,7 @@
}{}
\providecommand*\LTcaptype{table}
\caption@IfPackageLoaded{longtable}[1995/05/24 v3.14]{%
- \RequirePackage{ltcaption}[2007/09/01]%
+ \RequirePackage{ltcaption}[2018/08/26]%
\let\LT@@makecaption\@undefined
\caption@AtBeginDocument{%
\let\caption@ORI@LT@array\LT@array
@@ -1525,10 +1582,8 @@
\def\@captionabovefalse{\LT@captionsetup{position=b}}%
\def\captionlistentry{%
\noalign\bgroup
- \@ifstar{\egroup\LT@captionlistentry}% gobble *
- {\egroup\LT@captionlistentry}}%
- \def\LT@captionlistentry##1{%
- \caption@listentry\@firstoftwo[\LTcaptype]{##1}}%
+ \@ifstar{\egroup\LT@listentry}% gobble *
+ {\egroup\LT@listentry}}%
%% \let\Hy@LT@currentHlabel\@currentHlabel
%% \let\@currentHlabel\Hy@LT@currentHlabel
\def\ContinuedFloat{\noalign{%
@@ -1539,17 +1594,9 @@
\@ifstar
{\egroup\LT@c@ption\@gobble[]}%
{\egroup\caption@xdblarg{\LT@c@ption\@firstofone}}}
- \long\def\LT@c@ption#1[#2]#3{%
- \LT@makecaption#1{\csname fnum@\LTcaptype\endcsname}{#3}%
- \LT@captionlistentry{#2}}%
\renewcommand\LT@makecaption[3]{%
\caption@LT@make{%
- \caption@settype*\LTcaptype
- \ifdim\LTcapwidth=4in \else
- \setcaptionwidth\LTcapwidth
- \fi
- \caption@setoptions{longtable}%
- \caption@setoptions{@longtable}%
+ \caption@LT@settype\LTcaptype
\caption@LT@setup
\caption@setautoposition{\ifcase\LT@rows t\else b\fi}%
\caption@startrue#1\caption@starfalse
@@ -1561,6 +1608,18 @@
\caption@@make{#2}{#3}\endgraf
\caption@iftop{\vskip\abovecaptionskip}{\vskip\belowcaptionskip}%
\caption@end}}%
+ \renewcommand*\LT@listentry[2]{%
+ \begingroup
+ \caption@LT@settype{#1}%
+ \caption@listentry\@firstoftwo[#1]{#2}%
+ \endgroup}%
+ \newcommand*\caption@LT@settype[1]{%
+ \caption@settype*\LTcaptype
+ \ifdim\LTcapwidth=4in \else
+ \setcaptionwidth\LTcapwidth
+ \fi
+ \caption@setoptions{longtable}%
+ \caption@setoptions{@longtable}}
}{}
\providecommand*\caption@LT@setup{}
\caption@IfPackageLoaded{picinpar}{%
diff --git a/Master/texmf-dist/tex/latex/caption/caption3.sty b/Master/texmf-dist/tex/latex/caption/caption3.sty
index cee7781981d..8639d49fc8a 100644
--- a/Master/texmf-dist/tex/latex/caption/caption3.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption3.sty
@@ -37,7 +37,7 @@
%% caption-deu.tex, caption-eng.tex, and caption-rus.tex.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption3}[2018/05/27 v1.8a caption3 kernel (AR)]
+\ProvidesPackage{caption3}[2018/09/12 v1.8c caption3 kernel (AR)]
\providecommand\caption@FixArabTeX{%
\def\caption@tempa##1{}%
\ifx\caption@tempa\@gobble
@@ -1302,6 +1302,36 @@
\DeclareCaptionDefaultFont{labelfont}{\cph@font}
\DeclareCaptionDefaultFont{textfont}{\cpb@font}
}
+\caption@ifundefined\ArabiCoreLoaded{%
+ \let\caption@rl\@firstofone
+}{%
+ \newcommand\caption@rl[1]{\if@rl\textRL{#1}\else\textLR{#1}\fi}
+ \def\fnum@figure{\figurename\nobreakspace\thefigure}%
+ \def\fnum@table{\tablename\nobreakspace\thetable}%
+ \DeclareCaptionLabelSeparator{arabi}{ : }
+ \DeclareCaptionLabelSeparator{default}{%
+ \if@rl\caption@lsep@arabi\else\caption@lsep@colon\fi}
+ \caption@CheckCommand\@makecaption{%
+ % arabicore.sty [2006/01/01 v1.0 Arabi Core switching commands (may still change)]
+ \long\def\@makecaption#1#2{%
+ \vskip\abovecaptionskip
+ \sbox\@tempboxa{#1: #2}%
+ \sbox\@Arabitempboxa{\textRL{#2} : #1}%
+ \if@rl{
+ \ifdim \wd\@Arabitempboxa >\hsize
+ \textRL{#2} : #1\par
+ \else
+ \global \@minipagefalse
+ \hb@xt@\hsize{\hfil\box\@Arabitempboxa\hfil}%
+ \fi}\else{
+ \ifdim \wd\@tempboxa >\hsize
+ #1: #2\par
+ \else
+ \global \@minipagefalse
+ \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
+ \fi}\fi
+ \vskip\belowcaptionskip}}
+}
\caption@ifundefined\FB@makecaption{}{%
\caption@CheckCommand\@makecaption{%
% frenchb.ldf [2005/02/06 v1.6g French support from the babel system]
@@ -1361,6 +1391,14 @@
\DeclareCaptionDefaultFont{textfont}{\itshape}%
\DeclareCaptionLabelSeparator{default}{\captionseparator\space}%
}
+ \caption@CheckCommand\@makecaption{%
+ % rlbabel.def [2005/03/30 v2.3h Right-to-Left support from the babel system Hebrew language support from the babel system]
+ \long\def\@makecaption#1#2{%
+ \vskip\abovecaptionskip%
+ \begin{center}%
+ #1: #2%
+ \end{center} \par%
+ \vskip\belowcaptionskip}}%
\DeclareCaptionListFormat{subperiod}{#2.}
\caption@ifundefined\hunnewlabel{}{%
\caption@CheckCommand\@makecaption{%
@@ -1375,16 +1413,18 @@
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}}}
-\def\caption@tempa#1{\@ifundefined{extras#1}{}{%
- \expandafter\addto\csname extras#1\endcsname{%
- % change default labelsep and listformat
- \caption@setdefaultlabelsep{period}%
- \caption@setdefaultlistformat{subperiod}}%
- \expandafter\addto\csname noextras#1\endcsname{%
- % change default labelsep and listformat
- \caption@setdefaultlabelsep{colon}%
- \caption@setdefaultlistformat{subsimple}}%
-}}
+\def\caption@tempa#1{%
+ \@ifpackagewith{babel}{#1}{%
+ \caption@InfoNoLine{#1 babel option is loaded}%
+ \expandafter\addto\csname extras#1\endcsname{%
+ % change default labelsep and listformat
+ \caption@setdefaultlabelsep{period}%
+ \caption@setdefaultlistformat{subperiod}}%
+ \expandafter\addto\csname noextras#1\endcsname{%
+ % change default labelsep and listformat
+ \caption@setdefaultlabelsep{colon}%
+ \caption@setdefaultlistformat{subsimple}}%
+ }{}}
\caption@tempa{hungarian}
\caption@tempa{magyar}
\caption@IfCheckCommand{%
@@ -1425,11 +1465,13 @@
{\csname ext@#1\endcsname}%
{#1}%
{\caption@lstfmt{\@nameuse{p@#1}}{\@nameuse{the#1}}}%
- {\ignorespaces #2}}}}
+ {\ignorespaces #2}%
+ \caption@chkfloat{#1}{#2}}}}
\newcommand*\caption@add@contentsline{%
\caption@@@addcontentsline}
\newcommand*\caption@@@addcontentsline[4]{%
\addcontentsline{#1}{#2}{\protect\numberline{#3}{#4}}}
+\let\caption@chkfloat\@gobbletwo
\newcommand\caption@ifcontentsline[1]{%
\caption@iflist
{\def\@tempa{#1}}%
@@ -1591,6 +1633,7 @@
\endgroup
\fi}%
{{\captiontextfont
+ \captiontextstart
\caption@ifstrut
{\vrule\@height\ht\strutbox\@width\z@}%
{}%
@@ -1599,7 +1642,9 @@
\caption@ifstrut
{\ifhmode\@finalstrut\strutbox\fi}%
{}%
- \par}}}
+ \captiontextend}}}
+\newcommand*\captiontextstart{}
+\newcommand*\captiontextend{\par}
\newcommand\caption@ifempty[1]{%
\caption@if@empty{#1}%
\caption@ifempty\@unused}
diff --git a/Master/texmf-dist/tex/latex/caption/ltcaption.sty b/Master/texmf-dist/tex/latex/caption/ltcaption.sty
index 95b94ade609..662eb7dfeee 100644
--- a/Master/texmf-dist/tex/latex/caption/ltcaption.sty
+++ b/Master/texmf-dist/tex/latex/caption/ltcaption.sty
@@ -37,7 +37,7 @@
%% caption-deu.tex, caption-eng.tex, and caption-rus.tex.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{ltcaption}[2013/06/09 v1.4-94 longtable captions (AR)]
+\ProvidesPackage{ltcaption}[2018/08/26 v1.4-95 longtable captions (AR)]
\@ifpackageloaded{longtable}{}{%
\PackageError{ltcaption}{longtable package not loaded, aborting}{RTFM}}
\providecommand*\LTcaptype{table}
@@ -80,13 +80,7 @@
\newcommand*\caption@LT@table{table}%
\long\def\LT@c@ption#1[#2]#3{%
\LT@makecaption#1{\csname fnum@\LTcaptype\endcsname}{#3}%
- \def\@tempa{#2}%
- \ifx\@tempa\@empty\else
- {\let\\\space
- \addcontentsline{\csname ext@\LTcaptype\endcsname}{\LTcaptype}%
- {\protect\numberline{\csname the\LTcaptype\endcsname}{#2}}}%
- \fi
- \ignorespaces}
+ \LT@listentry\LTcaptype{#2}}
\renewcommand\LT@makecaption[3]{%
\LT@@makecaption{%
\sbox\@tempboxa{%
@@ -157,6 +151,14 @@
\def\next{\caption@LT@parse@ @}%
\fi\fi\fi
\next}
+\newcommand*\LT@listentry[2]{%
+ \def\@tempa{#2}%
+ \ifx\@tempa\@empty\else
+ {\let\\\space
+ \addcontentsline{\csname ext@#1\endcsname}{#1}%
+ {\protect\numberline{\csname the#1\endcsname}{#2}}}%
+ \fi
+ \ignorespaces}
\newenvironment{longtable*}{%
\let\caption@LT@type\@gobble
\let\caption@LT@raisedlink\Hy@raisedlink