You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
tex-compiler/texmf-dist/tex/latex/lwarp/lwarp-floatrow.sty

186 lines
4.3 KiB

%%
%% This is file `lwarp-floatrow.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% lwarp.dtx (with options: `floatrow')
%% This is a generated file.
%% 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
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
\LWR@ProvidesPackageDrop{floatrow}[2008/08/02]
\newbool{LWR@subcaptionloaded}
\AtBeginDocument{
\@ifpackageloaded{subcaption}
{\booltrue{LWR@subcaptionloaded}}
{\boolfalse{LWR@subcaptionloaded}}
}
\NewDocumentCommand{\floatbox}{o m o o o +m +m}{%
\ifbool{LWR@subcaptionloaded}%
{% subcaption
\ifbool{LWR@insubfloatrow}%
{% subcaption in a subfloatrow
\IfValueTF{#3}%
{\@nameuse{sub#2}{#3}}%
{\@nameuse{sub#2}{\linewidth}}%
}% subcaption in a subfloatrow
{% subcaption not in subfloatrow
\@nameuse{#2}%
}% subcaption not in subfloatrow
#6
#7
\ifbool{LWR@insubfloatrow}%
{\@nameuse{endsub#2}}%
{\@nameuse{end#2}}%
}% subcaption
{% assume subfig
\ifbool{LWR@insubfloatrow}%
{% subfig in a subfloatrow
\begingroup
\let\caption\@firstofone
\subfloat[#6]{#7}
\endgroup
}% subfig in a subfloatrow
{% subfig package, but not a subfig
\@nameuse{#2}
#6
#7
\@nameuse{end#2}
}% subfig package, but not a subfig
}% assume subfig
}
\newcommand*{\nocapbeside}{}
\newcommand*{\capbeside}{}
\newcommand*{\captop}{}
\newlength{\FBwidth}
\setlength{\FBwidth}{.3\linewidth}
\newlength{\FBheight}
\setlength{\FBheight}{2in}
\newcommand*{\useFCwidth}{}
\newcommand{\floatsetup}[2][]{}
\newcommand{\thisfloatsetup}[1]{}
\newcommand{\clearfloatsetup}[1]{}
\newcommand*{\killfloatstyle}{}
\NewDocumentCommand{\newfloatcommand}{m m o o}{%
\@namedef{#1}{
\floatbox{#2}
}
}
\NewDocumentCommand{\renewfloatcommand}{m m o o}{%
\@namedef{#1}{%
\floatbox{#2}
}
}
\newfloatcommand{ffigbox}{figure}[\nocapbeside][]
\newfloatcommand{ttabbox}{table}[\captop][\FBwidth]
\newfloatcommand{fcapside}{figure}[\capbeside][]
\newenvironment*{floatrow}[1][2]
{%
\begin{LWR@setvirtualpage}*%
\BlockClass{floatrow}%
}
{
\endBlockClass%
\end{LWR@setvirtualpage}%
}
\newcommand*{\LWR@frowkeyplacement}{}
\newcommand*{\LWR@frowkeyname}{}
\newcommand*{\LWR@frowkeyfileext}{}
\newcommand*{\LWR@frowkeywithin}{}
\newcommand*{\LWR@frowkeycapstyle}{}
\define@key{frowkeys}{placement}{}%
\define@key{frowkeys}{name}{\renewcommand{\LWR@frowkeyname}{#1}}%
\define@key{frowkeys}{fileext}{\renewcommand{\LWR@frowkeyfileext}{#1}}%
\define@key{frowkeys}{within}{\renewcommand{\LWR@frowkeywithin}{#1}}%
\define@key{frowkeys}{relatedcapstyle}{}%
\newcommand*{\DeclareNewFloatType}[2]{%
\renewcommand*{\LWR@frowkeyplacement}{}%
\renewcommand*{\LWR@frowkeyname}{}%
\renewcommand*{\LWR@frowkeyfileext}{}%
\renewcommand*{\LWR@frowkeywithin}{}%
\renewcommand*{\LWR@frowkeycapstyle}{}%
\LWR@traceinfo{about to setkeys frowkeys}%
\setkeys{frowkeys}{#2}%
\LWR@traceinfo{finished setkeys frowkeys}%
\ifthenelse{\equal{\LWR@frowkeywithin}{}}%
{%
\DeclareFloatingEnvironment[
placement=\LWR@frowkeyplacement,
fileext=\LWR@frowkeyfileext
]{#1}%
}%
{%
\DeclareFloatingEnvironment[
placement=\LWR@frowkeyplacement,
fileext=\LWR@frowkeyfileext,
within=\LWR@frowkeywithin
]{#1}%
}%
\ifthenelse{\equal{\LWR@frowkeyname}{}}%
{}%
{%
\SetupFloatingEnvironment{#1}{name={\LWR@frowkeyname}}%
}%
}
\newcommand{\buildFBBOX}[2]{}
\newcommand*{\CenterFloatBoxes}{}
\newcommand*{\TopFloatBoxes}{}
\newcommand*{\BottomFloatBoxes}{}
\newcommand*{\PlainFloatBoxes}{}
\newcommand{\capsubrowsettings}{}
\NewDocumentCommand{\RawFloats}{o o}{}
\newcommand{\RawCaption}[1]{#1}
\NewDocumentCommand{\floatfoot}{s +m}{%
\begin{BlockClass}{floatfoot}
#2
\end{BlockClass}
}
\newbool{LWR@insubfloatrow}
\boolfalse{LWR@insubfloatrow}
\newenvironment*{subfloatrow}[1][2]
{
\LWR@forcenewpage
\BlockClass{floatrow}
\begingroup%
\booltrue{LWR@insubfloatrow}%
}
{%
\endgroup%
\endBlockClass%
\boolfalse{LWR@insubfloatrow}%
}
\endinput
%%
%% End of file `lwarp-floatrow.sty'.