| 1 |
%% |
| 2 |
%% This is file `lwarp-float.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `float') |
| 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 |
|
| 19 |
|
| 20 |
\LWR@ProvidesPackageDrop{float}[2001/11/08] |
| 21 |
|
| 22 |
\newcommand*{\LWR@floatstyle}{plain} |
| 23 |
|
| 24 |
\NewDocumentCommand{\newfloat}{m m m o}{% |
| 25 |
\IfValueTF{#4}% |
| 26 |
{\DeclareFloatingEnvironment[fileext=#3,within=#4]{#1}}% |
| 27 |
{\DeclareFloatingEnvironment[fileext=#3]{#1}}% |
| 28 |
\csedef{LWR@floatstyle@#1}{\LWR@floatstyle}% |
| 29 |
\cslet{listof#1s}\relax% |
| 30 |
\cslet{listof#1es}\relax% |
| 31 |
\cslet{l@#1}\relax% |
| 32 |
} |
| 33 |
|
| 34 |
\NewDocumentCommand{\floatname}{m +m}{% |
| 35 |
\def\LWR@tempone{#2}% |
| 36 |
\def\LWR@temptwo{\@nameuse{#1name}}% |
| 37 |
\ifdefequal{\LWR@tempone}{\LWR@temptwo}{}{% |
| 38 |
\SetupFloatingEnvironment{#1}{name=#2}% |
| 39 |
}% |
| 40 |
} |
| 41 |
|
| 42 |
\newcommand*{\floatplacement}[2]{% |
| 43 |
\SetupFloatingEnvironment{#1}{placement=#2}% |
| 44 |
} |
| 45 |
|
| 46 |
\newcommand{\floatstyle}[1]{% |
| 47 |
\def\LWR@floatstyle{#1}% |
| 48 |
}% |
| 49 |
|
| 50 |
\NewDocumentCommand{\restylefloat}{s m}{% |
| 51 |
\csedef{LWR@floatstyle@#2}{\LWR@floatstyle}% |
| 52 |
} |
| 53 |
|
| 54 |
\newcommand{\listof}{\LWR@listof} |
| 55 |
|
| 56 |
|
| 57 |
\endinput |
| 58 |
%% |
| 59 |
%% End of file `lwarp-float.sty'. |