diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty | 17 |
1 files changed, 5 insertions, 12 deletions
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% } |