summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-float.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-float.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-float.sty15
1 files changed, 11 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-float.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-float.sty
index 8d7469b0057..3e38b6cd48d 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-float.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-float.sty
@@ -17,28 +17,35 @@
%% version 2005/12/01 or later.
-\LWR@ProvidesPackageDrop{float}[2016/03/04]
+\LWR@ProvidesPackageDrop{float}[2001/11/08]
+\newcommand*{\LWR@floatstyle}{plain}
+
\NewDocumentCommand{\newfloat}{m m m o}{%
\IfValueTF{#4}%
{\DeclareFloatingEnvironment[fileext=#3,within=#4]{#1}}%
{\DeclareFloatingEnvironment[fileext=#3]{#1}}%
+\csedef{LWR@floatstyle@#1}{\LWR@floatstyle}%
\cslet{listof#1s}\relax%
\cslet{listof#1es}\relax%
+\cslet{l@#1}\relax%
}
\NewDocumentCommand{\floatname}{m +m}{%
-\SetupFloatingEnvironment{#1}{name=#2}%
+ \SetupFloatingEnvironment{#1}{name=#2}%
}
\newcommand*{\floatplacement}[2]{%
-\SetupFloatingEnvironment{#1}{placement=#2}%
+ \SetupFloatingEnvironment{#1}{placement=#2}%
}
-\newcommand{\floatstyle}[1]{}
+\newcommand{\floatstyle}[1]{%
+ \def\LWR@floatstyle{#1}%
+}
\NewDocumentCommand{\restylefloat}{s m}{%
+ \csedef{LWR@floatstyle@#2}{\LWR@floatstyle}%
}
\endinput