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 | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty index a06098999c7..d5d2b20fc1b 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty @@ -64,16 +64,15 @@ } \AtBeginDocument{ - \def\@xfloat#1[#2]{% - \caption@ORI@xfloat{#1}[#2]% - \caption@settype{#1}% - \LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment% - }% - \def\@xdblfloat#1[#2]{% required for token capture - \caption@ORI@xfloat{#1}[#2]% - \caption@settype{#1}% - \LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment% - }% +\xapptocmd{\@xfloat} + {\LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment} + {} + {\LWR@patcherror{caption}{@xfloat}} + +\xapptocmd{\@xdblfloat} + {\LWR@futurenonspacelet\LWR@mynexttoken\LWR@floatalignment} + {} + {\LWR@patcherror{caption}{@xdblfloat}} } \caption@AtBeginDocument{ |