summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-patch-komascript.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-patch-komascript.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-patch-komascript.sty10
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-patch-komascript.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-patch-komascript.sty
index dd06b49ac3f..fd375bea782 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-patch-komascript.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-patch-komascript.sty
@@ -53,11 +53,13 @@
\renewcommand{\chapter@preamble}{#3}%
}
}
-\LetLtxMacro\captionbelow\caption
-\LetLtxMacro\captionabove\caption
+\AtBeginDocument{
+ \LetLtxMacro\captionbelow\caption
+ \LetLtxMacro\captionabove\caption
-\LetLtxMacro\captionofbelow\captionof
-\LetLtxMacro\captionofabove\captionof
+ \LetLtxMacro\captionofbelow\captionof
+ \LetLtxMacro\captionofabove\captionof
+}
\RenewDocumentEnvironment{captionbeside}{o m o o o s}
{}