From cf12bb505e9a4455ac9fb495f04cf7a2d079186c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 16 Jul 2019 21:14:36 +0000 Subject: lwarp (16jul19) git-svn-id: svn://tug.org/texlive/trunk@51653 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty') diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty index 186fab5ffc4..9e0808fb78f 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty @@ -51,19 +51,10 @@ \LWR@traceinfo{caption@iiibox: done}% } -\def\caption@caption{% - \caption@iftype - {% - \caption@checkgrouplevel\@empty\caption - \caption@star - {\caption@refstepcounter\@captype}% - {\caption@dblarg{\@caption\@captype}}}% - {\caption@Error{\noexpand\caption outside float}% - \caption@gobble}% -} \long\def\caption@@caption#1[#2]#3{% - \ifcaption@star \else + \ifcaption@star + \else \caption@prepareanchor{#1}{#2}% \memcaptioninfo{#1}{\csname the#1\endcsname}{#2}{#3}% \@nameuse{nag@hascaptiontrue}% @@ -78,9 +69,11 @@ \caption@normalsize \ifcaption@star \let\caption@makeanchor\@firstofone - \fi + #3% lwarp + \else% lwarp \@makecaption{\csname fnum@#1\endcsname}% {\ignorespaces\caption@makeanchor{#3}}% + \fi% lwarp \caption@if@minipage\@minipagetrue\@minipagefalse}% \caption@end% } -- cgit v1.2.3