summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty35
1 files changed, 18 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty
index 6e012e77f57..4d86eb3fee4 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty
@@ -6,7 +6,7 @@
%%
%% lwarp.dtx (with options: `floatrow')
%% This is a generated file.
-%% Copyright 2016-2019 Brian Dunn
+%% Copyright 2016-2020 Brian Dunn
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -97,15 +97,13 @@
\newfloatcommand{fcapside}{figure}[\capbeside][]
\newenvironment*{floatrow}[1][2]
-{
-\LWR@forcenewpage
-\BlockClass{floatrow}
-\booltrue{LWR@infloatrow}
-\setlength{\linewidth}{6in/#1}
+{%
+ \begin{LWR@setvirtualpage}*%
+ \BlockClass{floatrow}%
}
{
-\boolfalse{LWR@infloatrow}
-\endBlockClass
+ \endBlockClass%
+ \end{LWR@setvirtualpage}%
}
\newcommand*{\LWR@frowkeyplacement}{}
\newcommand*{\LWR@frowkeyname}{}
@@ -130,20 +128,23 @@
\LWR@traceinfo{finished setkeys frowkeys}%
\ifthenelse{\equal{\LWR@frowkeywithin}{}}%
{%
- \LWR@traceinfo{about to newfloat #1 \LWR@frowkeyplacement\ %
- \LWR@frowkeyfileext}%
- \newfloat{#1}{\LWR@frowkeyplacement}{\LWR@frowkeyfileext}%
+ \DeclareFloatingEnvironment[
+ placement=\LWR@frowkeyplacement,
+ fileext=\LWR@frowkeyfileext
+ ]{#1}%
}%
{%
- \LWR@traceinfo{about to newfloat #1\ \LWR@frowkeyplacement\ %
- \LWR@frowkeyfileext\ \LWR@frowkeywithin}%
- \newfloat{#1}{\LWR@frowkeyplacement}%
- {\LWR@frowkeyfileext}[\LWR@frowkeywithin]%
- \LWR@traceinfo{finished newfloat #1}%
+ \DeclareFloatingEnvironment[
+ placement=\LWR@frowkeyplacement,
+ fileext=\LWR@frowkeyfileext,
+ within=\LWR@frowkeywithin
+ ]{#1}%
}%
\ifthenelse{\equal{\LWR@frowkeyname}{}}%
{}%
- {\floatname{#1}{\LWR@frowkeyname}}%
+ {%
+ \SetupFloatingEnvironment{#1}{name={\LWR@frowkeyname}}%
+ }%
}
\newcommand{\buildFBBOX}[2]{}