diff options
author | Karl Berry <karl@freefriends.org> | 2020-02-01 22:15:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-02-01 22:15:59 +0000 |
commit | c8207abfb915eadf93a76cb1e35a98ddfbcb6e06 (patch) | |
tree | e256e0f1f66796a7552f05d040344ede71c68a0b /Master/texmf-dist/tex/latex/lwarp/lwarp-floatflt.sty | |
parent | dd60ac9c1cfb4d948b0227a6368ceb47d8f0fbb7 (diff) |
lwarp (1feb20)
git-svn-id: svn://tug.org/texlive/trunk@53632 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-floatflt.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-floatflt.sty | 37 |
1 files changed, 24 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-floatflt.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-floatflt.sty index 4634807b919..741d258186e 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-floatflt.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-floatflt.sty @@ -6,7 +6,7 @@ %% %% lwarp.dtx (with options: `floatflt') %% 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 @@ -18,25 +18,36 @@ \LWR@ProvidesPackageDrop{floatflt}[1997/07/16] \NewDocumentEnvironment{KFLTfloatflt@marginfloat}{O{-1.2ex} m m} {% -\setlength{\LWR@templengthone}{#3}% -\LWR@BlockClassWP{% - float:right; % - width:\LWR@printlength{\LWR@templengthone}; % extra space - margin:10pt% -}{% - width:\LWR@printlength{\LWR@templengthone}% -}% -{marginblock}% -\captionsetup{type=#2}% + \begin{LWR@setvirtualpage}*% + \ifblank{#3}{% + \LWR@BlockClassWP{% + float:right; % + width: 1.5in; % reasonable dummy width for word processor + margin:10pt% + }{}% + {marginblock}% + }{% + \setlength{\LWR@templengthone}{#3}% + \LWR@BlockClassWP{% + float:right; % + width:\LWR@printlength{\LWR@templengthone}; % extra space + margin:10pt% + }{% + width:\LWR@printlength{\LWR@templengthone}% + }% + {marginblock}% + }% + \captionsetup{type=#2}% } {% -\endLWR@BlockClassWP% + \endLWR@BlockClassWP% + \end{LWR@setvirtualpage}% } \DeclareDocumentEnvironment{floatingfigure}{o m} {\begin{KFLTfloatflt@marginfloat}{figure}{#2}} {\end{KFLTfloatflt@marginfloat}} \DeclareDocumentEnvironment{floatingtable}{o} - {\begin{KFLTfloatflt@marginfloat}{table}{1.5in}} + {\begin{KFLTfloatflt@marginfloat}{table}{}} {\end{KFLTfloatflt@marginfloat}} \endinput %% |