Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-floatflt.sty

raw
1 %%
2 %% This is file `lwarp-floatflt.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `floatflt')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackageDrop{floatflt}[1997/07/16]
19 \NewDocumentEnvironment{KFLTfloatflt@marginfloat}{O{-1.2ex} m m}
20 {%
21 \begin{LWR@setvirtualpage}*%
22 \ifblank{#3}{%
23 \LWR@BlockClassWP{%
24 float:right; %
25 width: 1.5in; % reasonable dummy width for word processor
26 margin:10pt%
27 }{}%
28 (note)%
29 {marginblock}%
30 }{%
31 \setlength{\LWR@templengthone}{#3}%
32 \LWR@BlockClassWP{%
33 float:right; %
34 width:\LWR@printlength{\LWR@templengthone}; % extra space
35 margin:10pt%
36 }{%
37 width:\LWR@printlength{\LWR@templengthone}%
38 }%
39 (note)%
40 {marginblock}%
41 }%
42 \renewcommand*{\@captype}{#2}%
43 }
44 {%
45 \endLWR@BlockClassWP%
46 \end{LWR@setvirtualpage}%
47 }
48 \DeclareDocumentEnvironment{floatingfigure}{o m}
49 {\begin{KFLTfloatflt@marginfloat}{figure}{#2}}
50 {\end{KFLTfloatflt@marginfloat}}
51 \DeclareDocumentEnvironment{floatingtable}{o}
52 {\begin{KFLTfloatflt@marginfloat}{table}{}}
53 {\end{KFLTfloatflt@marginfloat}}
54
55 \endinput
56 %%
57 %% End of file `lwarp-floatflt.sty'.