summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty30
1 files changed, 15 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty
index 3174d3856b4..8bfd8b4e3d7 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-wrapfig.sty
@@ -43,35 +43,35 @@
\NewDocumentEnvironment{wrapfigure}{o m o m}
{%
-\begin{LWR@setvirtualpage}*%
-\LWR@subwrapfigure{#2}{#4}%
-\captionsetup{type=figure}%
+ \begin{LWR@setvirtualpage}*%
+ \LWR@subwrapfigure{#2}{#4}%
+ \renewcommand*{\@captype}{figure}%
}
{%
-\endLWR@BlockClassWP%
-\end{LWR@setvirtualpage}%
+ \endLWR@BlockClassWP%
+ \end{LWR@setvirtualpage}%
}
\NewDocumentEnvironment{wraptable}{o m o m}
{%
-\begin{LWR@setvirtualpage}*%
-\LWR@subwrapfigure{#2}{#4}%
-\captionsetup{type=table}%
+ \begin{LWR@setvirtualpage}*%
+ \LWR@subwrapfigure{#2}{#4}%
+ \renewcommand*{\@captype}{table}%
}
{%
-\endLWR@BlockClassWP%
-\end{LWR@setvirtualpage}%
+ \endLWR@BlockClassWP%
+ \end{LWR@setvirtualpage}%
}
\NewDocumentEnvironment{wrapfloat}{m o m o m}
{%
-\begin{LWR@setvirtualpage}*%
-\LWR@subwrapfigure{#3}{#5}%
-\captionsetup{type=#1}%
+ \begin{LWR@setvirtualpage}*%
+ \LWR@subwrapfigure{#3}{#5}%
+ \renewcommand*{\@captype}{#1}%
}
{%
-\endLWR@BlockClassWP%
-\end{LWR@setvirtualpage}%
+ \endLWR@BlockClassWP%
+ \end{LWR@setvirtualpage}%
}
\newlength{\wrapoverhang}