diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-03 21:11:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-03 21:11:36 +0000 |
commit | 1ebdcbffb0e852f50e0dc8f4dfcadee48c11e105 (patch) | |
tree | 284bf3e58f49258f886d0d249392c362534f1057 /Master/texmf-dist/tex/latex/lwarp/lwarp-thm-listof.sty | |
parent | 0336e88519ba904a7bd8a2721a15dec5ca54dccf (diff) |
lwarp (3sep20)
git-svn-id: svn://tug.org/texlive/trunk@56255 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-thm-listof.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-thm-listof.sty | 50 |
1 files changed, 28 insertions, 22 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-thm-listof.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-thm-listof.sty index 1dd54ad38d9..2a66e72c96f 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-thm-listof.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-thm-listof.sty @@ -16,29 +16,35 @@ %% and version 1.3 or later is part of all distributions of LaTeX %% version 2005/12/01 or later. \LWR@ProvidesPackagePass{thm-listof}[2019/12/22] -\xpatchcmd{\listoftheorems} - {% - \@xa\protected@edef\csname l@\thmt@envname\endcsname{% - \@nx\@dottedtocline{1}{1.5em}{\@nx\thmt@listnumwidth}% - }% - } - {% - \csdef{l@\thmt@envname}##1##2{\hypertocfloat{1}{figure}{lof}{##1}{##2}}% - } - {} - {\LWR@patcherror{thm-listof}{listoftheorems}} +\@ifpackagelater{thm-listof}{2020/08/01}{% v0.72 + \def\thmtlo@newentry{% + \csdef{l@\thmt@envname}##1##2{\hypertocfloat{1}{figure}{lof}{##1}{##2}}% + } +}{% earlier than v0.72 + \xpatchcmd{\listoftheorems} + {% + \@xa\protected@edef\csname l@\thmt@envname\endcsname{% + \@nx\@dottedtocline{1}{1.5em}{\@nx\thmt@listnumwidth}% + }% + } + {% + \csdef{l@\thmt@envname}##1##2{\hypertocfloat{1}{figure}{lof}{##1}{##2}}% + } + {} + {\LWR@patcherror{thm-listof}{listoftheorems}} -\xpatchcmd{\thmt@mklistcmd} - {% - \@xa\protected@edef\csname l@\thmt@envname\endcsname{% - \@nx\@dottedtocline{1}{1.5em}{\@nx\thmt@listnumwidth}% - }% - } - {% - \csdef{l@\thmt@envname}##1##2{\hypertocfloat{1}{figure}{lof}{##1}{##2}}% - } - {} - {\LWR@patcherror{thm-listof}{thmt@mklistcmd}} + \xpatchcmd{\thmt@mklistcmd} + {% + \@xa\protected@edef\csname l@\thmt@envname\endcsname{% + \@nx\@dottedtocline{1}{1.5em}{\@nx\thmt@listnumwidth}% + }% + } + {% + \csdef{l@\thmt@envname}##1##2{\hypertocfloat{1}{figure}{lof}{##1}{##2}}% + } + {} + {\LWR@patcherror{thm-listof}{thmt@mklistcmd}} +} \endinput %% %% End of file `lwarp-thm-listof.sty'. |