diff options
author | Karl Berry <karl@freefriends.org> | 2020-09-22 21:08:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-09-22 21:08:49 +0000 |
commit | fcde1ba3d731a6534c92efe10defa9f44a7928d4 (patch) | |
tree | bb2065bb8669d42bd0f179480ad7f32b6b6ab90b /Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty | |
parent | fa6d66c6b0713c364893aa18d4eb1e867b67fbe2 (diff) |
lwarp (22sep20)
git-svn-id: svn://tug.org/texlive/trunk@56405 c570f23f-e606-0410-a88d-b1316a301751
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{ |