summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-22 21:08:49 +0000
committerKarl Berry <karl@freefriends.org>2020-09-22 21:08:49 +0000
commitfcde1ba3d731a6534c92efe10defa9f44a7928d4 (patch)
treebb2065bb8669d42bd0f179480ad7f32b6b6ab90b /Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty
parentfa6d66c6b0713c364893aa18d4eb1e867b67fbe2 (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.sty19
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{