diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-26 22:30:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-26 22:30:46 +0000 |
commit | 0fd2403a0f4b13aaa511dc96740e6d3bc46a3b1b (patch) | |
tree | 152bbbf91e237e065b13f4e5489871cefc1264e4 /Master/texmf-dist/source | |
parent | 58ae8ff32e96babab9565a8a03521b84314b5ef5 (diff) |
floatrow 0.1j (24jul06)
git-svn-id: svn://tug.org/texlive/trunk@1925 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/floatrow/floatrow.dtx | 2106 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/floatrow/floatrow.ins | 2 |
2 files changed, 1249 insertions, 859 deletions
diff --git a/Master/texmf-dist/source/latex/floatrow/floatrow.dtx b/Master/texmf-dist/source/latex/floatrow/floatrow.dtx index 01ccd3d3174..3b1c2bed19c 100644 --- a/Master/texmf-dist/source/latex/floatrow/floatrow.dtx +++ b/Master/texmf-dist/source/latex/floatrow/floatrow.dtx @@ -1,15 +1,15 @@ % \iffalse % floatrow.dtx - The float row package (extension of float package) -% (c) 2004-2005 Olga Lapko (Lapko.O@g23.relcom.ru) +% (c) 2004-2006 Olga Lapko (Lapko.O@g23.relcom.ru) % % This package borrowed code (core parts) from: % float package 2001/11/08 v1.3d, -% Copyright (C) 1991-2000 Anselm Lingnau +% Copyright (c) 1991-2000 Anselm Lingnau % rotfloat package, 2002/02/02 v1.1, % Copyright (c) 1995-2002 Axel Sommerfeldt % % During creation of floatsetup stuff there was borrowed code structure -% from caption package v3.x ((c) 1994-2005 by Axel Sommerfeldt) +% from caption package v3.x ((c) 1994-2006 Axel Sommerfeldt) % % This program is provided under the terms of the % LaTeX Project Public License distributed from CTAN @@ -18,15 +18,17 @@ %<*dtx> \ProvidesFile{floatrow.dtx} %</dtx> -%<floatrow,frfancy,floatpagestyle>\NeedsTeXFormat{LaTeX2e}[1995/06/01] +%<floatrow,frfancy,floatpagestyle,listpen>\NeedsTeXFormat{LaTeX2e}[1995/06/01] %<floatrow>\ProvidesPackage{floatrow} %<frfancy>\ProvidesPackage{fr-fancy} %<floatpagestyle>\ProvidesPackage{floatpagestyle} +%<listpen>\ProvidesPackage{listpen} % % \ProvidesFile{floatrow.dtx} -%<floatrow> [2005/07/15 v0.1g floatrow package: the float package extension] +%<floatrow> [2006/07/24 v0.1j floatrow: float package extension] %<frfancy> [2005/07/15 v0.1g floatrow: fancy boxes] -%<floatpagestyle> [2005/07/15 v0.1g floating page style] +%<floatpagestyle> [2005/10/02 v0.1h floating page style] +%<listpen> [2005/02/07 v0.1a list penalty managing] % %<*driver> \input pictures @@ -40,11 +42,14 @@ \IfFileExists{footmisc.sty}{\usepackage[perpage]{footmisc}}{} -\usepackage{floatpagestyle} +\usepackage{floatpagestyle,flafplins} -\usepackage[font=small,labelfont=bf,labelsep=period,justification=centerlast]% +\usepackage[font=small,labelfont=bf,labelsep=period, + justification=centerlast] {caption}[2004/11/28] -\usepackage[format=default,justification=centerlast,labelfont=up]{subfig}[2005/06/28] +\usepackage[format=default,justification=centerlast, + labelfont=up] + {subfig}[2005/06/28] \IfFileExists{rotating.sty}{\usepackage[figuresright]{rotating}}{} @@ -54,8 +59,9 @@ %^^A\RequirePackage[writefile]{listings}[2004/09/07] \usepackage[style=plain,font=small,footskip=.5\skip\footins, - footnoterule=fullsize,margins=centering,objectset=centering,floatrowsep=qquad, - captionskip=5pt,capbesidesep=quad,facing=yes,capbesideposition=inside]{floatrow} + footnoterule=fullsize,margins=centering,objectset=centering, + floatrowsep=qquad,captionskip=5pt,capbesidesep=quad, + facing=yes,capbesideposition=inside]{floatrow} \usepackage{fr-fancy} @@ -68,8 +74,8 @@ \IfFileExists{makecell.sty}{\usepackage{makecell}}{} \makeatletter \@ifundefined{thead}% - {\newcommand\thead[1]{\footnotesize - \raisebox{0pt}[\height+\jot][\depth+\jot]{\begin{tabular}{@{}c@{}} #1\end{tabular}}} + {\newcommand\thead[1]{\footnotesize\raisebox + {0pt}[\height+\jot][\depth+\jot]{\begin{tabular}{@{}c@{}} #1\end{tabular}}} %^^A For this documentation only \def\multirowthead#1[#2]#3{\raisebox{-1.5ex}{\thead{#3}}}}{} \makeatother @@ -82,7 +88,8 @@ \floatstyle{ruled} \newfloat{Program}{tbp}{lop}[section] -\DeclareFloatStyle{MyBoxed}{style=Boxed,captionskip=5pt,frameset={\fboxrule1pt\fboxsep12pt}} +\DeclareFloatStyle{MyBoxed}{style=Boxed, + captionskip=5pt,frameset={\fboxrule1pt\fboxsep12pt}} \DeclareFloatVCode{lowthickrule}{\kern2pt\hrule height.8ptdepth0pt} \DeclareNewFloatType{Example}% @@ -96,10 +103,12 @@ \newfloatcommand{fcapsideleft}{figure}[{\capbeside \captionsetup[capbesidefigure]{format=break,labelsep=none, - justification=raggedleft}\thisfloatsetup{capbesideposition=left}}][\FBwidth] + justification=raggedleft}% + \thisfloatsetup{capbesideposition=left}}][\FBwidth] \newfloatcommand{fcapsideright}{figure}[{\capbeside \captionsetup[capbesidefigure]{format=break,labelsep=none, - justification=raggedright}\thisfloatsetup{capbesideposition=right}}][\FBwidth] + justification=raggedright}% + \thisfloatsetup{capbesideposition=right}}][\FBwidth] %^^A ----------------------- \def\rightlast{\leftskip0ptplus1fil @@ -110,8 +119,9 @@ \DeclareCaptionJustification{togglelast} {\floatfacing*\rightlast\leftlast} \DeclareCaptionStyle{capbesidefigure}{justification=togglelast} -\captionsetup[table]% - {format=flushrightlabel,textfont=bf,labelsep=none,labelfont=sl,captionskip=5pt} +\captionsetup[table] + {format=flushrightlabel,textfont=bf,labelsep=none, + labelfont=sl,captionskip=5pt} \captionsetup[capbesidefigure]{justification=togglelast} \captionsetup[floatfoot]{format=default} @@ -136,7 +146,8 @@ \newcommand\Resizebox[5]{\setbox0\hbox{\setlength\unitlength{#1/#3}%^^A \ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi{#5}}%^^A \@tempdima\ht0\advance\@tempdima\dp0%^^A - \ifdim\@tempdima>#2\setlength\unitlength{#2/#4}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi + \ifdim\@tempdima>#2\setlength\unitlength{#2/#4}\ifx\pspicture\undefined + \else\psset{unit=\unitlength}\fi {#5}\else\box0\fi} \providecommand*{\file}[1]{\texttt{#1}} @@ -169,6 +180,7 @@ \OnlyDescription \let\PrintChanges\relax +\let\PrintIndex\relax \EnableCrossrefs \RecordChanges \begin{document} @@ -178,17 +190,18 @@ %</driver> % \fi % -% \CheckSum{4182} +% \CheckSum{4187} % % -% \changes{v0.1e}{2005/03/22}{The user documentation loaded inside \file{floatrow.dtx}.} +% \changes{v0.1e}{2005/03/22}{The user documentation loaded inside +% \file{floatrow.dtx}.} % % \GetFileInfo{floatrow.dtx} % % \ifx\pspicture\undefined\else\psset{unit=1pt}\fi % -% \def\fileversion{v0.1g} -% \def\filedate{2005/07/15} +% \def\fileversion{v0.1j} +% \def\filedate{2006/07/24} % \title{The \pkg{floatrow} package\thanks{This % file has version number \fileversion, last revised % \filedate.}} @@ -201,10 +214,11 @@ % % \begin{abstract} % This package was created like extension or addition of \pkg{float} -% package. The \pkg{floatrow} borrows core code from \pkg{float}\footnote{\pkg{float} -% package, version v1.3d dated 2001/11/08, \copyright{} 1991-2000 -% Anselm Lingnau.} and \pkg{rotfloat}\footnote{\pkg{rotfloat} package, -% version v1.2 dated 2004/01/04, \copyright{} 1995--2004 Axel +% package. The \pkg{floatrow} borrows core code from +% \pkg{float}\footnote{\pkg{float} package, version v1.3d dated +% 2001/11/08, \copyright{} 1991-2000 Anselm Lingnau.} and +% \pkg{rotfloat}\footnote{\pkg{rotfloat} package, version v1.2 +% dated 2004/01/04, \copyright{} 1995--2004 Axel % Sommerfeldt.} packages, so you must not load these packages. % % The \pkg{float} package has good mechanism for creation (and easy @@ -226,35 +240,40 @@ % to put footnotes inside float box (using \env{minipage}-like mode); % and also put legend-like text; % \item% -% to create or modify special layout for each type of float and for different -% positioning of float and its components (two-column or rotated float). +% to create or modify special layout for each type of float and +% for different positioning of float and its components +% (two-column or rotated float). % \end{itemize} % % The \pkg{floatrow} package is cooperated with \pkg{caption} package % (version 3.0 and later). Also the \pkg{floatrow} package (like -% \pkg{caption} one) uses \pkg{keyval} package mechanism for layout settings. +% \pkg{caption} one) uses \pkg{keyval} package mechanism for layout +% settings. % \medskip % % \begingroup % \slshape -% I think I did my best to follow this idea and I hope that someone likes this idea: -% helps to maintain this idea anyway, or finds bugs and absurdities in this package -% or documentation. +% I think I did my best to follow this idea and I hope that someone +% likes this idea: helps to maintain this idea anyway, or finds bugs +% and absurdities in this package or documentation. % \endgroup % \medskip % % {Document terminology}: % \begin{description}\itemsep0pt\parskip0pt -% \item[float] could include \emph{object}, \emph{caption}, and \emph{foot material}; -% \emph{float} is created by \env{figure} or \env{table} environments (\emph{plain float}), -% or in |\floatbox| command; +% \item[float] could include \emph{object}, \emph{caption}, and +% \emph{foot material}; \emph{float} is created by \env{figure} or +% \env{table} environments (\emph{plain float}), or in |\floatbox| +% command; % -% \item[object]\env{tabular} or graphics, as contents -% of table (\env{figure}) or figure (\env{table}) or other type of float; +% \item[object]\env{tabular} or graphics, as contents of table +% (\env{figure}) or figure (\env{table}) or other type of float; % % \item[caption]text in |\caption|; % -% \item[foot material]explications, legends and/or footnotes inside \emph{float} box (|\footnote|/|\mpfootnotemark|/|\footnotetext|, and |\floatfoot| macros). +% \item[foot material]explications, legends and/or footnotes inside +% \emph{float} box (|\footnote|/|\mpfootnotemark|/|\footnotetext|, +% and |\floatfoot| macros). % \end{description} % \end{abstract} % @@ -270,9 +289,10 @@ % % \section{Introduction} % -% One of the first macros of package, created for float contents, is a macro which -% builds contents of table environment with caption above. The width of -% caption equals to the width of contents, e.g. of tabular (see table~\ref{intro:table}). +% One of the first macros of package, created for float contents, +% is a macro which builds contents of table environment with caption +% above. The width of caption equals to the width of contents, e.g. +% of tabular (see table~\ref{intro:table}). %\begin{verbatim} %\begin{table} %\ttabbox @@ -317,16 +337,18 @@ % and some more text and a bit more text and % a little more text and a little peace of text to fill % space}\label{intro:beside}} -% {{\setlength\unitlength{4cm/58}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {{\setlength\unitlength{4cm/58}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{Mouse.picture}}} % \end{figure} % % These three commands abbreviate |\floatbox| command, which creates % float boxes (see section~\ref{sec:floatbox}). % -% The \env{floatrow} environment allows to put floats side by side, like -% figures~\ref{intro:leftfig} and~\ref{intro:rightfig}. By default \env{floatrow} -% creates necessary number of ``columns'' (usually two) where floats are placed: +% The \env{floatrow} environment allows to put floats side by side, +% like figures~\ref{intro:leftfig} and~\ref{intro:rightfig}. +% By default \env{floatrow} creates necessary number of ``columns'' +% (usually two) where floats are placed: %\begin{verbatim} %\begin{figure} % \begin{floatrow} @@ -346,13 +368,15 @@ % \label{intro:leftfig}}% % % \ffigbox -% {\caption{Beside figure at the right side of simple figure row}\label{fig:rotrow:FcatI}} +% {\caption{Beside figure at the right side of simple figure row}%^^A +% \label{fig:rotrow:FcatI}} % {\input{TheCat.picture}\label{intro:rightfig}} % \end{floatrow} % \end{figure}%^^A -% Please note that inside \env{floatrow} you must use |\ffigbox| or |\ttabbox| macros for -% each float box. (See also sections~\ref{sec:floatbox} for -% more information about commands used in introduction and |\floatbox| command; +% Please note that inside \env{floatrow} you must use |\ffigbox| +% or |\ttabbox| macros for each float box. (See also +% sections~\ref{sec:floatbox} for more information about commands +% used in introduction and |\floatbox| command; % and \ref{sec:floatrow} about \env{floatrow} environment.) % % \subsection{Do not write that with \pkg{floatrow} package} @@ -365,10 +389,10 @@ %\centering \input{Mouse.picture} %\end{figure} %\end{verbatim} -% please do not expect that caption appears at the top of figure. -% If you want, e.g. to put figure captions above its contents, you must write in preamble -% |\floatsetup[figure]{style=plaintop}| (see also section~\ref{sec:floatsetup} -% about |\floatsetup| mechanism). +% please do not expect that caption appears at the top of figure. If +% you want, e.g. to put figure captions above its contents, you must +% write in preamble |\floatsetup[figure]{style=plaintop}| (see also +% section~\ref{sec:floatsetup} about |\floatsetup| mechanism). % %^^A \begin{figure} %^^A \caption{A figure caption}\label{Wrong:expect} @@ -388,9 +412,10 @@ %\end{minipage} %\end{figure} %\end{verbatim} -% you also won't get expected result. Use \env{floatrow}, like in example with -% figures~\ref{intro:leftfig} and~\ref{intro:rightfig} to get correct result\footnote{See also -% the page~\pageref{mixrow} about mixed float rows}. +% you also won't get expected result. Use \env{floatrow}, like in +% example with figures~\ref{intro:leftfig} and~\ref{intro:rightfig} +% to get correct result\footnote{See also the page~\pageref{mixrow} +% about mixed float rows}. % % \section{Float Layout Settings}\label{sec:floatsetup} % @@ -404,8 +429,9 @@ % float is possible because of the borrowed code from the \pkg{float} % package, which allows to modify layout of float boxes as a whole. % -% The common layout and its modification for captions and special settings for each type -% of float supported by \pkg{caption} package, version~3.x. +% The common layout and its modification for captions and special +% settings for +% each type of float supported by \pkg{caption} package, version~3.x. % % The layout settings of \pkg{floatrow} package are built similarly % to \pkg{caption} ones and use |\floatsetup|\footnote{Some key and @@ -416,8 +442,8 @@ % documentation (version 3.0 and later)}. % % \DescribeMacro{\floatsetup} -% You may use layout settings stuff as \pkg{floatrow} option in |\usepackage| -% line. +% You may use layout settings stuff as \pkg{floatrow} option in +% |\usepackage| line. % \begin{quote} % |\usepackage[|\meta{options}|]{floatrow}| % \end{quote} @@ -429,8 +455,8 @@ % \begin{quote} % |\floatsetup{style=boxed,font=small}| % \end{quote} -% The lines above declare \texttt{boxed} style and |\small| font for float -% contents. These settings were loaded for \emph{all} float types. +% The lines above declare \texttt{boxed} style and |\small| font for +% float contents. These settings were loaded for \emph{all} float types. % % The |\floatsetup| command has following form: % \begin{quote} @@ -443,31 +469,37 @@ % |\floatsetup[table]{style=Plaintop}| % \end{quote} % sets a special float style for tables (captions are placed above -% float objects; in the case of beside floats inside \env{floatrow} environment -% captions aligned by top line)\footnote{The keys, used in special settings for float -% of one type, are always ``stronger'' than synonym keys in common setting. In other -% words, if you want after example above to redefine float style for all floats with -% \cmd{\floatsetup\{style={\normalfont \meta{option}}\}} you won't change tables---use -% \cmd{\floatsetup[table]}\allowbreak\texttt{\{style={\normalfont \meta{option}}\}} -% again.}. +% float objects; in the case of beside floats inside \env{floatrow} +% environment captions aligned by top line)\footnote{The keys, +% used in special settings for float of one type, are always +% ``stronger'' than synonym keys in common setting. In other words, +% if you want after example above to redefine float style for all +% floats with \cmd{\floatsetup\{style={\normalfont \meta{option}}\}} +% you won't change tables---use +% \cmd{\floatsetup[table]}\allowbreak +% \texttt{\{style={\normalfont \meta{option}}\}} again.}. % % There are also special options of |\floatsetup| for settings for floats -% in different positioning: two-column floats (starred environment, like \env{figure*}, you may also use, -% for example, for wide floats) rotated floats etc. -% The ``strength'' of options in the lists below decreases from -% previous item to next one (examples based on \env{figure} environment): +% in different positioning: two-column floats (starred environment, like +% \env{figure*}, you may also use, for example, for wide floats) rotated +% floats etc. The ``strength'' of options in the lists below decreases +% from previous item to next one (examples based on \env{figure} +% environment): % \begin{itemize}\label{stsetorder}\itemsep0pt\parskip0pt -% \item Wide or two-column floats (e.g. \env{figure*}, you may load special settings -% for starred environments even in one-column document): +% \item Wide or two-column floats (e.g. \env{figure*}, +% you may load special +% settings for starred environments even in one-column document): % \begin{itemize} -% \item |\floatsetup[widefigure]|---the ``strongest'' settings; if they absent, -% package uses settings from next item; -% \item |\floatsetup[widefloat]|---these settings ``stronger'' than settings -% from next item (|\floatsetup[figure]|); if they absent, package uses -% settings from next item; -% \item |\floatsetup[figure]|; if they absent, package uses settings from -% optional argument in |\usepackage| line or |\floatsetup{...}| command; -% if they absent---default package settings (see page~\pageref{sec:default}); +% \item |\floatsetup[widefigure]|---the ``strongest'' settings; +% if they absent, package uses settings from next item; +% \item |\floatsetup[widefloat]|---these settings ``stronger'' +% than settings from next item (|\floatsetup[figure]|); +% if they absent, package uses settings from next item; +% \item |\floatsetup[figure]|; +% if they absent, package uses settings from +% optional argument in |\usepackage| line or |\floatsetup{...}| +% command; if they absent---default package settings +% (see page~\pageref{sec:default}); % \end{itemize} % \item Wrapped floats (\env{wrapfigure}): % \begin{itemize}\itemsep0pt\parskip.5\parskip @@ -481,9 +513,11 @@ % \item |\floatsetup[rotfloat]|; % \item |\floatsetup[figure]|; % \end{itemize} -% \item Wide rotated floats (\env{sidewaysfigure*})\footnote{The settings for wide float -% (\texttt{widefloat}, \texttt{widefigure}) removed---use settings -% for \texttt{widerotfloat} and---here---\texttt{widerotfigure}}: +% \item Wide rotated floats +% (\env{sidewaysfigure*})\footnote{The settings +% for wide float (\texttt{widefloat}, \texttt{widefigure}) +% removed---use settings for \texttt{widerotfloat} +% and---here---\texttt{widerotfigure}}: % \begin{itemize}\itemsep0pt\parskip.5\parskip % \item |\floatsetup[widerotfigure]|; % \item |\floatsetup[widerotfloat]|; @@ -498,11 +532,11 @@ % \item setting of outer environments from previous items: % \env{sidewaysfigure*}, \env{sidewaysfigure}, and \env{figure*}. % \end{itemize} -% Please note, that usage if \texttt{style=} key (see beginning of next section) -% cancels settings for beside position of caption. +% Please note, that usage of \texttt{style=} key (see beginning of next +% section) cancels settings for beside position of caption. % \end{itemize} -% You can also create and change special settings for captions, using the -% same \meta{float~type} options in |\captionsetup| stuff. +% You can also create and change special settings for captions, using +% the same \meta{float~type} options in |\captionsetup| stuff. % % The next few sections describe keys of |\floatsetup| macro. % @@ -531,7 +565,8 @@ % \extrarowheight1pt\tabcolsep.5\tabcolsep % \newcommand\leftcell[2][16.5mm]{\extrarowheight0pt\def\arraystretch{.75} % \hspace*{-\tabcolsep}\begin{tabular}[t]{>{\footnotesize -% \ttfamily\noindent\vphantom{\small()\mpfootnotemark[1]}}p{#1}}#2\end{tabular}% +% \ttfamily\noindent +% \vphantom{\small()\mpfootnotemark[1]}}p{#1}}#2\end{tabular}% % \hspace*{-\tabcolsep}\ignorespaces} % \emptyfloatpage % \begin{tabularx}\hsize{|@{}l@{}|@{}l@{}|X|} @@ -619,15 +654,16 @@ % \caption{Float layout styles}\label{tab:floatlayouts}% % % \floatfoot{When there is set float style with frame around object of -% fitted to the text width (like \texttt{Boxed}, etc.), and \cmd{\floatbox} -% macro uses \cmd{\FBwidth} command as \meta{width} option, which sets box -% width equal to float object's width (see page~\pageref{sec:floatbox}), -% the width of all float other elements in this case enlarged to get width -% of framed object.} +% fitted to the text width (like \texttt{Boxed}, etc.), and +% \cmd{\floatbox} macro uses \cmd{\FBwidth} command as \meta{width} +% option, which sets box width equal to float object's width (see +% page~\pageref{sec:floatbox}), the width of all float other elements +% in this case enlarged to get width of framed object.} % % \footnotetext[1]{The styles analogous to \pkg{float} package style.} -% \footnotetext[2]{During usage of these styles in \env{floatrow} environment -% you ought to enlarge space between floats, using key \texttt{floatrowsep}).} +% \footnotetext[2]{During usage of these styles in +% \env{floatrow} environment you ought to enlarge +% space between floats, using key \texttt{floatrowsep}).} % \end{sidewaystable} % \label{setup:start} % @@ -672,28 +708,29 @@ % \end{quote} % % \DescribeMacro{footfont=}\label{sec:setfloatfoot}%^^A -% Defines font for legends or -% explications. This macro uses |\captionsetup| mechanism (because -% |\floatfoot| macro uses \pkg{caption} mechanism). By default the font size of float -% foot text equals to footnote text: |footfont=footnotesize|. +% Defines font for legends or explications. This macro +% uses |\captionsetup| mechanism (because |\floatfoot| macro +% uses \pkg{caption} mechanism). By default the font size +% of float foot text equals to footnote text: |footfont=footnotesize|. % % \subsubsection{Position of Caption and of Other Elements} % % \DescribeMacro{capposition=} -% Defines position of captions. It is -% similar to \texttt{position=} key in \pkg{caption} package, but it -% has two additional options\footnote{The option \texttt{auto} isn't used by -% \texttt{capposition=}.}: \texttt{TOP}, if you prefer to align -% captions above objects, in the case of beside floats (in \env{floatrow} environment), -% by the top line; and \texttt{beside} to put caption beside object (this option could -% be more preferable in settings for one environment, see about -% |\thisfloatsetup| on the page~\pageref{thisfloatsetup}): +% Defines position of captions. It is similar to \texttt{position=} +% key in \pkg{caption} package, but it has two additional +% options\footnote{The option \texttt{auto} isn't used by +% \texttt{capposition=}.}: \texttt{TOP}, if you prefer to align captions +% above objects, in the case of beside floats (in \env{floatrow} +% environment), by the top line; and \texttt{beside} to put caption +% beside object (this option could be more preferable in settings +% for one environment, see about |\thisfloatsetup| on the +% page~\pageref{thisfloatsetup}): % \begin{Options}{\OptionLabel} % \item[top] caption above object (equals to |\captop| command); % \item[TOP] caption above object and also aligned by top line in float % row (equals to |\CAPTOP| command). -% For example the \texttt{Plaintop} style is the variant of \texttt{plaintop} -% where used |capposition=TOP| settings, +% For example the \texttt{Plaintop} style is the variant of +% \texttt{plaintop} where used |capposition=TOP| settings, % see tables~\ref{tab:row:tabIII}--\ref{tab:row:tabIV}; % \item[bottom] caption below object (equals to |\capbot| command); % \item[beside] caption beside object (equals to |\capbeside| command). @@ -705,7 +742,8 @@ % \extrarowheight1pt % \ttabbox % {\caption[Beside table~I long header]%^^A -% {Beside table~I with long long long top aligned caption}\label{tab:row:tabIII}}%^^A +% {Beside table~I with long long long top aligned caption}%^^A +% \label{tab:row:tabIII}}%^^A % {\begin{tabular}{|l|>{\phantom0}c|>{\phantom0}c|} % \hline % \multirowthead{2}[-1ex]{Left Column Head} @@ -754,8 +792,8 @@ % \item[right] % caption is printed to the right side of object; % \item[inside] -% caption is printed in binding side of page if |twoside| option switched on -% in document class; +% caption is printed in binding side of page if |twoside| option +% switched on in document class; % \item[outside] % least popular option: caption printed in % outer side of page if |twoside| option switched on @@ -778,35 +816,36 @@ % % \noindent % \DescribeMacro{capbesidewidth=} -% Defines width of beside caption (this option could be more preferable in settings -% for one environment, see about |\thisfloatsetup| on the +% Defines width of beside caption (this option could be more preferable +% in settings for one environment, see about |\thisfloatsetup| on the % page~\pageref{thisfloatsetup}). You may set: % \begin{quote} % |capbesidewidth=4cm|\quad. % \end{quote} -% If you'll write \texttt{capbesidewidth=none} or \texttt{capbesidewidth=sidefill} -% (this is default key setting), the width of caption will be counted by usual way, -% accordingly to float width (i.e. occupies the rest width of float -% box, see figure~\ref{fig:beside:mouse} on the -% page~\pageref{fig:beside:mouse}). +% If you'll write \texttt{capbesidewidth=none} or +% \texttt{capbesidewidth=sidefill} (this is default key setting), the +% width of caption will be counted by usual way, accordingly +% to float width (i.e. occupies the rest width of float box, see +% figure~\ref{fig:beside:mouse} on the page~\pageref{fig:beside:mouse}). % % \noindent % \DescribeMacro{capbesideframe=} -% This boolean key declares whether beside caption stays -% near framed object (\texttt{capbesideframe=yes}) in this case caption lines -% aligned by top or bottom of frame; otherwise caption lines will be aligned with -% top or bottom of framed object's \emph{contents} (\texttt{capbesideframe=no}). +% This boolean key declares whether beside caption stays near framed object +% (\texttt{capbesideframe=yes}) in this case caption lines aligned by top +% or bottom of frame; otherwise caption lines will be aligned with top or +% bottom of framed object's \emph{contents} (\texttt{capbesideframe=no}). % % \penalty-5000 -% \subsubsection{Defining Float Foot Position (Legends and Footnotes)}\label{sec:footposition} +% \subsubsection{Defining Float Foot Position (Legends and Footnotes)}% +% \label{sec:footposition} % % \DescribeMacro{footposition=}\label{foot:pos}%^^A % Defines position of |\footnote|'s and |\floatfoot|'s in float box % with above/below captions. % \begin{Options}{\OptionLabel} % \item[default] -% if caption above float object foot material is placed below float object -% otherwise---below caption; +% if caption above float object foot material is placed below float +% object otherwise---below caption; % \item[caption] % always placed below caption; % \item[bottom] @@ -824,7 +863,8 @@ % following options % \begin{Options}{\OptionLabel}\samepage % \item[all] -% adjust both caption and object heights (e.g. for styles \texttt{Ruled} and \texttt{BOXED}); +% adjust both caption and object heights (e.g. for styles +% \texttt{Ruled} and \texttt{BOXED}); % \item[caption] % adjust caption heights (e.g. for styles \texttt{Plaintop}); % \item[object] @@ -845,10 +885,11 @@ % \DescribeMacro{valign=} % Defines vertical alignment of % float objects in \env{floatrow} if |heightadjust=all| or -% |heightadjust=object|, or |\floatbox| stuff uses \meta{height} argument with -% value, larger than height of object. The options of this key analogous to -% vertical alignment option in \env{minipage} environment and |\parbox| command. Default option is |c| -% (centered vertical alignment). +% |heightadjust=object|, or |\floatbox| stuff uses \meta{height} +% argument with value, which differs from the height of object. +% The options of this key analogous to vertical +% alignment option in \env{minipage} environment and |\parbox| +% command. Default option is |c| (centered vertical alignment). % \begin{Options}{\OptionLabel}\samepage % \item[t] % aligns objects by top line; @@ -866,7 +907,8 @@ % for floats. This key works if |twoside| option switched on in % document class. % -% \subsubsection{Defining Float Margins and Object Settings}\label{sec:set:box} +% \subsubsection{Defining Float Margins and Object Settings} +% \label{sec:set:box} % % \DescribeMacro{margins=} % Defines margins of alone float boxes with @@ -902,8 +944,8 @@ % \item[RaggedRight] % Each line of the object text will be moved to the left margin, too. % But this time the command |\RaggedRight| of the \pkg{ragged2e} package -% will be used to achieve this. This difference is that this time the word -% breaking algorithm of \TeX\ will work inside the object text. +% will be used to achieve this. This difference is that this time +% the word breaking algorithm of \TeX\ will work inside the object text. % % \item[raggedleft] % Each line of the object text will be moved to the right margin. @@ -917,7 +959,8 @@ % % \noindent % \DescribeMacro{floatwidth=} -% You may use this key for redefinition of width of floats below. You may use +% You may use this key for redefinition of width of floats below. +% You may use % \begin{quote} % |floatwidth=.6\hsize| % \end{quote} @@ -925,23 +968,23 @@ % \begin{quote} % |floatwidth=7cm| % \end{quote} -% This key could be useful in settings -% for one float environment (see about |\thisfloatsetup| on the page +% This key could be useful in settings for one float +% environment (see about |\thisfloatsetup| on the page % \pageref{thisfloatsetup}). % -% If you use option \texttt{floatwidth=sidefill} for objects with beside captions -% (in the case of key \texttt{capbesidewidth=} uses absolute value, like \texttt{4cm}) the -% object (instead of caption) occupies the rest space of float box -% (see appendix, figure~\ref{fig:capbeside:trick} on the -% page~\pageref{fig:capbeside:trick}) +% If you use option \texttt{floatwidth=sidefill} for objects with beside +% captions (in the case of key \texttt{capbesidewidth=} uses absolute +% value, like \texttt{4cm}) the object (instead of caption) occupies the +% rest space of float box (see appendix, figure~\ref{fig:capbeside:trick} +% on the page~\pageref{fig:capbeside:trick}) % % \subsubsection{Defining Float Separators}\label{sec:set:sep} % % \noindent % \DescribeMacro{floatrowsep=} % Sets separation material between beside float boxes (defined -% by |\floatbox| macro etc., see page~\pageref{sec:floatbox}) inside \env{floatrow} -% environment (see page~\pageref{sec:floatrow}). +% by |\floatbox| macro etc., see page~\pageref{sec:floatbox}) +% inside \env{floatrow} environment (see page~\pageref{sec:floatrow}). % % \noindent % \DescribeMacro{capbesidesep=} @@ -973,8 +1016,9 @@ % % \noindent % \DescribeMacro{rowprecode=} -% Defines skip, rule or other analogous code above alone float box, or, in the case of beside floats -% inside \env{floatrow} environment, above float row (see page~\pageref{fig:rotrow:WcatI}). +% Defines skip, rule or other analogous code above alone float box, +% or, in the case of beside floats inside \env{floatrow} environment, +% above float row (see page~\pageref{fig:rotrow:WcatI}). % % \noindent % \DescribeMacro{midcode=} @@ -987,8 +1031,9 @@ % % \noindent % \DescribeMacro{rowpostcode=} -% Defines skip, rule or other analogous code below alone float box, or, in the case of beside floats -% inside \env{floatrow} environment, below float row (see page~\pageref{fig:rotrow:WcatI}). +% Defines skip, rule or other analogous code below alone float box, or, +% in the case of beside floats inside \env{floatrow} environment, +% below float row (see page~\pageref{fig:rotrow:WcatI}). % % For all these keys there are predefined following options (settings % were taken from styles created in \pkg{float} package): @@ -996,11 +1041,14 @@ % \item[none] % absent code; % \item[thickrule] -% thick rule (.8pt) with 2pt vertical skip below---rule above float box in \texttt{ruled} style; +% thick rule (.8pt) with 2pt vertical skip below---rule above float box +% in \texttt{ruled} style; % \item[rule] -% rule of default thickness (.4pt), with 2pt vertical skips above and below---middle rule in \texttt{ruled} style; +% rule of default thickness (.4pt), with 2pt vertical skips above and +% below---middle rule in \texttt{ruled} style; % \item[lowrule] -% rule of default thickness (.4pt), with 2pt vertical skip above---rule below float box in \texttt{ruled} style; +% rule of default thickness (.4pt), with 2pt vertical skip above---rule +% below float box in \texttt{ruled} style; % \item[captionskip] % vertical skip equal to value, defined in |captionskip=| key. % \end{Options} @@ -1026,7 +1074,8 @@ % \item[shadowbox] % frame with shadow, needs also \pkg{fancybox} package; % \item[wshadowbox] -% modified \texttt{shadowbox} frame (frame with ``white shadow''), needs also \pkg{fancybox} package; +% modified \texttt{shadowbox} frame (frame with ``white shadow''), +% needs also \pkg{fancybox} package; % \end{Options} % % \noindent @@ -1058,7 +1107,8 @@ % % \noindent % \DescribeMacro{colorframeset=} -% Offered by \pkg{fr-fancy} package: defines +% Offered by \pkg{fr-fancy} package\footnote{Use +% \texttt{fancyboxes=yes} option in \cmd{\usepackage} line.}: defines % concrete color box (default is standard |\fbox|). % In current version you may use only |\fcolorbox| as color box. You % may define your color box like @@ -1069,10 +1119,10 @@ % \subsubsection{Defining Float Skips} % % \DescribeMacro{captionskip=} -% Defines vertical space between caption -% and float object in case of |midcode| key defined as -% |midcode=captionskip|; or in case of usage of float styles (\texttt{style=} key) -% \texttt{plain}, \texttt{plaintop} or \texttt{Plaintop}: +% Defines vertical space between caption and float object +% in case of |midcode| key defined as |midcode=captionskip|; +% or in case of usage of float styles (\texttt{style=} +% key) \texttt{plain}, \texttt{plaintop} or \texttt{Plaintop}: % \begin{quote} % |captionskip=10pt|\quad. % \end{quote} @@ -1088,14 +1138,18 @@ % |footskip=\skip\footins|\quad. % \end{quote} % -% \subsubsection{Defining Float Footnote Rule's Style}\label{sec:footnotestyle} +% \penalty-5000 +% \subsubsection{Defining Float Footnote Rule's Style} +% \label{sec:footnotestyle} % % \DescribeMacro{footnoterule=} % Defines type of footnote rule for footnotes inside float environment. +% \begingroup +% \makeatletter\@beginparpenalty10000\makeatother % \begin{Options}{\OptionLabel} % \item[normal] -% standard \LaTeX{} definition, used in \env{minipage} environments, the width of it equals -% to 0.4 of current with of text (|\columnwidth|); +% standard \LaTeX{} definition, used in \env{minipage} environments, the +% width of it equals to 0.4 of current with of text (|\columnwidth|); % \item[limited] % like previous one but max width of footnote rule equals to the value % defined by |\frulemax| command, like: @@ -1107,6 +1161,7 @@ % \item[none] % Absent rule. % \end{Options} +% \endgroup % % \label{setup:end} % @@ -1124,12 +1179,15 @@ % before necessary environment. Command |\thisfloatsetup| could % contain the same keys and options as in |\floatsetup|. It has % only mandatory argument\footnote{The \cmd{\thisfloatsetup} defined -% as abbreviation of \cmd{\floatsetup[tmpset]} command.}.\par\strut\par\kern-\baselineskip +% as abbreviation of \cmd{\floatsetup[tmpset]} command.}.\par\strut +% \par\kern-\baselineskip % -%^^A Please note that |\thisfloatsetup| doesn't overwrite co-named key -%^^A declarations from settings like |\floatsetup[|\meta{options}|]|---this command -%^^A created e.g for temporary change of float or caption widths: keys \texttt{captionwidth=} -%^^A \texttt{floatwidth} do not used usually in |\floatsetup| stuff. +%^^A Please note that |\thisfloatsetup| doesn't overwrite +%^^A co-named key declarations from settings like +%^^A |\floatsetup[|\meta{options}|]|---this command created e.g +%^^A for temporary change of float or caption widths: keys +%^^A \texttt{captionwidth=} \texttt{floatwidth=} do not used usually +%^^A in |\floatsetup| stuff. % % % \subsection{Clearing of Previous Float Type Settings} @@ -1160,7 +1218,7 @@ % \item[heightadjust=none] % \item[facing=no] % \item[margins=centering] -% \item[objectset=centering] ($\equiv$\texttt{justification=centering}) +% \item[objectset=centering] %^^A($\equiv$\texttt{justification=centering}, \pkg{caption}) % \item[floatrowsep=columnsep] % \item[capbesidesep=columnsep] % \item[precode=none] @@ -1174,9 +1232,9 @@ % % \subsection{Defining new options} % -% In the next few sections goes a small list of commands, which define key -% options for |\floatsetup|. The examples of option definitions were taken -% mainly from \pkg{floatrow} definitions. +% In the next few sections goes a small list of commands, which +% define key options for |\floatsetup|. The examples of option +% definitions were taken mainly from \pkg{floatrow} definitions. % % \subsubsection{Float Style} % @@ -1198,8 +1256,8 @@ % \caption{%^^A % Plain figure in \texttt{MyBoxed} style}% % \label{fig:plain:MyBoxed}% -% \floatfoot{Much more, more and more and more and more and more and more and -% more and more text inside macro \cmd{\floatfoot}}% +% \floatfoot{Much more, more and more and more and more and more and +% more and more and more text inside macro \cmd{\floatfoot}}% % \end{figure} % % The same result you get with: @@ -1212,8 +1270,8 @@ % \subsubsection{Defining Float Rules/Skips}\label{ssec:decl:rule} % % \DescribeMacro{\DeclareFloatVCode} -% This command defines the skip, rule or other analogous code above and below full float -% box and between caption above/below and +% This command defines the skip, rule or other analogous code above +% and below full float box and between caption above/below and % object. The defined option you may use in \texttt{rowprecode}, % \texttt{precode}, \texttt{midcode}, \texttt{postcode}, and % \texttt{rowpostcode} keys. @@ -1233,9 +1291,11 @@ % which you need to put before each object contents in float % environment\footnote{You may also use key options declared by % \cmd{\DeclareCaptionJustification} command of \pkg{caption} package -% as options for \texttt{objectset=} key.}.\par\strut\par\kern-\baselineskip +% as options for \texttt{objectset=} key.}.\par +% \strut\par\kern-\baselineskip % -% \subsubsection{Float Box Alignment (and Some Other Settings)}\label{ssec:decl:marg} +% \subsubsection{Float Box Alignment (and Some Other Settings)} +% \label{ssec:decl:marg} % % \DescribeMacro{\DeclareMarginSet}\label{fsetup:besmarg}%^^A % You may define box alignment for float box (\texttt{margins=} key) like: @@ -1270,7 +1330,8 @@ % \end{quote} % the |\floatfacing| defines following % \begin{quote} -% |\floatfacing{|\meta{odd page definition}|}{|\meta{even page definition}|}| +% |\floatfacing{|\meta{odd page definition}|}{|\meta{even +% page definition}|}| % \end{quote} % This macro has also starred form |\floatfacing*|, % which you can use in key options for |\captionsetup| stuff. @@ -1278,8 +1339,10 @@ % The |\setfloatmargins| consists of three macros which set margins % for three main variants of float positions: % \begin{Options}{\OptionLabel} -% \item[\cmd{\floatboxmargins}]sets left/right margins around alone float box; -% \item[\cmd{\floatrowmargins}]sets left/right margins around \env{floatrow} environment; +% \item[\cmd{\floatboxmargins}]sets left/right margins around alone +% float box; +% \item[\cmd{\floatrowmargins}]sets left/right margins around +% \env{floatrow} environment; % \item[\cmd{\floatcapbesidemargins}]sets left/right margins around % alone float box with beside caption. % \end{Options} @@ -1287,14 +1350,36 @@ % |\setfloatmargins|. The settings which use |\floatfacing| command % work only in the case when key \texttt{facing=yes} used. % -% \emph{Note}. The \pkg{floatrow} expands some settings of table layout to the \env{longtable} -% environment, so you may set |\LTleft| and |\LTright| parameters inside |\setfloatmargins| -% command. For example, \texttt{centering} option was defined like: +% \emph{Notes}. 1)\enskip The \pkg{floatrow} expands some settings of table layout +% to the \env{longtable} environment, so you may set |\LTleft| and +% |\LTright| parameters inside |\setfloatmargins| command. For example, +% \texttt{centering} option was defined like: % \begin{quote} % |\DeclareMarginSet{centering}{\setfloatmargins{\hfill}{\hfill}%|\\ % | \LTleft=\fill \LTright=\fill}| % \end{quote} % +% 2)\enskip The font settings loaded in |\floatsetup| +% in \env{longtable} environment expand to captions. +% In this case, when you write something like +% \begin{quote} +% |\floatsetup{font={sf,scriptsize,it}| +% \end{quote} +% or +% \begin{quote} +% |\floatsetup[longtable]{font={sf,scriptsize,it}| +% \end{quote} +% for floats (or for [long]tables only), you must restore correct +% font size, family, and shape for caption contents and write: +% \begin{quote} +% |\captionsetup{font={rm,small,up}| +% \end{quote} +% or +% \begin{quote} +% |\captionsetup[longtable]{font={rm,small,up}| +% \end{quote} +% +% % \subsubsection{Defining Float Separators} % % \DescribeMacro{\DeclareFloatSeparators}\label{decl:sep}%^^A @@ -1313,17 +1398,19 @@ % | \endgroup}| % \end{quote} % -% You may use defined option by both \texttt{floatrowsep=} and \texttt{capbesidesep=} -% keys\footnote{You may use key options declared by -% \cmd{\DeclareCaptionLabelSeparator} command.}.\par\strut\par\kern-\baselineskip +% You may use defined option by both \texttt{floatrowsep=} and +% \texttt{capbesidesep=} keys\footnote{You may use key options declared +% by \cmd{\DeclareCaptionLabelSeparator} command.}.\par\strut\par +% \kern-\baselineskip % % \subsubsection{Float font} % % \DescribeMacro{\DeclareFloatFont} -% With this macro you may define new -% option for font (\texttt{font=} key) of float contents. This macro works like -% |\DeclareCaptionFont| in \pkg{caption} package. (You may also use -% key options declared by |\DeclareCaptionFont| command.)\par\strut\par\kern-\baselineskip +% With this macro you may define new option +% for font (\texttt{font=} key) of float contents. This macro works +% like |\DeclareCaptionFont| in \pkg{caption} package. (You may also +% use key options declared by |\DeclareCaptionFont| command.)\par +% \strut\par\kern-\baselineskip % % \subsubsection{Defining Float Footnote Rule's Style} % @@ -1336,7 +1423,7 @@ % \end{quote} % Remember, that summary vertical height for footnote rule must be % equal to~0pt. -%\newpage +% % \section{Creation of New Float Type} % % \DescribeMacro{\DeclareNewFloatType} @@ -1372,17 +1459,17 @@ % \noindent % \DescribeMacro{within=} % Declares the section head of document, by which -% current float resets its numbering to zero. If this key absent, float -% increases during whole documentation. +% current float resets its numbering to zero. If this key absent, +% float increases during whole documentation. % % \noindent % \DescribeMacro{relatedcapstyle=} % In \pkg{float} package the non-starred -% \cmd{\newfloat}/\cmd{\restylefloat} macros attach -% related caption style for float styles (see section -% \ref{sec:floatst}). If you use |\DeclareNewFloatType| mechanism and exists (you created -% it by |\captionsetup|) co-named, i.e. related, caption style you may attach this -% style with key \texttt{relatedcapstyle=yes}. +% \cmd{\newfloat}/\cmd{\restylefloat} macros attach related +% caption style for float styles (see section \ref{sec:floatst}). +% If you use |\DeclareNewFloatType| mechanism and exists (you created +% it by |\captionsetup|) co-named, i.e. related, caption style +% you may attach this style with key \texttt{relatedcapstyle=yes}. % %^^A \begin{quote} % %^^A |\captionsetup[figure]{style=ruled}| % %^^A \end{quote} @@ -1399,8 +1486,8 @@ % % \subsection{\pkg{float} Package: Compatibility}\label{sec:floatst} % -% The \pkg{floatrow} package includes some macros of \pkg{float} (version -% v1.3d, dated 2001/11/08) +% The \pkg{floatrow} package includes some macros of \pkg{float} +% (version v1.3d, dated 2001/11/08) % with necessary modifications. In the case of loaded \pkg{float} % package before \pkg{floatrow} you'll get error message. % @@ -1408,35 +1495,37 @@ % In the case of some packages % could call \pkg{float} package\footnote{I'm aware about \pkg{algorithm} % package.} the \pkg{floatrow} package loads code which emulates -% already loaded \pkg{float} package v1.3, so next requests for \pkg{float} are ignored. -% This will help to avoid strange error messages +% already loaded \pkg{float} package v1.3, so next requests for +% \pkg{float} are ignored. This will help to avoid strange error messages % in the case of these packages loaded \emph{after} \pkg{floatrow}. % Please note that packages, which load \pkg{float} must be loaded % \emph{after} \pkg{floatrow}. % % I hope that old documents could work with \pkg{floatrow}. The first % limitation or feature is---if you didn't use any |\restylefloat| -% command---all figures and tables appear in \texttt{plain} float style with -% bottomed captions. Another limitation---you ought to put all +% command---all figures and tables appear in \texttt{plain} float style +% with bottomed captions. Another limitation---you ought to put all % |\newfloat| and |\floatstyle| and |\restylefloat| commands in % preamble, before |\begin{document}|. The commands |\restylefloat|, -% |\newfloat| and |\floatstyle| are obsolete but supported\footnote{The better way is to use -% \cmd{\floatsetup} macros. The \pkg{floatrow} package supports obsolete macros but there -% is no guarantee.}. See also +% |\newfloat| and |\floatstyle| are obsolete but +% supported\footnote{The better +% way is to use \cmd{\floatsetup} macros. The \pkg{floatrow} package +% supports obsolete macros but there is no guarantee.}. See also % section~\ref{float-obs} about translation of these commands % into |\floatsetup| command. % % Sections, signed with ``[\pkg{float}]'' were borrowed from % \pkg{float}'s documentation. % -% \subsubsection{The User Interface---New Floats [\pkg{float}]}\label{sec:floatborrowI} +% \subsubsection{The User Interface---New Floats [\pkg{float}]} +% \label{sec:floatborrowI} % % \DescribeMacro{\newfloat} % The most important command in \pkg{float} -% is the |\newfloat| command\footnote{It doubles the \cmd{\DeclareNewFloatType} -% command.}. It is patterned on -% |\newtheorem|. The |\newfloat| command takes three required and one -% optional argument; it is of the form +% is the |\newfloat| command\footnote{It doubles the +% \cmd{\DeclareNewFloatType} command.}. It is patterned on +% |\newtheorem|. The |\newfloat| command takes three required and +% one optional argument; it is of the form % \begin{quote} % \hspace*{\MacroIndent}|\newfloat{|\meta{type}|}{|^^A % \meta{placement}|}{|\meta{ext}|}[|\meta{within}{\tt]} @@ -1542,11 +1631,11 @@ % style. Please note that \texttt{plain} and \texttt{boxed} float % styles have not any special settings in \pkg{caption} 3.x package. % To emulate \texttt{boxed} style from \pkg{float} documentation there -% were: cleared all special caption settings for tables, and restored default -% colon separator after label.}. There is a |\restylefloat*| command -% which will restyle an existing float type but will keep the new -% float style from taking over the |\caption| command. In this case -% the user is responsible for handling their own captions. +% were: cleared all special caption settings for tables, and restored +% default colon separator after label.}. There is a |\restylefloat*| +% command which will restyle an existing float type but will keep the +% new float style from taking over the |\caption| command. In this +% case the user is responsible for handling their own captions. % \DeleteShortVerb{\|} % %^^AEmulation of float's documentation settings % %^^A\floatstyle{boxed} @@ -1567,8 +1656,8 @@ % 6 & 1&6&15&20&15&6&1\\ % 7 & 1&7&21&35&35&21&7&1 % \end{tabular} \end{center} -% \caption{Pascal's triangle. This is a re-styled \LaTeX\ \texttt{table}.% -% \label{table1}} +% \caption{Pascal's triangle. This is a re-styled \LaTeX\ +% \texttt{table}.\label{table1}} % \end{table} % \endgroup % \MakeShortVerb{\|} @@ -1585,10 +1674,11 @@ % \end{quote} % Please note that co-named keys from |\floatsetup|\oarg{float}|{...}| % will overwrite the |\floatsetup{...}| settings. That means that if you -% set float layout with these obsolete commands, the next layout tuning you -% ought to do with |\floatsetup|\oarg{float}|{...}| stuff only. +% set float layout with these obsolete commands, the next layout tuning +% you ought to do with |\floatsetup|\oarg{float}|{...}| stuff only. % -% \subsubsection{Printing of Float List [\pkg{float}]}\label{sec:floatborrowIa} +% \subsubsection{Printing of Float List [\pkg{float}]} +% \label{sec:floatborrowIa} % % \nobreak\DescribeMacro{\listof} % \nopagebreak @@ -1658,17 +1748,48 @@ % ^^A\caption{Could it be that this just needs a caption?} % \end{table} % +% \subsubsection{The {[H]} +% Placement Specifier---Managing of Page Breaks}\label{sec:listpen} +% +% During usage of |[H]| option I found that it is necessary +% to set common penalties before and after ``anchored'' floats. +% +% The rules for page breaking around such floats similar to +% page breaking of lists in the book. +% +% To follow the idea of |\allowdisplaybreaks| command from +% \pkg{amsmath} package there is created a beta-temp\footnote{I suppose +% that there will be created such support in \pkg{paralist} package +% and think it is better to follow one grammar for similar +% situations.} version +% of \pkg{listpen} package, which offers following commands: +% \begin{Options}{\OptionLabel} +% \item[\cmd{\allowprelistbreaks}]sets penalty before lists +% (and also ``anchored'' floats); +% \item[\cmd{\allowpostlistbreaks}]sets penalty after lists; +% \item[\cmd{\allowitembreaks}]sets penalty between list items. +% \end{Options} +% All they set globally, inside group or inside +% environments the penalties accordingly to digits +% from |[-4]| (never break) to |[4]| (always break). The positive +% values of optional argument in these commands analogous to values +% of optional arguments in |\pagebreak| command. The negative +% ones---to optional arguments |[1]|--|[4]| in |\nopagebreak| command. +% The default value of all three commands is |[-1]| which equal +% to settings of standard \LaTeX{} classes: \cls{book}, \cls{article} +% etc. (|[-1]| option equal to |-\@lowpenalty| value). +% % \subsection{\pkg{rotfloat} Package} % % Code of \pkg{rotfloat} package was also borrowed by \pkg{floatrow} -% package. In the case of loaded \pkg{rotfloat} package before \pkg{floatrow} you will get -% error message. +% package. In the case of loaded \pkg{rotfloat} package before +% \pkg{floatrow} you will get error message. % % The \pkg{floatrow} package loads code which pretends that % \pkg{rotfloat} already loaded, so next loads are ignored. % The \pkg{rotfloat} allowed in the |\usepackage| -% line with \pkg{rotating} package, which could have options. It is necessary -% to delete \pkg{rotfloat} package from |\usepackage| line +% line with \pkg{rotating} package, which could have options. It is +% necessary to delete \pkg{rotfloat} package from |\usepackage| line % where also \pkg{rotating} package loaded with options: otherwise % you may get `option clash' error message. % @@ -1710,14 +1831,16 @@ % \item[\meta{height}]the height of object---caption box % (in case of caption above or below object), % or height of object box (if caption stays beside object); -% \item[\meta{vert pos}]vertical alignment of object contents in object's -% box in case of \meta{height} argument has larger value than height of object contents, -% float placed inside \env{floatrow}. -% \item[\meta{caption}]text of caption and legends (you may use |\floatfoot| -% command (see page~\pageref{subsec:floatfoot}); you may also use -% |\footnote|/|\mpfootnotemark|/|\footnotetext| stuff for footnotes inside float, or |\floatfoot| command; +% \item[\meta{vert pos}]vertical alignment of object contents in +% object's box in case of \meta{height} argument has larger value than +% height of object contents, float placed inside \env{floatrow}. +% \item[\meta{caption}]text of caption and legends (you may use +% |\floatfoot| command (see page~\pageref{subsec:floatfoot}); you +% may also use |\footnote|/|\mpfootnotemark|/|\footnotetext| stuff +% for footnotes inside float, or |\floatfoot| command; % \item[\meta{object}]Contents of float; you may use -% |\footnote|/|\mpfootnotemark|/|\footnotetext| stuff or |\floatfoot| command. +% |\footnote|/|\mpfootnotemark|/|\footnotetext| stuff or +% |\floatfoot| command. % \end{description} % % \begingroup @@ -1739,10 +1862,10 @@ % \end{figure}% % \endgroup % -% The more preferable way for usage of |\floatbox| is to put table caption \emph{above} table -% contents and set caption width equal to table width. Caption -% position was defined in document preamble by command -% |\floatsetup[table]{style=Plaintop}| +% The more preferable way for usage of |\floatbox| is to put table +% caption \emph{above} table contents and set caption width equal +% to table width. Caption position was defined in document preamble +% by command |\floatsetup[table]{style=Plaintop}| %\begin{verbatim} %\begin{table} %\floatbox{table}[\FBwidth] {\caption{Simple tabular in @@ -1776,13 +1899,13 @@ % \end{table}% % \MakeShortVerb{\|}% % as shown in table~\ref{tab:tabII}. To fit size of caption (i.e full -% float box) to size of \env{tabular} environment there was used |\FBwidth| -% command in \meta{width} argument. +% float box) to size of \env{tabular} environment there was used +% |\FBwidth| command in \meta{width} argument. % % The next example shows \env{figure} environment with beside caption. % In this example only |\capbeside| command used in \meta{preamble} -% argument, and |\FBwidth| in \meta{width} argument. The -% caption occupies the rest space of float box's width, |\hsize| (in current +% argument, and |\FBwidth| in \meta{width} argument. The caption +% occupies the rest space of float box's width, |\hsize| (in current % example the width float box equals to main text width---|\textwidth|). % %\begin{verbatim} @@ -1798,15 +1921,16 @@ % and some more text and a bit more text and % a little more text and a little peace of text to fill % space}\label{fig:beside:mouse}} -% {{\setlength\unitlength{4cm/58}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {{\setlength\unitlength{4cm/58}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{Mouse.picture}}} % \end{figure} % % The default width of beside object and caption are equal to one -% ``column'' width, i.e. half of current |\hsize| (figure~\ref{intro:beside}) width excluding float -% margins and separation material between float and caption. (See more -% examples with float and beside captions in appendix, -% page~\pageref{fig:Idog:w}.) +% ``column'' width, i.e. half of current |\hsize| +% (figure~\ref{intro:beside}) width excluding float margins and +% separation material between float and caption. (See more examples +% with float and beside captions in appendix, page~\pageref{fig:Idog:w}.) % % % \subsubsection{User Commands for Float Boxes} @@ -1832,9 +1956,9 @@ % or |\thisfloatsetup| stuff); % \item[\meta{default width}]here you put any dimension like |6cm| % or |.75\textwidth|\footnote{There is also exists possibility to set -% common width for current float type of float using \texttt{floatwidth} -% key in \cmd{\floatsetup} stuff.}; if you put |\FBwidth| -% command the width of object---caption box (in case of +% common width for current float type of float using +% \texttt{floatwidth} key in \cmd{\floatsetup} stuff.}; if you +% put |\FBwidth| command the width of object---caption box (in case of % caption above or below object---there could be defined % |\nocapbeside| in \meta{preamble}) or width of object box (if caption % stays beside object---|\capbeside| in \meta{preamble}) will be equal @@ -1848,8 +1972,8 @@ % |\newfloatcommand{ttabbox}{table}[\captop][\FBwidth]| % \end{quote} % First two defined for figures and last one---for table. You may -% redefine existing macros using |\renewfloatcommand| command (it uses the same -% arguments as |\newfloatcommand| one). +% redefine existing macros using |\renewfloatcommand| command (it uses +% the same arguments as |\newfloatcommand| one). % % % \subsection{Building Float Row}\label{sec:floatrow} @@ -1867,15 +1991,16 @@ % |\end{floatrow}| % \end{quote} % -% And here is example. The first float (used |\ffigbox|) has default width equal to -% ``column'' width, the next uses width of included graphic (uses command -% |\FBwidth| in optional argument \meta{width}), third one occupies the rest -% horizontal space of page which was counted with command |\Xhsize|. +% And here is example. The first float (used |\ffigbox|) has default +% width equal to ``column'' width, the next uses width of included +% graphic (uses command |\FBwidth| in optional argument \meta{width}), +% third one occupies the rest horizontal space of page which was +% counted with command |\Xhsize|. % -% \emph{Note}. Usually the command |\Xhsize| is used for the last float box. But -% if you use \pkg{calc} package you may try to use |\Xhsize| earlier, -% if the \emph{absolute} value of the width of float boxes to the -% right in float row is known, or set something in \meta{width} +% \emph{Note}. Usually the command |\Xhsize| is used for the last float +% box. But if you use \pkg{calc} package you may try to use |\Xhsize| +% earlier, if the \emph{absolute} value of the width of float boxes to +% the right in float row is known, or set something in \meta{width} % argument like |\Xhsize/2| and then |\Xhsize| for two last % |\floatbox|'es, see sample files~\file{frsample10}--\file{frsample12}, % and also sample file \file{fr-sample.tex}. @@ -1900,38 +2025,43 @@ % \ffigbox % {\caption{Beside figure~I, ``column'' width}% % \label{fig:row:WcatI}} -% {\unitlength1.25\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.25\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture}} % % \ffigbox[\FBwidth] -% {\caption{Beside figure~II in \env{floatrow}, float box has the width of graphic}% +% {\caption{Beside figure~II in \env{floatrow}, float box has the +% width of graphic}% % \label{fig:row:BcatI}} -% {\unitlength1.25\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.25\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheBlackCat.picture}} % % \ffigbox[\Xhsize] % {\caption{Beside figure~III in \env{floatrow}, % occupies the rest of row}% % \label{fig:row:mouseI}} -% {{\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {{\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{Mouse.picture}}} % \end{floatrow} % \end{figure}% % The result you see in the row of % figures~\ref{fig:row:WcatI}--\ref{fig:row:mouseI}. The vertical -% alignment of floats lays on the bottom of upper part (here: objects) of float and -% the top of lower part (captions). +% alignment of floats lays on the bottom of upper part (here: objects) +% of float and the top of lower part (captions). % -% \subsection{Usage of Footnotes Inside Float Environment}\label{sec:floatfootnote} +% \subsection{Usage of Footnotes Inside Float Environment} +% \label{sec:floatfootnote} % % Sometimes table or figure contents have material, which authors mark -% and then write some explanation like footnotes. Current package has mechanism -% which allows to put footnotes inside float environment, in the same way as -% is in \env{minipage} environment. +% and then write some explanation like footnotes. Current package has +% mechanism which allows to put footnotes inside float environment, in +% the same way as is in \env{minipage} environment. % % In the case of few elements have the same footnote, we cannot -% use standard |\footnotemark|---|\footnotetext| combination, because of -% |\footnotemark| creates the sign of main text footnote. +% use standard |\footnotemark|---|\footnotetext| combination, because +% of |\footnotemark| creates the sign of main text footnote. % For these cases current package offers |\mpfootnotemark| macro % instead of |\footnotemark|% % \footnote{The same macro also is defined in \pkg{footmisc} package, @@ -1948,8 +2078,8 @@ % which could not put in caption contents and they are definitely not % a footnote you may use |\floatfoot| command. The |\floatfoot| is % build by usage of |\caption| stuff and uses caption's justification, -% but star form (|\floatfoot*|) prints its contents as plain unindented paragraph -% (see table~\ref{tab:floatfoot}). +% but star form (|\floatfoot*|) prints its contents as plain unindented +% paragraph (see table~\ref{tab:floatfoot}). % % For defining of explication font use \texttt{footfont=} key % (page~\pageref{sec:setfloatfoot}) in |\floatsetup|. You may try to @@ -2000,14 +2130,15 @@ % inside one float box, the |\floatfoot| appears above |\footnote| % contents. % -% 3)\enskip Foot material (footnotes and text in floatfoot) can be placed in -% several variants: at the very bottom of float box, below caption +% 3)\enskip Foot material (footnotes and text in floatfoot) can be placed +% in several variants: at the very bottom of float box, below caption % (even if caption is above float object). See page \pageref{foot:pos} % and sample file \file{frsample01.tex}. In case of caption beside % float object, footnotes and foot text always placed below caption. % % -% \subsection{Fine Tuning of Vertical Spaces of Float}\label{sec:FBabskips} +% \subsection{Fine Tuning of Vertical Spaces of Float} +% \label{sec:FBabskips} % % At the final variant of document you may need to correct vertical % spaces between float and main text, between float object and @@ -2018,8 +2149,9 @@ % \begin{verse} % |\renewcommand\FBaskip{-4pt}| % \end{verse} -% to move up float box up (or reduce space above) by 4pt. In current document -% the |\FBaskip| command was necessary for moving up some of wrapped figures. +% to move up float box up (or reduce space above) by 4pt. In current +% document the |\FBaskip| command was necessary for moving up +% some of wrapped figures. % % Use |\vspace| command for vertical space correction around float % object\footnote{The plain float environment allows usage of @@ -2030,11 +2162,11 @@ % % \subsection{Running Raw \LaTeX\ Floats} % -% The \pkg{floatrow} package redefines float environments for the case of creation of -% common layout for all floats. This redefinition creates some limitations for source document file, -% which were mentioned in introduction. -% If you still need a raw behavior of float environment, you may input a -% |\RawFloats| command \emph{inside} environment: +% The \pkg{floatrow} package redefines float environments for the case +% of creation of common layout for all floats. This redefinition creates +% some limitations for source document file, which were mentioned in +% introduction. If you still need a raw behavior of float environment, +% you may input a |\RawFloats| command \emph{inside} environment: %\begin{verbatim} %\begingroup %\captionsetup[table]{position=top} @@ -2051,8 +2183,8 @@ %\endgroup %\end{verbatim} % And you'll get figure~\ref{Right:expect:fig} -% and table~\ref{Right:expect:tab}\footnote{That could work correct if you do not use any -% fancy float layout.}. +% and table~\ref{Right:expect:tab}\footnote{That could work correct if +% you do not use any fancy float layout.}. % \begingroup % \captionsetup[table]{position=top} % \begin{figure}\RawFloats @@ -2062,13 +2194,15 @@ % \end{minipage} % \begin{minipage}{0.45\textwidth} % \captionof{table}{A table caption in raw \LaTeX}\label{Right:expect:tab} -% \centering\tabcolsep3\tabcolsep \begin{tabular}{|c|c|} A & B \\ C & D \end{tabular} +% \centering\tabcolsep3\tabcolsep +% \begin{tabular}{|c|c|} A & B \\ C & D \end{tabular} % \end{minipage} % \end{figure} % \endgroup % -% You may see that \env{floatrow} environment and |\floatbox| commands still work -% after |\RawFloats| (figure~\ref{intro:leftfig:raw} and table~\ref{intro:righttab:raw}) +% You may see that \env{floatrow} environment and |\floatbox| commands +% still work after |\RawFloats| (figure~\ref{intro:leftfig:raw} and +% table~\ref{intro:righttab:raw}) %\begin{verbatim} %\begin{figure}\RawFloats\CenterFloatBoxes % \begin{floatrow} @@ -2088,13 +2222,16 @@ % \label{intro:leftfig:raw}}% % % \floatbox{table}[\FBwidth] -% {\caption{A table caption in \cmd{\floatbox} in raw \LaTeX}\label{intro:righttab:raw}} -% {\tabcolsep3\tabcolsep\begin{tabular}{|c|c|} A & B \\ C & D \end{tabular}} +% {\caption{A table caption in \cmd{\floatbox} in raw +% \LaTeX}\label{intro:righttab:raw}} +% {\tabcolsep3\tabcolsep +% \begin{tabular}{|c|c|} A & B \\ C & D +% \end{tabular}} % \end{floatrow} % \end{figure}%^^A -% See also page~\pageref{mixrow} about how to set and align different float types -% like figure~\ref{intro:leftfig:raw} and table~\ref{intro:righttab:raw} in one row -% (\env{floatrow} environment). +% See also page~\pageref{mixrow} about how to set and align different +% float types like figure~\ref{intro:leftfig:raw} and +% table~\ref{intro:righttab:raw} in one row (\env{floatrow} environment). % % % \section{Style Tandems} @@ -2107,7 +2244,7 @@ % % \subsection{The \pkg{caption} Package} % -% Tested with versions v3.0a--v3.0g. +% Tested with versions v3.0a--v3.0i. % % The \pkg{caption} package has strong mechanism of creating of % caption layout, so \pkg{floatrow} addresses the creation of new @@ -2115,8 +2252,8 @@ % package). % % The \pkg{floatrow} adds possibility to create a variations of captions -% for floats in different positions or layouts (e.g. like wide or two-column -% floats or rotated floats) using optional argument of +% for floats in different positions or layouts (e.g. like wide or +% two-column floats or rotated floats) using optional argument of % |\captionsetup|. % % For example you want to create special caption layout for wide or @@ -2137,7 +2274,8 @@ % % \subsection{The \pkg{subfig} Package} % -% Tested with version 1.2 dated 2004/01/28 and 1.3. dated 2005/06/28.\nopagebreak +% Tested with version 1.2 dated 2004/01/28 and 1.3. +% dated 2005/06/28.\nopagebreak % % The example with \cmd{\subfloat}'s (table~\ref{tab:tabIII}). The % setting command in preamble |\floatsetup[table]{style=Plaintop}| @@ -2149,15 +2287,16 @@ % \floatbox{table}[\FBwidth] % {\caption{Two ...}\label{...}} % {\begin{subfloatrow} -% \subfloat[First table] -% {\begin{tabular}{|l|c|c|} -% ... +% \subfloat[First subtable] +% {\begin{tabular}{...} +% ... % \end{tabular}} -% \subfloat[Second table] -% {\begin{tabular}{|l|c|c|} -% ... -% \end{tabular}% -% \end{subfloatrow}}} +% +% \subfloat[Second subtable with long long long subcaption] +% {\begin{tabular}{...} +% ... +% \end{tabular}}% +% \end{subfloatrow}} %\end{table} %\end{verbatim} % \DeleteShortVerb{\|}% @@ -2195,7 +2334,6 @@ % First row & \phantom01 & \phantom02 \\ % Second row & \phantom03 & \phantom04 \\ % Third row & \phantom06 & \phantom08 \\ -% %^^A Fourth row & 10 & 16 \\ % \hline % \end{tabular}}% % \end{subfloatrow}} @@ -2205,9 +2343,9 @@ % \emph{Note.} There was used \env{subfloatrow} environment in current % example. This is simplified \env{floatrow} environment, which % expands vertical alignment of float contents to subfloats and -% puts horizontal separator, -% defined by \texttt{subfloatrowsep=} key. This key and uses the same options as -% \texttt{floatrowsep=} and \texttt{capbesidesep=} keys (options of +% puts horizontal separator, defined by \texttt{subfloatrowsep=} +% key. This key and uses the same options +% as \texttt{floatrowsep=} and \texttt{capbesidesep=} keys (options of % these keys defined by |\DeclareFloatSeparators| command, % page~\pageref{decl:sep}). % @@ -2224,23 +2362,27 @@ % % The next goes example with beside caption (see % figure~\ref{fig:subfig:catsI}).%^^A -% \footnote{In version 1.2 the beside boxed and non-boxed subfloat contents (like in -% figure~\ref{fig:subfig:catsI}) could not get aligned bottom (top) -% subcaptions. In this example I ought to use following lines for -% subfigure~\ref{subfig:b}, when \pkg{pstricks} package is loaded:\\[2ex]\ttfamily -% \cmd{\raisebox}\{\cmd{\depth}\}\{\cmd{\input}\{\texttt{TheBlackCat.picture}\}\}} +% \footnote{In version 1.2 the beside boxed and non-boxed subfloat +% contents (like in figure~\ref{fig:subfig:catsI}) could not get aligned +% bottom (top) subcaptions. In this example I ought to use following +% lines for subfigure~\ref{subfig:b}, when \pkg{pstricks} package is +% loaded:\\[2ex]\ttfamily +% \cmd{\raisebox}\{\cmd{\depth}\}\{\cmd{\input}\{\texttt +% {TheBlackCat.picture}\}\}} %\begin{verbatim} %\floatsetup{style=Shadowbox,capbesidesep=columnsep, % capbesideframe=yes,capbesideposition={top,inside}} %\fcapside[\FBwidth] -%{\begin{subfloatrow} -% \subfloat[White ...]{...} -% \subfloat[Black ...]{...} -%\end{subfloatrow}} +% {\begin{subfloatrow} +% \subfloat[White cat\label{subfig:w}]{% +% {\input{TheCat.picture}}} +% +% \subfloat[Black cat\label{subfig:b}]{\input{TheBlackCat.picture}}% +% \end{subfloatrow}} %{\caption{...}} %\end{verbatim} -% \floatsetup[figure]{style=Shadowbox,capbesidesep=columnsep,capbesideframe=yes, -% capbesideposition={top,inside}} +% \floatsetup[figure]{style=Shadowbox,capbesidesep=columnsep, +% capbesideframe=yes,capbesideposition={top,inside}} % \begin{figure}[h] % \fcapside[\FBwidth] % {\begin{subfloatrow} @@ -2258,18 +2400,20 @@ % % \begingroup % \def\FBaskip{-12pt} -% \floatsetup[figure]{style=ruled,relatedcapstyle=yes,footposition=caption} +% \floatsetup[figure]{style=ruled,relatedcapstyle=yes, +% footposition=caption} % \begin{wrapfigure}[10]{O}{40mm} %^^A \ffigbox[40mm] % {\caption{Wrapped plain figure (\pkg{wrapfig} package)}% % \floatfoot{Plain figure fails with package version % 3.3}\label{fig:wrapfig:WcatI}} -% {\unitlength1.2\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.2\unitlength +% \ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi % \input{TheCat.picture}} % \end{wrapfigure} % -% Tested with version 3.3 dated 1999/10/12 (style from \pkg{ltxmisc} bundle) -% and 3.6 dated 2003/01/31 (the separate \LaTeX\ package). +% Tested with version 3.3 dated 1999/10/12 (style from \pkg{ltxmisc} +% bundle) and 3.6 dated 2003/01/31 (the separate \LaTeX\ package). % % Options for environment (text borrowed from package comments): % \begin{quote} @@ -2298,16 +2442,18 @@ % \floatsetup[figure]{style=BOXED,frameset={\fboxsep12pt}} % \begin{wrapfigure}[14]{O}{0mm} % \ffigbox[40mm] -% {\par{\setlength\unitlength{\hsize/64}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\par{\setlength\unitlength{\hsize/64}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture}}} % {\caption{Wrapped figure in \cmd{\ffigbox} (\pkg{wrapfig} package)}% % \label{fig:wrapfig:WcatII}} % \end{wrapfigure} % % \emph{Floatrow note.} -% For figure, placed in \env{wrap...} environment you must set width in -% mandatory argument. If you'll write \texttt{0mm} as \marg{width of figure} -% argument, \pkg{wrapfig} package will count natural width of float contents. +% For figure, placed in \env{wrap...} environment you must set width +% in mandatory argument. If you'll write \texttt{0mm} as \marg{width +% of figure} argument, \pkg{wrapfig} package will count natural width +% of float contents. % % Sometimes above (below) float box in \env{wrap...} environment % appears unwanted space. To correct vertical position, use |\FBaskip| @@ -2317,19 +2463,21 @@ % % You may create settings for \env{wrap...} environment, there are % following priorities -% (Please note that you can load also special caption settings with |\captionsetup| stuff.): +% (Please note that you can load also special caption settings with +% |\captionsetup| stuff.): % \begin{itemize}\itemsep0pt % \item % % if exists |\floatsetup[wrap|\meta{captype}|]{...}| -% \pkg{floatrow} uses these settings---they are the ``strongest'' settings; -% if they absent---uses settings of next item; +% \pkg{floatrow} uses these settings---they are the ``strongest'' +% settings; if they absent---uses settings of next item; %^^A \end{itemize} % %^^A \begin{itemize} % \item % if exists |\floatsetup[wrapfloat]{...}| -% \pkg{floatrow} uses these settings---these settings ``stronger'' than next ones; -% if they absent---settings of current float\\[\medskipamount] +% \pkg{floatrow} uses these settings---these settings ``stronger'' +% than next ones; if they absent---settings of current +% float\\[\medskipamount] % |\floatsetup[|\meta{captype}|]{...}|\,;\\[\medskipamount] % if they absent---uses default settings % (|\floatsetup{...}| or package settings). @@ -2340,11 +2488,12 @@ % % The usage of plain float environment in version 3.3 will % not succeed with current version of \pkg{floatrow}---use |\floatbox| -% stuff. The version 3.6 allows usage of plain \env{wrap...} environment with \texttt{plain} (or -% \texttt{ruled}) styles, but -% the framed styles, like \texttt{Boxed} (where text inside frames changes its |\hsize| to fit -% frames, fitted to defined |\hsize|) -% could work only with |\floatbox| macro, otherwise you'll get incorrect widths and layout. +% stuff. The version 3.6 allows usage of plain \env{wrap...} +% environment with \texttt{plain} (or \texttt{ruled}) styles, but +% the framed styles, like \texttt{Boxed} (where text inside frames +% changes its |\hsize| to fit frames, fitted to defined |\hsize|) +% could work only with |\floatbox| macro, otherwise you'll get +% incorrect widths and layout. % \endgroup % % \begingroup @@ -2353,7 +2502,8 @@ % % \begin{floatingfigure}[v]{40mm}\def\FBaskip{-2.5pt} % \ffigbox[42mm] -% {\setlength\unitlength{.85\hsize/60}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\setlength\unitlength{.85\hsize/60}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{BlackDog.picture}} % {\caption{\hyphenpenalty-100\pretolerance-1% % Wrapped figure inside \env{floating\-figure} environment @@ -2366,8 +2516,8 @@ % \emph{Founded limitations} 1)\enskip There is not support for % creation of new \env{floating...} environment. Since \env{floatflt} % environments need usage of |\floatbox| in any case, you can use -% either \env{floatingfigure} or \env{floatingtable} and put necessary -% float type in |\floatbox| argument (or use necessary +% either \env{floatingfigure} or \env{floatingtable} and put +% necessary float type in |\floatbox| argument (or use necessary % macro-abbreviation). % % @@ -2396,7 +2546,8 @@ % \parpic[l]{{%\def\floatrowsep{}\let\FBiffloatrow\iftrue % \def\FBbskip{14pt} % \ffigbox[42mm] -% {{\setlength\unitlength{18mm/61}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {{\setlength\unitlength{18mm/61}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{BlackCat.picture}}} % {\caption{Wrap\-ped figure (\cmd{\parpic}); % \cmd{\floatbox} @@ -2405,18 +2556,19 @@ % % \noindent Tested with version v\,3.0 dated 1999/10/12. % -% This package produces pictures inside paragraph. This package supports -% usage of captions with command |\piccaption|. It also allows the \pkg{caption} -% package settings. +% This package produces pictures inside paragraph. This package +% supports usage of captions with command |\piccaption|. It also allows +% the \pkg{caption} package settings. % -% The \cmd{\parpic} macro usually allows usage of |\floatbox| macro inside of its -% mandatory argument. +% The \cmd{\parpic} macro usually allows usage of |\floatbox| macro +% inside of its mandatory argument. % %^^A \emph{Founded limitations}.\nopagebreak % %^^A 1)\enskip In |\parpic| argument you ought to put before |\floatbox| %^^A following commands:\\[\medskipamount] -%^^A |\def\floatrowsep{}|\allowbreak|\let\FBiffloatrow\iftrue|\\[\medskipamount] +%^^A |\def\floatrowsep{}|\allowbreak +%^^A |\let\FBiffloatrow\iftrue|\\[\medskipamount] %^^A to get correct layout. % % The next limitations could not tied with \pkg{floatrow} package. @@ -2426,7 +2578,8 @@ %^^A \parpic[r]{{%\def\floatrowsep{}\let\FBiffloatrow\iftrue %^^A \hsize36mm %^^A \ffigbox[\hsize] -%^^A {{\setlength\unitlength{16mm/61}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +%^^A {{\setlength\unitlength{16mm/61}\ifx\pspicture\undefined +%^^A \else\psset{unit=\unitlength}\fi %^^A \input{BlackCat.picture}}} %^^A {\caption{Wrapped figure (\cmd{\parpic})}\label{fig:parpic:BcatII}}% %^^A }} @@ -2446,7 +2599,8 @@ % % \endgroup % -% \subsection{The \pkg{rotating} Package and \env{sideways\ldots} Environment} +% \subsection{The \pkg{rotating} Package and \env{sideways\ldots} +% Environment} % % Tested with version v2.13 dated Sep. 1992. % @@ -2483,7 +2637,8 @@ % \begin{itemize} % \item % % if exists |\floatsetup[rot|\meta{captype}|]{...}| -% package uses these settings---the ``strongest'' settings; if they absent---uses settings from next item; +% package uses these settings---the ``strongest'' settings; if they +% absent---uses settings from next item; % \item % if exists |\floatsetup[rotfloat]{...}| % package uses these settings---these settings ``stronger'' than next @@ -2500,12 +2655,12 @@ % package uses these settings---the ``strongest'' settings; % if they absent---uses settings of next item; % \item % -% if exists |\floatsetup[widerotfloat]{...}| -% package uses these settings---these settings ``stronger'' than settings +% if exists |\floatsetup[widerotfloat]{...}| package +% uses these settings---these settings ``stronger'' than settings % in next item; if they absent---uses settings of next item; % \item % -% if exists |\floatsetup[rot|\meta{captype}|]{...}| -% package uses these settings---these settings ``stronger'' than settings +% if exists |\floatsetup[rot|\meta{captype}|]{...}| package +% uses these settings---these settings ``stronger'' than settings % in next item; if they absent---uses settings of next item; % \item % % if exists |\floatsetup[rotfloat]{...}| @@ -2513,8 +2668,8 @@ % ones; % %^^A if they absent---settings of next item; % %^^A \item % -% %^^A if exists |\floatsetup[wide|\meta{captype}|]{...}| -% %^^A package uses these settings; if they absent---settings of next item; +% %^^A if exists |\floatsetup[wide|\meta{captype}|]{...}| package +% %^^A uses these settings; if they absent---settings of next item; % %^^A \item % % %^^A if exists |\floatsetup[widefloat]{...}| % %^^A package uses these settings; @@ -2526,8 +2681,8 @@ % % \emph{Notes}.\nopagebreak % -% 1)\enskip If you place two continued rotated floats on facing pages, the -% better way is to gather them to binder margin. For this reason you +% 1)\enskip If you place two continued rotated floats on facing pages, +% the better way is to gather them to binder margin. For this reason you % may define\footnote{In case \pkg{rotating} package has |[figuresright]| % option, see also files \file{frsample10.tex}--\file{frsample12.tex} % and code in \file{fr-sample.tex}.} before first float @@ -2550,11 +2705,11 @@ % |\floatpagestyle{empty}|. The last macro redefines page style for % the page where \emph{current} float environment appears. % -% I suppose that \pkg{floatpagestyle} package could use not correct -% and honest way for float page style redefinition (\emph{this package redefines -% \LaTeX's core macro} |\@outputpage|).\footnote{If you know more -% honest way to get the same result---the redefinition of float page -% style---please let me know.} Since this package uses +% The version 0.1h patches the core \LaTeX{} macro |\@outputpage| +% and I hope that it could work.\footnote{If you know more honest +% way to get the same result---the redefinition of \emph{alone} +% \emph{float} page style (in the case when this page can \emph{float} +% inside document)---please let me know.} Since this package uses % |\label|---|\ref| mechanism, the |\floatpagestyle| command works % after \emph{second} \LaTeX{} run. % @@ -2578,11 +2733,10 @@ % |\floatsetup| code sets \texttt{ruled} float style, % then settings for above and below material are redefined: % \texttt{rowprecode=} and \texttt{rowpostcode=} keys define thick -% rules but for floatrow as whole (the `individual' |\hrule|'s above/below -% float boxes absent). +% rules but for floatrow as whole (the `individual' |\hrule|'s +% above/below float boxes absent). %\fi\fi % -% % The \env{landscape} environment creates a new page. It would be % useful to start new section of document, e.g., appendix. (In current % document it was placed just before appendix) @@ -2595,49 +2749,59 @@ % % Tested with version v1.3 dated 2004/09/07.\nopagebreak % -% This package has its strong layout mechanism also for creation for floating -% algorithms. The usage of |\lstset| command and \pkg{caption} package settings -% gives you necessary result\footnote{Please note and read \pkg{caption} documentation: -% the co-operation of \pkg{caption}3.x and \pkg{listings} succeed -% with version of last one not older than 1.2.} for algorithm type of float. +% This package has its strong layout mechanism for creation for floating +% algorithms itself. The usage of |\lstset| command and \pkg{caption} +% package settings gives you necessary result\footnote{Please note and read +% \pkg{caption} documentation: the co-operation of \pkg{caption}3.x and +% \pkg{listings} succeeds with version of last one not older than 1.2.} +% for algorithm type of float. % -% For the cases of appearance of listings inside of other float environments -% e.g. inside \env{figure} environments with boxed styles like \texttt{Boxed} -% and \texttt{BOXED} and with predefined float width, you ought to set: +% \iffalse +% For the cases of appearance of listings inside of other float +% environments e.g. inside \env{figure} environments with boxed styles +% like \texttt{Boxed} and \texttt{BOXED} and with predefined float +% width, you ought to set: % \begin{quote} % |\lstset{linewidth=\hsize}| % \end{quote} -% in the preamble, or just before \env{lstlisting} environment. Or in optional argument -% of \env{lstlisting} environment---here you must set width like: +% in the preamble, or just before \env{lstlisting} environment. Or in +% optional argument of \env{lstlisting} environment---here you must set +% width like: % \begin{quote} % |\begin{lstlisting}[linewidth=\hsize]| % \end{quote} +% \fi % -% Another limitation is that you can't put \env{lstlisting} inside +% For the cases of appearance of listings inside of other float +% environments, which get settings from \pkg{floatrow}package, +% there is a limitation: you can't put \env{lstlisting} inside % |\floatbox| contents. % % \subsection{The \pkg{longtable} Package} % % There was added a patch to the |\LT@array| macro (\pkg{longtable} -% package)\footnote{Thanks to A. Sommerfeldt for help to make this code compact.}: -% this patch adds the same font settings as for \env{table} environments, and -% adds code which helps to get width of \env{longtable} caption equal to the +% package)\footnote{Thanks to A. Sommerfeldt for help to make this +% code compact.}: this patch adds the same font settings +% as for \env{table} environments, and adds code which helps +% to get width of \env{longtable} caption equal to the % width of table. For settings of caption width there was created a key. % % \DescribeMacro{LTcapwidth=} -% This key could have any value, like |5cm| or |\hsize|. -% If you'll write \texttt{LTcapwidth=table} or \texttt{LTcapwidth=contents}, -% you will get caption width equal to the width of table. In this case settings -% for width of caption use information from \texttt{aux}-file, so you'll get -% correct caption width at the time when the width of full table become stable. +% This key could have any value, like |5cm| or |\hsize|. If you'll write +% \texttt{LTcapwidth=table} or \texttt{LTcapwidth=contents}, you will get +% caption width equal to the width of table. In this case settings for +% width of caption use information from \texttt{aux}-file, so you'll get +% correct caption width at the time when the width of full table become +% stable. % -% The \env{longtable} environment uses layout settings from |\floatsetup[table]| -% and |\floatsetup[longtable]| macros. The |\floatsetup[longtable]| will be ``strongest'' -% in this pair. +% The \env{longtable} environment uses layout settings from +% |\floatsetup[table]| and |\floatsetup[longtable]| macros. +% The |\floatsetup[longtable]| will be ``strongest'' in this pair. % % \subsection{The \pkg{hyperref} and \pkg{hypcap} Packages} % -% There were tested versions v6.74i (\pkg{hyperref}) and v1.3 (\pkg{hypcap}). +% There were tested versions v6.74i (\pkg{hyperref}) +% and v1.3 (\pkg{hypcap}). % % The \pkg{floatrow} tries not to expand its code to |\caption| stuff. % I hope that environments supported by \pkg{floatrow} won't @@ -2666,12 +2830,12 @@ % \pkg{floatrow}: % \begin{itemize} % %^^A \item % -% %^^A Limitations for boxed and ruled styles in beside floats: -% %^^A be careful with usage of \emph{alone} minipage environment in object or caption -% %^^A in |\floatbox| macro. Since the object and caption are created in minipage -% %^^A environment already, the added \texttt{minipage} could get wrong layout -% %^^A (vertical alignment). But, as I found, you may use a few \texttt{minipage}s in -% %^^A object without harm. +% %^^A Limitations for boxed and ruled styles in beside floats: be +% %^^A careful with usage of \emph{alone} minipage environment in object +% %^^A or caption in |\floatbox| macro. Since the object and caption are +% %^^A created in minipage environment already, the added \texttt{minipage} +% %^^A could get wrong layout (vertical alignment). But, as I +% %^^A found, you may use a few \texttt{minipage}s in object without harm. % \item % % You cannot use |\floatbox| stuff for floats with \texttt{verbatim} % environment and/or |\verb|. @@ -2714,8 +2878,8 @@ % the end of contents of each part, or wrong justification of float % components. % %^^A \item % -% %^^A Usage of fancy boxes \texttt{shadowbox} and \texttt{wshadowbox} could get wrong -% %^^A layout with beside captions. +% %^^A Usage of fancy boxes \texttt{shadowbox} and \texttt{wshadowbox} +% %^^A could get wrong layout with beside captions. % \item If you use inside |\floatbox| stuff % \env{tabularx} or \env{tabular*} environments (or any other) with % |\hsize| command inside \meta{width} argument, you must repeat the @@ -2736,8 +2900,8 @@ % % \section{Acknowledgements} % -% Thanks for Steven Cochran and Axel Sommerfeldt for all their advices and spirit. -% Special thanks for Axel for the patient answering, code, and +% Thanks for Steven Cochran and Axel Sommerfeldt for all their advices +% and spirit. Special thanks for Axel for the patient answering, code, and % help in \emph{all} my questions and problems in \pkg{floatrow} package. % % \medskip\noindent @@ -2778,11 +2942,13 @@ % \floatbox{figure}[2\FBwidth][][b] % {\caption{Beside figure~II, bottom of object box}% % \label{fig:rotrow:BcatI}% -% \floatfoot{There are all \cmd{\qbezier} macros and only two vertical lines}}% +% \floatfoot{There are all \cmd{\qbezier} macros and only +% two vertical lines}}% % {\input{BlackCat.picture}}% % % \ffigbox[\FBwidth] -% {{\unitlength2.5\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {{\unitlength2.5\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{Mouse.picture}}\footnote[2]% % {Look at funny footnotemark!}} % {\caption{Beside figure~III, center of object box}% @@ -2808,8 +2974,9 @@ % % \floatsetup[figure]{style=Boxed,midcode=captionskip, % frameset={\fboxsep12pt\fboxrule1pt}} -% Sometimes author (or designer) wants to put different types of floats, e.g., table and figure -% beside in one row. This situation creates some problems. +% Sometimes author (or designer) wants to put different types of floats, +% e.g., table and figure beside in one row. This situation creates +% some problems. % % The first problem is that you must put different types of float in % one float environment, which sets its own layout for included float @@ -2843,7 +3010,8 @@ % \begin{floatrow} % \CenterFloatBoxes \killfloatstyle % \ffigbox[\FBwidth] -% {{\unitlength1.15\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {{\unitlength1.15\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture}}} % {\caption{Figure (\texttt{Boxed} style) beside table % (vertical centering)}\label{fig:rowmixspec:WcatI}}% @@ -2913,13 +3081,15 @@ % \begin{figure}[b!] % \begin{floatrow} % \fcapsideleft -% {\unitlength1.44\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.44\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture}} % {\caption{%^^A % Float box (\cmd{\fcapsideleft}) % width of graphics}\label{floatbox:FR:lfig}}% % \hsize\Xhsize \fcapsideright[\hsize] -% {\setlength\unitlength{\hsize/61}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\setlength\unitlength{\hsize/61}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{BlackCat.picture}}% % {\caption{%^^A % Float box (\cmd{\fcapsideright}) @@ -2966,16 +3136,16 @@ % \subsubsection{Predefined Beside Caption Width} % % This example includes |\useFCwidth| command, which switches on usage -% of previously defined caption width with \texttt{capbesidewidth=} key (in command -% |\thisfloatsetup| before |\floatbox| macro) or, if you didn't set caption width (like -% in current example), macro counts natural width of caption contents -% (see figure~\ref{fig:Idog:w}\footnote{Inside \cmd{\floatbox} you may -% not set predefined width of caption, but remember that you -% \emph{must} define width of caption in case of usage of plain float -% environment.}). The object---caption box in this case aligned using -% alignment settings from |margins| key (its options defined by |\setfloatmargins| -% or |\floatcapbesidemargins| macro). In this documentation they are -% centered (see page~\pageref{fsetup:besmarg}). +% of previously defined caption width with \texttt{capbesidewidth=} key +% (in command |\thisfloatsetup| before |\floatbox| macro) or, if you +% didn't set caption width (like in current example), macro counts natural +% width of caption contents (see figure~\ref{fig:Idog:w}\footnote{Inside +% \cmd{\floatbox} you may not set predefined width of caption, but remember +% that you \emph{must} define width of caption in case of usage of plain +% float environment.}). The object---caption box in this case aligned +% using alignment settings from |margins| key (its options defined +% by |\setfloatmargins| or |\floatcapbesidemargins| macro). In this +% documentation they are centered (see page~\pageref{fsetup:besmarg}). %\begin{verbatim} %\begin{figure} %\floatbox[\capbeside\useFCwidth]{figure}[\FBwidth] @@ -2990,7 +3160,8 @@ % {\caption[Beside % caption, width equals to caption's text]{Beside % caption}\label{fig:Idog:w}} -% {{\setlength\unitlength{{4cm}/60}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {{\setlength\unitlength{{4cm}/60}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{BlackDog.picture}}} % \end{figure}% % @@ -2999,15 +3170,17 @@ %\floatsetup[figure]{style=plain} %\end{verbatim} % -% \subsubsection{Predefined Beside Caption Width with The Rest Space for Object} +% \subsubsection{Predefined Beside Caption Width with +% The Rest Space for Object} % % The figure \ref{fig:capbeside:trick} uses following float style:%^^A %^^A \footnote{There are also addition settings for captions: %^^A \cmd{\captionsetup[capbesidefigure]}\allowbreak %^^A \texttt{\{format=default,}\allowbreak\texttt{labelsep=none\}} %^^A which is necessary for current documentation: the \pkg{hyperref} -%^^A creates unwanted result with empty argument of caption title. The same settings used -%^^A for figures~\ref{floatrow:pre:figI} and \ref{floatrow:pre:figII}} +%^^A creates unwanted result with empty argument of caption title. The +%^^A same settings used for figures~\ref{floatrow:pre:figI} and +%^^A \ref{floatrow:pre:figII}} %\begin{verbatim} %\floatsetup[figure] % {style=Boxed,capposition=beside,objectset=centering, @@ -3029,12 +3202,14 @@ % floatwidth=\columnwidth,capbesidewidth=\Mylen, % capbesideposition=left,capbesidesep=cicero, % margins=centering,capbesideframe=yes,floatwidth=sidefil} -% \newdimen\Mylen\settowidth\Mylen{\captionfont\captionlabelfont\figurename\ \thefigure} +% \newdimen\Mylen\settowidth\Mylen{\captionfont\captionlabelfont +% \figurename\ \thefigure} % % \begin{figure} %^^A \captionsetup[capbesidefigure]{format=default,labelsep=none} % \fcapside -% {\unitlength1.1\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.1\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture}} % {\caption{}\label{fig:capbeside:trick}} % \end{figure}% @@ -3070,7 +3245,8 @@ % \captionsetup[capbesidefigure]{format=break,labelsep=none, % justification=raggedright} % \begin{figure}[!b] -% \unitlength1.1\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% \unitlength1.1\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture} % \caption{%^^A % Plain figure}\label{fig:plain:trick} @@ -3084,7 +3260,8 @@ % justification=raggedright} %\end{verbatim} % -% \subsubsection{Width Definition for Beside Caption---Object Box in Float Row} +% \subsubsection{Width Definition for Beside +% Caption---Object Box in Float Row} % % The float row with predefined width of beside object---caption % boxes (figures~\ref{floatrow:pre:figI} and @@ -3097,7 +3274,8 @@ %\begin{verbatim} %\setlength\hsize\Xhsize %\end{verbatim} -% before second (here is clear that you can set |\setlength\hsize{.902\hsize}|). +% before second (here is clear that you can set +% |\setlength\hsize{.902\hsize}|). % % Since there were used \verb|\fcapside| commands at the beginning of % \env{floatrow} environment the \verb|\FCwidth| command was defined @@ -3114,13 +3292,15 @@ % \begin{floatrow} % \setlength\hsize{1.098\hsize}% % \fcapside -% {\setlength\unitlength{\hsize/64}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\setlength\unitlength{\hsize/64}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture}} % {\caption{%^^A % }\label{floatrow:pre:figI}} % \setlength\hsize\Xhsize % \fcapside -% {\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{Mouse.picture}} % {\caption{%^^A % }\label{floatrow:pre:figII}} @@ -3134,7 +3314,8 @@ % margins=centering,capbesideframe=yes,floatwidth=sidefil} %\end{verbatim} % -% \subsubsection{Caption Above/Below Float and Caption Beside Float at The One Float Row} +% \subsubsection{Caption Above/Below Float and Caption Beside Float at +% The One Float Row} % % The float row with object and beside caption combined with object % and caption below (figures~\ref{flrow:mix:figI} and @@ -3166,14 +3347,16 @@ % \begin{figure}\CenterFloatBoxes % \begin{floatrow} % \hsize1.098\hsize \fcapside[\FBwidth][4cm] -% {\unitlength1.44\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.44\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture}} % {\caption{%^^A % Float box (\cmd{\fcapside}) with beside caption in float row % width float with caption below}\label{flrow:mix:figI}}% % % \ffigbox[\Xhsize][4cm] -% {\unitlength1.44\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.44\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{BlackDog.picture}} % {\caption{%^^A % Float box (\cmd{\ffigbox}) width of rest float row @@ -3198,7 +3381,8 @@ % \begin{figure}[!b]\CenterFloatBoxes % \begin{floatrow} % \ffigbox[1.2\FBwidth][4cm] -% {\unitlength1.44\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.44\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{BlackDog.picture}} % {\caption{%^^A % Float box (\cmd{\ffigbox}) width of rest float row @@ -3206,7 +3390,8 @@ % \hsize\Xhsize % % \fcapside[\FBwidth][4cm] -% {\unitlength1.44\unitlength\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\unitlength1.44\unitlength\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{TheCat.picture}} % {\caption{%^^A % Float box with beside caption (\cmd{\fcapside}) in mirror float row @@ -3214,8 +3399,8 @@ % \end{floatrow}% % \end{figure} % -% The figures~\ref{floatrow:mirrmix:figII}--\ref{floatrow:mirrmix:figI} use -% following float style settings: +% The figures~\ref{floatrow:mirrmix:figII}--\ref{floatrow:mirrmix:figI} +% use following float style settings: %\begin{verbatim} %\floatsetup[figure] % {style=Boxed,frameset={\fboxsep4pt},captionskip=5pt, @@ -3254,7 +3439,8 @@ % \begin{floatrow} % \hsize1.2\hsize % \ffigbox[][6.7cm] -% {\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{Mouse.picture}}% % {\caption{Float box in photo-album-like layout: % alone in left column}\label{flrow:three:figIII}}% @@ -3315,7 +3501,8 @@ % \label{floatrow:three:figII}}\vskip0pt}\floatrowsep % % \ffigbox[\Xhsize][7cm-11pt] -% {\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined\else\psset{unit=\unitlength}\fi +% {\setlength\unitlength{\hsize/58}\ifx\pspicture\undefined +% \else\psset{unit=\unitlength}\fi % \input{Mouse.picture}}% % {\caption{%^^A % Float box in photo-album-like layout: alone in right @@ -3350,15 +3537,19 @@ % The list of samples: % % \begin{Options}{\OptionLabel} -% \item[frsample01.tex] all possible combinations of predefined \pkg{floatrow} styles -% for captions above/below floats with foot material; -% there were created plain float environments and \env{floatrow}s, also -% there were created boxes with alone objects and alone captions; -% \item[frsample02.tex] all possible combinations of predefined \pkg{floatrow} styles -% for beside captions and all possible caption positions; +% \item[frsample01.tex] all possible combinations of predefined +% \pkg{floatrow} styles for captions above/below floats with foot +% material; there were created plain float environments and +% \env{floatrow}s, also there were created boxes with +% alone objects and alone captions; +% \item[frsample02.tex] all possible combinations of predefined +% \pkg{floatrow} styles for beside captions and all possible +% caption positions; % \item[frsample03.tex] different tests with tables; -% \item[frsample04.tex] sample with fancy layout with usage of beside captions; -% \item[frsample05.tex] one-column facing layout; miscellaneous caption settings. +% \item[frsample04.tex] sample with fancy layout with usage of +% beside captions; +% \item[frsample05.tex] one-column facing layout; miscellaneous +% caption settings. % \end{Options} % % The next bundle of samples is a few file-headers with different @@ -3366,17 +3557,24 @@ % layouts. For these examples there was created a new float type of % float \texttt{textbox}---which includes text in its object contents. % \begin{Options}{\OptionLabel} -% \item[frsample10.tex] one column non-facing layout; figures printed in \texttt{plain} style; -% text boxes use miscellaneous ruled style; -% \item[frsample11.tex] one-column non-facing layout with elements hanged on left margin -% (e.g. wide floats, in starred environments, like \env{figure*}); -% \item[frsample12.tex] two-column layout with attempts of colored float styles. +% \item[frsample10.tex] one column non-facing layout; figures +% printed in \texttt{plain} style; text boxes use miscellaneous +% ruled style; +% \item[frsample11.tex] one-column non-facing layout with elements +% hanged on left margin (e.g. wide floats, in starred environments, +% like \env{figure*}); +% \item[frsample12.tex] two-column layout with attempts of +% colored float styles. % \end{Options} +% +% There is also added [temporary] sample file \file{sample-longtable.tex} +% with \env{longtable} test of defined command |\endlasthead| which +% defines captions for continued and last pages of long table in three +% possible ways. %\vfil % % \section{Obsolete Commands}\label{sec:changed} % -% There are obsolete macros which were replaced by commands from % |\floatsetup|, renamed or deleted after version 0.1b. % % \begingroup\extrarowheight1.75pt\small\tabcolsep.5\tabcolsep @@ -3425,8 +3623,10 @@ % \texttt{capbesideframe=yes} % \\\hline % \extrarowheight0pt\begin{tabular}[t]{@{}l} -% \smash{\cmd{\capbesidecenter}},\\ \smash{\cmd{\capbesidetop}},\\ \smash{\cmd{\capbesidebottom}},\\ -% \smash{\cmd{\capbesideinside}},\\ \smash{\cmd{\capbesideoutside}},\\ +% \smash{\cmd{\capbesidecenter}},\\ \smash{\cmd{\capbesidetop}},\\ +% \smash{\cmd{\capbesidebottom}},\\ +% \smash{\cmd{\capbesideinside}},\\ +% \smash{\cmd{\capbesideoutside}},\\ % \smash{\cmd{\capbesideleft}},\\ \smash{\cmd{\capbesideright}} % \end{tabular}& % \extrarowheight0pt\begin{tabular}[t]{@{}l} @@ -3450,7 +3650,8 @@ % \end{tabular} % \\\hline % \extrarowheight0pt\begin{tabular}[t]{@{}l} -% \cmd{\FBcenter}\vphantom{g},\\ \cmd{\FBleft}\vphantom{g},\\ \cmd{\FBright},\\ \cmd{\FBnormal} +% \cmd{\FBcenter}\vphantom{g},\\ \cmd{\FBleft}\vphantom{g},\\ +% \cmd{\FBright},\\ \cmd{\FBnormal} % \end{tabular}& % \extrarowheight0pt\begin{tabular}[t]{@{}l} % \texttt{margins=center},\\ @@ -3509,12 +3710,14 @@ % \texttt{framereduce=} & \texttt{framefit=} % \\\hline % \extrarowheight0pt\begin{tabular}[t]{@{}l@{}} -% \vphantom{(}options of \texttt{objectset=}\\\quad and \texttt{margins=}\\ +% \vphantom{(}options of \texttt{objectset=}\\\quad +% and \texttt{margins=}\\ % \texttt{flushleft},\\ \texttt{flushright},\\\texttt{center} % \end{tabular} & % \extrarowheight0pt\begin{tabular}[t]{@{}l@{}} -% \vphantom{(}options of \texttt{objectset=} and \texttt{margins=} (for unification\\\quad -% with analogous key options in \pkg{caption} package)\\ +% \vphantom{(}options of \texttt{objectset=} and \texttt{margins=} +% (for unification\\\quad with analogous key options in \pkg{caption} +% package)\\ % \texttt{raggedright},\\ \texttt{raggedleft},\\ \texttt{centering} % \end{tabular} % \\\hline @@ -3531,36 +3734,47 @@ % % \changes{v0.1a}{2004/09/28}{Since the changes of version 0.1a touched % a lot of package all entries of changing messages deleted.} -% \changes{v0.1d}{2005/02/07}{Removed info, error, command macros---used standard instead} -% The first step is to check whether \pkg{float} and \pkg{rotfloat} are loaded or not. -% If yes, there go error messages. +% \changes{v0.1d}{2005/02/07}{Removed info, error, command macros---used +% standard instead} The first step is to check whether \pkg{float} and +% \pkg{rotfloat} are loaded or not. If yes, there go error messages. % \changes{v0.1d}{2005/02/07}{Added test for \pkg{rotfloat} package} +% \changes{v0.1j}{2006/03/12}{Try to say `good bye' +% in the case of \pkg{float} or/and \pkg{rotfloat} loaded before} % \begin{macrocode} %<*floatrow> -\@ifundefined{float@caption}{}% - {\PackageError{floatrow}{Do not use float package with floatrow}{}} -\@ifundefined{rotfloat@float}{}% - {\PackageError{floatrow}{Do not use rotfloat package with floatrow}{}} -% \end{macrocode} -% -% The next lines emulate already loaded \pkg{float} and \pkg{rotfloat} packages. -% -% If in preamble, after loading of \pkg{floatrow} package -% is used |\usepackage| with \pkg{float} package -% (the \pkg{float} package doesn't support any options), the defining -% of command |\ver@float.sty|, which emulates loading of package will do not any harm. -% -% Unfortunately the \pkg{rotfloat} package allows to transfer options of \pkg{rotating} -% package in the case of appearance of both packages in one |\usepackage| line. Thus, -% if someone loads options in \pkg{rotating}---\pkg{rotfloat} line, he will get -% `option clash' error. A followed help gives a simple solution of such problem---moving options -% in |\documentclass| line and make them global. I hope, that moving \pkg{rotating}'s option as -% global will do not harm to documents, but now you aware of ``nonnecessity'' of loading +%\@ifundefined{float@caption}{}% +% {\PackageError{floatrow}{Do not use float package with floatrow}{}} +%\@ifundefined{rotfloat@float}{}% +% {\PackageError{floatrow}{Do not use rotfloat package with floatrow}{}} +\@ifundefined{float@caption}{% + \@ifundefined{rotfloat@float}{}% + {\PackageError{floatrow}{Do not use rotfloat package with floatrow}{}% + \@namedef{opt@floatrow.sty}{}\endinput}}% + {\PackageError{floatrow}{Do not use float package with floatrow}{}% + \@namedef{opt@floatrow.sty}{}\endinput} +% \end{macrocode} +% +% The next lines emulate already loaded \pkg{float} and \pkg{rotfloat} +% packages. +% +% If in preamble, after loading of \pkg{floatrow} package is used +% |\usepackage| with \pkg{float} package (the \pkg{float} package +% doesn't support any options), the defining of command |\ver@float.sty|, +% which emulates loading of package will do not any harm. +% +% Unfortunately the \pkg{rotfloat} package allows to transfer options of +% \pkg{rotating} package in the case of appearance +% of both packages in one |\usepackage| line. Thus, if someone loads +% options in \pkg{rotating}---\pkg{rotfloat} line, he will get +% `option clash' error. A followed help gives a simple solution of such +% problem---moving options in |\documentclass| line and make them global. +% I hope, that moving option in this way will do not harm +% to document, but now you aware of ``non-necessity'' of loading % of \pkg{rotfloat} package. -% \changes{v0.1e}{2005/03/22}{Restoring code of emulation of loading for \pkg{float} -% and \pkg{rotfloat} packages.} -% \changes{v0.1f}{2005/06/14}{The version, date and description of \pkg{float} and -% \pkg{floatrow} borrowed from originals (AS).} +% \changes{v0.1e}{2005/03/22}{Restoring code of emulation of loading +% for \pkg{float} and \pkg{rotfloat} packages.} +% \changes{v0.1f}{2005/06/14}{The version, date and description of +% \pkg{float} and \pkg{floatrow} borrowed from originals (AS).} % \begin{macrocode} %\expandafter\let\csname ver@float.sty\expandafter\endcsname % \csname ver@floatrow.sty\endcsname @@ -3573,21 +3787,25 @@ % \end{macrocode} % % Here goes request for \pkg{keyval} package. -% \changes{v0.1c}{2004/10/22}{Bug fix: added request for \pkg{keyval} package.} +% \changes{v0.1c}{2004/10/22}{Bug fix: added request for \pkg{keyval} +% package.} % \begin{macrocode} \RequirePackage{keyval} % \end{macrocode} % -% Here goes request for \file{caption3} file, core part of \pkg{caption} package. +% Here goes request for \file{caption3} file, core part of \pkg{caption} +% package. % \changes{v0.1f}{2005/06/14}{Added request for \pkg{caption3} package.} +% \changes{v0.1j}{2006/06/18}{Added date request for \pkg{caption3} package.} % \begin{macrocode} -\RequirePackage{caption3} +\RequirePackage{caption3}[2006/01/12] % \end{macrocode} % % \subsection{Storing of \LaTeX's Internal Macros} % % \begin{macro}{\FR@flboxreset} -% First goes storage of \LaTeX's macro |\@floatboxreset| from bundle of float definitions. +% First goes storage of \LaTeX's macro |\@floatboxreset| from bundle of float +% definitions. % \begin{macrocode} \@ifdefinable\FR@flboxreset{\let\FR@flboxreset\@floatboxreset} \@ifdefinable\FR@makecaption{\let\FR@makecaption\@makecaption} @@ -3595,9 +3813,10 @@ % \end{macro} % % \begin{macro}{\FB@caption} -% Here is stored standard \LaTeX's |\caption| command (it is used for caption -% width counting). -% \changes{v0.1f}{2005/06/14}{Restores \LaTeX's \cmd{\caption} macro (for width count)} +% Here is stored standard \LaTeX's |\caption| command (it is used for +% caption width counting). +% \changes{v0.1f}{2005/06/14}{Restores \LaTeX's \cmd{\caption} macro +% (for width count)} % \begin{macrocode} \newcommand\FB@caption{% \ifx\@captype\@undefined @@ -3622,9 +3841,9 @@ % % \subsection{Borrowed Code (with original comment) from \pkg{float} package} % -% From this point starts \pkg{float} package's core code (version 1.3). The necessary -% explanation of macro code also borrowed from \pkg{float} package and typed -% with slanted font. Some macros +% From this point starts \pkg{float} package's core code (version 1.3). +% The necessary explanation of macro code also borrowed from \pkg{float} +% package and typed with slanted font. Some macros % were skipped or edited (see \emph{floatrow notes}). % % \begin{sl}\medskip @@ -3644,8 +3863,8 @@ % The |\floatstyle| command puts its argument into the % |\float@style| macro as the name of the new float style. % But if the argument doesn't denote a float style, an error message -% is output instead: Each float style \meta{style} has a corresponding command -% |\fs@|\meta{style} that contains the appropriate declarations. +% is output instead: Each float style \meta{style} has a corresponding +% command |\fs@|\meta{style} that contains the appropriate declarations. % If the control sequence |\fs@|\meta{arg} (which goes with the % argument \meta{arg} to |\floatstyle|) is undefined, i.e., % equals |\relax| under |\ifx|, then the float style \meta{arg} @@ -3681,9 +3900,10 @@ \newcommand\floatname[2]{\@namedef{fname@#1}{#2}} \newcommand\floatplacement[2]{\@namedef{fps@#1}{#2}} % \end{macrocode} -% \emph{\textit{Floatrow note.} Here was stuff of undocumented command \cmd{\floatevery} -% which, I suppose, allows to set special settings for current type of float. -% In \pkg{floatrow} package it was deleted. Use \cmd{\floatsetup} stuff instead.} +% \emph{\textit{Floatrow note.} Here was stuff of undocumented command +% \cmd{\floatevery} which, I suppose, allows to set special settings for +% current type of float. In \pkg{floatrow} package it was deleted. +% Use \cmd{\floatsetup} stuff instead.} % \end{macro} % \end{macro} % @@ -3702,8 +3922,8 @@ % \begin{macro}{\FR@redefs} % This macro makes temporary redefinitions of |\@makecaption| % and |\@floatboxreset| macros. -% \changes{v0.1f}{2005/06/14}{The \cmd{\@makecaption} and \cmd{\@floatboxreset} -% macros redefined locally.} +% \changes{v0.1f}{2005/06/14}{The \cmd{\@makecaption} and +% \cmd{\@floatboxreset} macros redefined locally.} % \begin{macrocode} \newcommand\FR@redefs{% % \@namedef{fst@\@captype}{}% @@ -3721,12 +3941,13 @@ % \end{macro} % % \begin{macro}{\flrow@makecaption} -% In this macro the |\FBc@wd| used as flag for wrapped floats (for the case -% when natural width of float counted). +% In this macro the |\FBc@wd| used as flag for wrapped floats (for the +% case when natural width of float counted). % \changes{v0.1f}{2005/06/14}{The \cmd{\@caption} redefinitions % transformed to \cmd{\@makecaption} ones.} % \changes{v0.1f}{2005/06/14}{The \cmd{\FBc@wd}\cmd{\z@} works like % flag (for \pkg{wrapfig}'s floats).} +% \changes{v0.1h}{2005/10/02}{Added setting for \cmd{\linewidth}} % \begin{macrocode} \newcommand\flrow@makecaption[2]{\global\setbox\@floatcapt \vbox\bgroup\@parboxrestore @@ -3738,6 +3959,7 @@ \adj@dim\hsize+\FBo@wadj=\hsize \fi \fi + \linewidth\hsize \normalsize \abovecaptionskip\z@\belowcaptionskip\z@ \FR@makecaption{#1}{#2}\egroup} @@ -3756,7 +3978,8 @@ % % \begin{macro}{\RawFloats} % This macro restores core-\LaTeX-float-environment's behavior. -% \changes{v0.1f}{2005/06/14}{Added Macro which restores raw float behavior.} +% \changes{v0.1f}{2005/06/14}{Added Macro which restores raw float +% behavior.} % \changes{v0.1g}{2005/07/15}{Added \cmd{\@parboxrestore} macro.} % \begin{macrocode} \newcommand\RawFloats[1][\@captype]{\killfloatstyle @@ -3787,8 +4010,9 @@ % % \begin{macro}{\FBB@wd} % This command stores absolute width for |\floatbox|'s |\hsize|. -% The usage of |\FBB@wd| as command needs definitions like |\edef\FBB@wd{\the\textwidth}| to get -% right layout in float rows with |BOXED|-like layouts. +% The usage of |\FBB@wd| as command needs definitions like +% |\edef\FBB@wd{\the\textwidth}| to get right layout in float rows +% with |BOXED|-like layouts. % \changes{v0.1f}{2005/06/14}{The command is \cmd{\let} to \cmd{\relax}.} % \changes{v0.1g}{2005/07/15}{The macro-flag \cmd{\FR@ifflenv} removed.} % \begin{macrocode} @@ -3799,8 +4023,8 @@ % \begin{macro}{\restylefloat} % The redefined \pkg{float} package macros to follow |\floatsetup| stuff. % -% This macro starts to work at the beginning of document, so it has tests for -% loaded packages. +% This macro starts to work at the beginning of document, so it has tests +% for loaded packages. % \changes{v0.1f}{2005/06/14}{Redefined (AS).} % \begin{macrocode} \newcommand\restylefloat{% @@ -3818,17 +4042,19 @@ % \begin{macrocode} %\newcommand\float@restyle{} % \end{macrocode} -% To avoid redefinition of this macro by other packages (e.g. \pkg{wrapfig}, which uses -% |\float@restyle| as recognition of \pkg{float} v1.3 package) \pkg{floatrow} package -% uses other name. +% To avoid redefinition of this macro by other packages (e.g. \pkg{wrapfig}, +% which uses |\float@restyle| as recognition of \pkg{float} v1.3 package) +% \pkg{floatrow} package uses other name. % \changes{v0.1f}{2005/06/14}{Added \cmd{\FR@redefs} command for local % redefinitions.} -% \changes{v0.1f}{2005/06/14}{The \cmd{\xdef}\cmd{\FBB@wd} changed to \cmd{\edef}\cmd{\FBB@wd}.} +% \changes{v0.1f}{2005/06/14}{The \cmd{\xdef}\cmd{\FBB@wd} changed to +% \cmd{\edef}\cmd{\FBB@wd}.} % \begin{macrocode} \newcommand\flrow@restyle[1]{% % \end{macrocode} % One-column float environment. -% \changes{v0.1f}{2005/06/14}{Added \cmd{\@captype}: necessary for \cmd{\FR@redefs}.} +% \changes{v0.1f}{2005/06/14}{Added \cmd{\@captype}: necessary +% for \cmd{\FR@redefs}.} % \begin{macrocode} \@namedef{#1}{\killfloatstyle\def\@captype{#1}\FR@redefs \flrow@setlist{{#1}}% @@ -3839,8 +4065,8 @@ % \begin{macrocode} \@namedef{#1*}{\killfloatstyle\def\@captype{#1}\FR@redefs % \end{macrocode} -% The |\@captype| definition needed here and in next definitions to get correct and non-doubled -% |\captionsetup| contents. +% The |\@captype| definition needed here and in next definitions to get +% correct and non-doubled |\captionsetup| contents. % \begin{macrocode} \flrow@setlist{{#1}{widefloat}{wide#1}}% \FRifFBOX\@@setframe\fi\@@FStrue\edef\FBB@wd{\the\textwidth}% @@ -3853,7 +4079,8 @@ \expandafter\let\csname end#1*\endcsname\float@dblend % \end{macrocode} % One-column rotated float environment. -% The code contents of |\rotfloat@float| macro (\pkg{rotfloat} package) moved here. +% The code contents of |\rotfloat@float| macro (\pkg{rotfloat} package) +% moved here. % \begin{macrocode} \@ifundefined{@rotfloat}{}{% \@namedef{sideways#1}{\killfloatstyle\def\@captype{#1}\FR@redefs @@ -3868,7 +4095,8 @@ % Two-column rotated float environment without support. % (The style ``support'' for non-rotated two column or wide float % \texttt{widefloat} and \texttt{wide}\meta{captype} was removed.) -% \changes{v0.1d}{2005/02/07}{Restored \pkg{rotfloat}'s definition form for wide rotated float} +% \changes{v0.1d}{2005/02/07}{Restored \pkg{rotfloat}'s definition form +% for wide rotated float} % \begin{macrocode} \ifx\@rotdblfloat\undefined \@namedef{sideways#1*}{% @@ -3878,7 +4106,8 @@ \else % \end{macrocode} % Two-column rotated float environment with support. -% \changes{v0.1d}{2005/02/07}{The settings for non-rotated wide float removed} +% \changes{v0.1d}{2005/02/07}{The settings for non-rotated wide float +% removed} % \begin{macrocode} \@namedef{sideways#1*}{\killfloatstyle\def\@captype{#1}\FR@redefs \flrow@setlist{{#1}{rotfloat}{rot#1}{widerotfloat}{widerot#1}}% @@ -3888,7 +4117,8 @@ % {\sl The standard |\@xdblfloat| macro changes |\hsize| to |\textwidth|. % This way is not correct so use |\@xfloat| instead.} % -% The code contents of |\rotfloat@dblfloat| macro (\pkg{rotfloat} package) moved here. +% The code contents of |\rotfloat@dblfloat| macro (\pkg{rotfloat} +% package) moved here. % \begin{macrocode} \let\@xdblfloat\@xfloat \let\rotfloat@@makebox\float@makebox @@ -3911,14 +4141,18 @@ \the\FR@everyfloat\ignorespaces}% }{}% \@namedef{wrap#1}{\killfloatstyle\def\@captype{#1}% +% \end{macrocode} +% ^^A The \cmd{\FloatHBarrier} for \pkg{flafplins}. +% ^^A \changes{v0.1j}{2006/03/12}{Added \cmd{\FloatHBarrier} in wrapfloat} +% \begin{macrocode} \FR@redefs\FBc@wd\z@ \flrow@setlist{{#1}{wrapfloat}{wrap#1}{tmpset}}% \global\let\flrow@typ@tmpset\undefined % \end{macrocode} -% Here repeated code from |\float@end| and |\float@dblend|: check whether |\floatbox| -% stuff appeared or not. -% \changes{v0.1f}{2005/06/14}{The \cmd{\ifFBbuild} flag added: here is not used -% \cmd{\float@end} command and so on. } +% Here repeated code from |\float@end| and |\float@dblend|: check whether +% |\floatbox| stuff appeared or not. +% \changes{v0.1f}{2005/06/14}{The \cmd{\ifFBbuild} flag added: here is +% not used \cmd{\float@end} command and so on. } % \begin{macrocode} \def\WF@floatstyhook{\let\@currbox\WF@box \ifFBbuild @@ -3932,7 +4166,10 @@ \global\let\WF@box\@currbox \fi}% \@ifnextchar[\WF@wr{\WF@wr[]}}%] - \expandafter\let\csname endwrap#1\endcsname\endwrapfloat} +% \expandafter\let\csname endwrap#1\endcsname\endwrapfloat} + \@namedef{endwrap#1}{\endwrapfloat + \@ifundefined{FloatHBarrier}{}\FloatHBarrier + }} %^^A \@namedef{endwrap#1}{\ifdim\hsize>\z@ %^^A \adj@dim\hsize+\FBo@wadj=\hsize\fi\endwrapfloat}} % \end{macrocode} @@ -3940,8 +4177,8 @@ % The subfloats for figures and tables (|\c@subfigure| and |\c@subtable|) % already defined: so at first goes check, whether defined this command for % subfloat (suggestions of Steven Cochran ). -% \changes{v0.1f}{2005/06/14}{Added check/filter for already created subfigures -% and subtables (SC).} +% \changes{v0.1f}{2005/06/14}{Added check/filter for already created +% subfigures and subtables (SC).} % \begin{macrocode} \@ifundefined{subfloat}{}{\@ifundefined{c@sub#1}{\newsubfloat{#1}}{}}} % \end{macrocode} @@ -3958,8 +4195,8 @@ \@ifdefinable\float@exts{\newtoks\float@exts} % \end{macrocode} % {\em \textit{Floatrow note.} -% The |\newfloat| changed and uses |\floatsetup| stuff (redefined by suggestions of -% Axel Sommerfeldt).} +% The |\newfloat| changed and uses |\floatsetup| stuff (redefined by +% suggestions of Axel Sommerfeldt).} % \changes{v0.1f}{2005/06/14}{Redefinition (AS).} % \begin{macrocode} \newcommand\newfloat{\@ifstar{\flrow@restylefloat{no}\newfloat@}% @@ -3975,8 +4212,8 @@ % \end{macro} % % \begin{macro}{\float@newx} -% {\em \textit{Floatrow note.} Macro |\float@newx|, which defines a new float counter, was removed. -% It was replaced by |\DeclareNewFloatType| stuff.} +% {\em \textit{Floatrow note.} Macro |\float@newx|, which defines a new float +% counter, was removed. It was replaced by |\DeclareNewFloatType| stuff.} % \end{macro} % % \subsubsection{The \pkg{float} Package: Adapting \LaTeX\ Internals} @@ -4004,8 +4241,8 @@ % \end{macrocode} % \end{macro} % {\em\textit{Floatrow note}. Since \pkg{floatrow} always uses float style, -% the stuff of flag \cmd{\@flstyle} (which sets whether use or not any predefined -% float style) moved out.} +% the stuff of flag \cmd{\@flstyle} (which sets whether use or not any +% predefined float style) moved out.} % % Later on we'll need a box to save a |[H]| float. % \begin{macrocode} @@ -4019,29 +4256,41 @@ % \begin{macrocode} \def\@float@HH#1[H]{% % \end{macrocode} +%^^A {\em\textit{Floatrow note}. If we want to put barrier +%^^A (i.e. use beta-package \pkg{flafplins}).} +% \changes{v0.1j}{2006/03/12}{Added \cmd{\FloatHBarrier}} +% \begin{macrocode} + \@ifundefined{FloatHBarrier}{}\FloatHBarrier +% \end{macrocode} % Locally redefine the end of the environment. % \begin{macrocode} \expandafter\let\csname end#1\endcsname\float@endH % \end{macrocode} % We don't get a |\@currbox| if we don't actually use the float mechanism. % Therefore we fake one using the |\float@box| defined above. +% \changes{v0.1h}{2005/10/25}{Added special settings for H-floats} % \begin{macrocode} \let\@currbox\float@box + \flrow@setlist{{floatH}{#1H}}% % \end{macrocode} % Now we save the current float class name for use in constructing the % |\caption|. The caption box (defined below) is initialized to an empty % box to avoid trouble with floats not having a caption. Then we start the % box that'll hold the float itself. -% |\parindent| is set to zero for compatibility with the standard \texttt{[h]} -% option. +% |\parindent| is set to zero for compatibility with the standard +% \texttt{[h]} option. % % \emph{Floatrow note. % Since \pkg{floatrow} always uses preloaded style % the stuff of flag \cmd{\@flstyle} moved out.} +% \changes{v0.1h}{2005/10/02}{Added setting for \cmd{\linewidth}} % \begin{macrocode} \def\@captype{#1}\setbox\@floatcapt=\vbox{}% \setbox\@currbox\color@vbox\normalcolor - \vbox\bgroup \hsize\columnwidth \@parboxrestore + \vbox\bgroup + \hsize\columnwidth + \linewidth\columnwidth + \@parboxrestore \@floatboxreset \@setnobreak % \end{macrocode} % The final |\ignorespaces| is needed to gobble any spaces or new lines @@ -4093,13 +4342,15 @@ \newcommand\FB@fs@wd{\@tempdima\FBB@wd % \end{macrocode} % The |\flrow@setwd| could define the width for current float. +% \changes{v0.1h}{2005/10/02}{Added setting for \cmd{\linewidth}} % \begin{macrocode} \flrow@setwd\textwidth\@tempdima \adj@dim\@tempdima-\FB@wadj=\@tempdima \settowidth\@tempdimb{{\FBleftmargin}{\FBrightmargin}}% \advance\@tempdima-\@tempdimb \global\FBc@wd\@tempdima\global\FB@wd\@tempdima - \adj@dim\@tempdima-\FBo@wadj={\global\FBo@wd}\hsize\FBo@wd + \adj@dim\@tempdima-\FBo@wadj={\global\FBo@wd}% + \hsize\FBo@wd\linewidth\hsize \FBifcaptop \ifnum\FPOScnt=0\columnwidth\hsize\else\columnwidth\FBc@wd\fi \else @@ -4128,8 +4379,8 @@ \else \global\FBc@wd=\FCwidth % \end{macrocode} -% This flag controls whether to fill rest space of float box with object contents -% when caption width was predefined. +% This flag controls whether to fill rest space of float box with object +% contents when caption width was predefined. % \begin{macrocode} \FC@ifo@fil\advance\@tempdima-\FBc@wd\fi \fi @@ -4139,11 +4390,12 @@ \FC@ifo@fil\else\@tempdima.5\@tempdima % \end{macrocode} % The |\flrow@setwd| could define the width for followed float. +% \changes{v0.1h}{2005/10/02}{Added setting for \cmd{\linewidth}} % \begin{macrocode} \flrow@setwd\FB@wd\@tempdima\fi \adj@dim\@tempdima-\FBo@wadj={\global\FBo@wd}% \FC@ifc@wd\else\global\advance\FBc@wd-\FB@wd\fi - \hsize\FBo@wd\columnwidth\FBc@wd + \hsize\FBo@wd\linewidth\hsize\columnwidth\FBc@wd\linewidth\hsize \FCset@vpos} % \end{macrocode} % \end{macro} @@ -4164,10 +4416,10 @@ % % \begin{em} % \textit{Floatrow note.} -% Macro |\float@makebox| was redefined to fit more float object---caption combinations. -% There was created the |\float@makebox| stuff. -% First goes changed \pkg{float} |\float@makebox| which loads necessary layout macro -% for above/below or beside captions. +% Macro |\float@makebox| was redefined to fit more float object---caption +% combinations. There was created the |\float@makebox| stuff. +% First goes changed \pkg{float} |\float@makebox| which loads necessary +% layout macro for above/below or beside captions. % % The |\float@makebox| stuff includes |\FB@foot| macro % to allow usage of |\floatfoot| (any foot non-caption material) @@ -4179,18 +4431,21 @@ \FBifcapbeside\flrow@FC{#1}\else\flrow@FB{#1}\fi} % \end{macrocode} % The definitions of vertical fine tuning corrections. -% \changes{v0.1d}{2005/02/07}{Added vert skips (\cmd{\FBaskip}, \cmd{\FBbskip}) -% for layout fine tuning} +% \changes{v0.1d}{2005/02/07}{Added vert skips (\cmd{\FBaskip}, +% \cmd{\FBbskip}) for layout fine tuning} % \changes{v0.1d}{2005/02/07}{Added flag for float box layout building} -% \changes{v0.1d}{2005/02/07}{\cmd{\begin@FBBOX}\dots\cmd{\end@FBBOX} moved to \cmd{\flrow@makebox}} +% \changes{v0.1d}{2005/02/07}{\cmd{\begin@FBBOX}\dots\cmd{\end@FBBOX} +% moved to \cmd{\flrow@makebox}} % \begin{macrocode} \newcommand\FBaskip{\z@}\newcommand\FBbskip{\z@} \newif\ifFBbuild\FBbuildtrue % \end{macrocode} % \begin{macro}{\flrow@FB} -% The macro of |\float@makebox| stuff which builds float box with above/below caption. -% \changes{v0.1f}{2005/06/14}{The argument used for defining of dimension---%^^A -% restored for (\pkg{float}) compatibility with \pkg{hyperref} package.} +% The macro of |\float@makebox| stuff which builds float box with +% above/below caption. +% \changes{v0.1f}{2005/06/14}{The argument used for defining of +% dimension---restored for (\pkg{float}) compatibility with +% \pkg{hyperref} package.} % \begin{macrocode} \newcommand\flrow@FB[1]{\vbox{\@tempdima=#1\vskip\FBaskip \@parboxrestore\hbox to\@tempdima{\def\FB@zskip{\vskip\z@}% @@ -4203,8 +4458,9 @@ % % \begin{macro}{\flrow@FC} % Definition of float with beside caption. -% \changes{v0.1f}{2005/06/14}{The argument used for defining of dimension---%^^A -% restored for (\pkg{float}) compatibility with \pkg{hyperref} package.} +% \changes{v0.1f}{2005/06/14}{The argument used for defining of +% dimension---restored for (\pkg{float}) compatibility with +% \pkg{hyperref} package.} % \begin{macrocode} \newcommand\flrow@FC[1]{\vbox{\@tempdima=#1\@parboxrestore \flrow@FClist\vskip\FBaskip @@ -4215,10 +4471,10 @@ % \end{macrocode} % \end{macro} % These macros define box, -% which is changed accordingly for creation of axis at the top, bottom, or center -% of boxes. -% \changes{v0.1d}{2005/02/07}{Added vertical skips (\cmd{\FBaskip}, \cmd{\FBbskip}) -% for layout fine tuning} +% which is changed accordingly for creation of axis at the top, bottom, +% or center of boxes. +% \changes{v0.1d}{2005/02/07}{Added vertical skips (\cmd{\FBaskip}, +% \cmd{\FBbskip}) for layout fine tuning} % \changes{v0.1d}{2005/02/07}{Added flag for float box layout building} % \changes{v0.1d}{2005/02/07}{Settings for beside caption removed % (they were set outside group somewhere above)} @@ -4231,9 +4487,11 @@ % \end{macrocode} % Definitions for fill material for vertical alignment and command with % width settings of boxes. +% \changes{v0.1h}{2005/10/02}{Added setting for \cmd{\linewidth}} % \begin{macrocode} \newcommand\FBafil{\vfill}\newcommand\FBbfil{\vfill} -\newcommand\FBw@box[1]{\hsize#1\columnwidth#1\normalfont\normalcolor} +\newcommand\FBw@box[1]{\hsize#1\columnwidth#1\linewidth#1% + \normalfont\normalcolor} \newcommand\FB@vbox[3]{\ifx#2\relax\vbox\bgroup\else \vbox to#2\bgroup\vsize#2\fi\FBw@box#1#3\vskip\z@\egroup} \newcommand\FB@vtop[3]{\ifx#2\relax\vtop\bgroup\else @@ -4246,8 +4504,10 @@ % (they don't create any left/right fill material). % % First macro builds box with caption above/below. -% \changes{v0.1d}{2005/02/07}{\cmd{\begin@FBBOX}\dots\cmd{\end@FBBOX} moved to \cmd{\flrow@makebox}} -% \changes{v0.1f}{2005/06/14}{New design implementation for \cmd{\captionof}-like stuff?} +% \changes{v0.1d}{2005/02/07}{\cmd{\begin@FBBOX}\dots\cmd{\end@FBBOX} +% moved to \cmd{\flrow@makebox}} +% \changes{v0.1f}{2005/06/14}{New design implementation for +% \cmd{\captionof}-like stuff?} % \begin{macrocode} \newcommand\flrow@FB@{\FB@frame{\begin@FBBOX \adj@dim\FBo@wd+\FBo@wadj=\hsize @@ -4307,8 +4567,9 @@ \fi\@@FBbelow\FB@zskip\end@FBBOX}} % \end{macrocode} % Second internal macro for float row builds float box with beside caption. -% \changes{v0.1e}{2005/03/22}{Sorting \cmd{\floatfacing} command to use separate parameters for -% building of beside caption layout and float environment margins.} +% \changes{v0.1e}{2005/03/22}{Sorting \cmd{\floatfacing} command to use +% separate parameters for building of beside caption layout and float +% environment margins.} % \begin{macrocode} \newcommand\flrow@FC@{\FB@frame{\begin@FBBOX \adj@dim\FBo@wd+\FBo@wadj=\hsize @@ -4319,8 +4580,8 @@ \FCc@box{\FBw@box\FBc@wd\unvbox\@floatcapt\FB@foot}% \floatcapbesidesep\fi % \end{macrocode} -% |\FBf@raise| uses |\raisebox| correction to align top (bottom) of caption text with -% top (bottom) of object frame. +% |\FBf@raise| uses |\raisebox| correction to align top (bottom) of caption +% text with top (bottom) of object frame. % \begin{macrocode} \FBf@raise{\FBo@frame{\FCo@box{\FBw@box\FBc@wd\unvbox\@currbox}}}}% {\FBf@raise{\FBo@frame{\FCo@box{\FBw@box\FBo@wd\unvbox\@currbox}}}% @@ -4341,9 +4602,9 @@ % \end{macro} % % \begin{macro}{\float@end} -% The internal macro |\end@float| appears here under the name of |\float@end|. -% The main thing which is changed is that we call |\float@makebox| to -% reconstruct the float according to the float style. +% The internal macro |\end@float| appears here under the name of +% |\float@end|. The main thing which is changed is that we call +% |\float@makebox| to reconstruct the float according to the float style. % We want to do exactly what the \LaTeX\ kernel does without copying % actual kernel code if we can help it; therefore we finish off the % float using the kernel |\@endfloatbox|, then replace \LaTeX's @@ -4359,7 +4620,7 @@ % This flag stops repeated usage of |\float@makebox| after |\floatbox| % in |\float@end|, |\float@endH| and % |\float@dblend| macros and, if \pkg{rotating} used, -% replaces usage of |\float@makebox| to \LaTeX's standard box |\@currbox| in +% in replaces usage of |\float@makebox| to \LaTeX's standard box |\@currbox| % |\rotfloat@makebox| and |\rotfloat@dblmakebox| commands.} % \changes{v0.1d}{2005/02/07}{Added flag for float box layout building} % \begin{macrocode} @@ -4379,10 +4640,13 @@ % Added flag |\ifFBbuild| for float box layout building. % This flag stops repeated usage of |\float@makebox| after |\floatbox|.} % \changes{v0.1d}{2005/02/07}{Added flag for float box layout building} +% \changes{v0.1h}{2005/10/25}{Added penalties \cmd{\@beginparpenalty} +% and \cmd{\@endparpenalty}} % \begin{macrocode} -\newcommand\float@endH{\@endfloatbox\vskip\intextsep +\newcommand\float@endH{\@endfloatbox\par + \addpenalty\@beginparpenalty\vskip\intextsep \ifFBbuild\setbox\@currbox\float@makebox\columnwidth\fi - \box\@currbox\vskip\intextsep\relax} + \box\@currbox\par\addpenalty\@endparpenalty\vskip\intextsep\relax} % \end{macrocode} % \end{macro} % @@ -4414,9 +4678,10 @@ % \begin{macro}{\caption} % This is the only \LaTeX\ macro that this document style supersedes. % {\em[\dots]} the caption routines from \pkg{float} are used {\em[\dots]}. -% {\em \textit{Floatrow note.} The \pkg{float}'s caption layout stuff replaced by -% \pkg{caption}'s |\captionsetup|. In \pkg{floatrow} package redefined -% |\@makecaption| command (|\caption|'s definition commented).} +% {\em \textit{Floatrow note.} The \pkg{float}'s caption layout stuff +% replaced by \pkg{caption}'s |\captionsetup|. In \pkg{floatrow} +% package redefined |\@makecaption| command (\LaTeX's definition +% of |\caption| commented).} % \changes{v0.1f}{2005/06/14}{The definition of \cmd{\caption} commented.} % \begin{macrocode} %\renewcommand\caption{% @@ -4433,8 +4698,8 @@ % \begin{macro}{\float@caption} % The |\float@caption| macro takes care of entering the caption into % the appropriate listing. It also controls the typesetting of the caption -% itself, although a style-dependent macro |\@fs@capt| is called -% to handle the specifics. {\em \textit{Floatrow note}. The command |\@fs@capt| +% itself, although a style-dependent macro |\@fs@capt| is called to handle +% the specifics. {\em \textit{Floatrow note}. The command |\@fs@capt| % removed---\pkg{floatrow} package uses \pkg{caption} 3.0 possibilities and % its own definitions.} % @@ -4447,13 +4712,13 @@ % floats of this class. Note that |\float@caption| is |\long| % to allow for paragraph breaks in its arguments. % -% {\em \textit{Floatrow note.} The support of optional argument for legend after -% mandatory caption argument didn't declared in user part of documentation. -% Since caption version 3.0 didn't support this feature, it was removed. Use -% |\floatfoot| macro for additional text.} +% {\em \textit{Floatrow note.} The support of optional argument for legend +% after mandatory caption argument didn't declared in user part of +% documentation. Since caption version 3.0 didn't support this feature, +% it was removed. Use |\floatfoot| macro for additional text.} % -% \changes{v0.1f}{2005/06/14}{The definition of \cmd{\float@caption} commented: -% this macro used as safe command for \cmd{\@caption}.} +% \changes{v0.1f}{2005/06/14}{The definition of \cmd{\float@caption} +% commented: this macro used as safe command for \cmd{\@caption}.} % {\em \textit{Floatrow note.} In version 0.1f this definition commented.} % \begin{macrocode} %\long\def\float@caption#1[#2]#3{% @@ -4468,9 +4733,9 @@ % \end{macrocode} % {\em \textit{Floatrow note.} % In next line is added necessary width for caption for fancy float layout. -% The flag |\if@@FS|, which checks whether float style predefined is stored---maybe -% caption appears outside any float environment and |\floatbox| command in this case -% it will use |\hsize| definitions.} +% The flag |\if@@FS|, which checks whether float style predefined is +% stored---maybe caption appears outside any float environment and +% |\floatbox| command in this case it will use |\hsize| definitions.} % \begin{macrocode} % \vbox\bgroup\@parboxrestore\reset@font\if@@FS\hsize\FBc@wd\fi % \normalsize\abovecaptionskip\z@\belowcaptionskip\z@ @@ -4483,7 +4748,8 @@ % appropriate auxiliary file. The file is then restarted. % First of all, we check whether the float style that's supposed to be % listed is actually defined. If not, we output a |\float@error| -% {\em(\textit{Floatrow note.} the |\float@error| changed to |\flrow@error|)}. +% {\em(\textit{Floatrow note.} the |\float@error| changed to +% |\flrow@error|)}. % \begin{macrocode} \newcommand*{\listof}[2]{% \@ifundefined{ext@#1}{\flrow@error{#1}}{% @@ -4540,13 +4806,14 @@ % \end{macrocode} % \end{macro} % -% {\em \textit{Floatrow note.} Here goes \pkg{floatrow} message about finishing of loading of -% \pkg{float} package's corrected code.} +% {\em \textit{Floatrow note.} Here goes \pkg{floatrow} message about +% finishing of loading of \pkg{float} package's corrected code.} % \begin{macrocode} \PackageInfo{floatrow}{Modified float package code loaded} % \end{macrocode} % -% \subsection{Borrowed Code (with original comment) from \pkg{rotfloat} package} +% \subsection{Borrowed Code (with original comment) +% from \pkg{rotfloat} package} % % \begin{macrocode} \IfFileExists{rotating.sty}{\@tempswatrue}{\@tempswafalse} @@ -4559,12 +4826,13 @@ % The main redefinitions for \pkg{rotfloat} (|\flrow@restyle| stuff) purposes % were made above (in \pkg{float} part).\\{}[\dots] % -% Code contents of |\rotfloat@float| and |\rotfloat@dblfloat| moved up inside |\flrow@restyle| macro.} +% Code contents of |\rotfloat@float| and |\rotfloat@dblfloat| moved up +% inside |\flrow@restyle| macro.} % % \begin{macro}{\@float@HH} % We have to extend |\@float@HH|\emph{[\dots]}. -% {\em \textit{Floatrow note}. Since |\rotfloat@endH| was originally defined as -% |\float@endH| in current macro used |\float@endH|} +% {\em \textit{Floatrow note}. Since |\rotfloat@endH| was originally defined +% as |\float@endH| in current macro used |\float@endH|} % \begin{macrocode} \let\rotfloat@HH\@float@HH \def\@float@HH#1{% @@ -4584,10 +4852,10 @@ % % \begin{macro}{\rotfloat@makebox} % \begin{macro}{\rotdblfloat@makebox} -% |\float@makebox| has a parameter here which will be set to |\columnwidth| or -% |\textwidth|. (In the \pkg{float} package $v1.2$ the |\columnwidth| was -% hard wired into |\float@makebox|.) So we have to pass this parameter through -% the original version of |\float@makebox| which we have saved to +% |\float@makebox| has a parameter here which will be set to |\columnwidth| +% or |\textwidth|. (In the \pkg{float} package $v1.2$ the |\columnwidth| was +% hard wired into |\float@makebox|.) So we have to pass this parameter +% through the original version of |\float@makebox| which we have saved to % |\rotfloat@@makebox| within |\rotfloat@float|.) % \begin{macrocode} \newcommand*\rotfloat@makebox[1]{% @@ -4604,8 +4872,9 @@ % \end{macro} % \end{macro} % -% That's all folks\dots {\em \textit{Floatrow note:} of borrowed \pkg{rotfloat} package. -% And here goes message about loading of \pkg{rotfloat} package's code.} +% That's all folks\dots {\em \textit{Floatrow note:} of borrowed +% \pkg{rotfloat} package. And here goes message about loading of +% \pkg{rotfloat} package's code.} % \begin{macrocode} \PackageInfo{floatrow}{Modified rotfloat package code loaded} \fi @@ -4671,9 +4940,9 @@ % \begin{macro}{\mpfootnotemark} % There is the definition of |\footnotemark| which creates the same mark as % |\footnote| inside \texttt{minipage} environment. That could be useful in -% multiple footnote marks in tables. Since the same definition was loaded in -% \pkg{footmisc} v5.3, these macros are defined at the beginning of document -% in the case only if \pkg{footmisc} was not loaded. +% multiple footnote marks in tables. Since the same definition was loaded +% in \pkg{footmisc} v5.3, these macros are defined at the beginning of +% document in the case only if \pkg{footmisc} was not loaded. % \begin{macrocode} \AtBeginDocument{\providecommand\mpfootnotemark{\@ifnextchar[%] \@xmpfootnotemark{\stepcounter\@mpfn @@ -4688,8 +4957,8 @@ % \subsection{Macro for Legends, Explications, etc.} % % \begin{macro}{\floatfoot} -% This command made for the same reasons as \pkg{ccaption}'s |\legend| macro -% and uses its style. It uses |\caption| mechanism. +% This command made for the same reasons as \pkg{ccaption}'s |\legend| +% macro and uses its style. It uses |\caption| mechanism. % \begin{macrocode} \newcommand\floatfoot{\@ifstar {\def\FR@tmp{\@parboxrestore\captionfootfont}\floatfoot@}% @@ -4697,9 +4966,10 @@ \newcommand\floatfoot@[1]{% \global\setbox\flrow@foot\vbox{% % \end{macrocode} -% The |\if@@FS| flag stored for \env{wrap...} enviroments. +% The |\if@@FS| flag stored for \env{wrap...} environments. +% \changes{v0.1h}{2005/10/02}{Added setting for \cmd{\linewidth}} % \begin{macrocode} - \if@@FS\hsize\columnwidth\fi + \if@@FS\hsize\columnwidth\linewidth\columnwidth\fi \@parboxrestore\reset@font\color@begingroup % \end{macrocode} % Apply current float settings. @@ -4730,15 +5000,18 @@ % \begin{description} % \item[\meta{preamble}]there could be\\ % \qquad\cmd{\capbeside} and \cmd{\nocapbeside}, -% or you may try to add any other regular command (e.g. |\captionsetup| or |\thisfloatsetup| stuff); -% \item[\meta{captype}]the |\@captype| of float type this command created for; +% or you may try to add any other regular command (e.g. |\captionsetup| +% or |\thisfloatsetup| stuff); +% \item[\meta{captype}]the |\@captype| of float type this command +% created for; % \item[\meta{width}]the width of object---caption box % (in case of caption above or below object), % or width of object box (if caption stays beside object); % \item[\meta{height}]the height of object---caption box % (in case of caption above or below object), % or height of object box (if caption stays beside object); -% \item[\meta{inner vert pos}]vertical alignment of object if its box larger than contents. +% \item[\meta{inner vert pos}]vertical alignment of object if its box +% larger than contents. % \end{description} % % \subsection{Defining New Float Box Commands} @@ -4746,8 +5019,8 @@ % \begin{macro}{\newfloatcommand} % \begin{macro}{\renewfloatcommand} % The following macros allow to define user commands-abbreviations: -% they have common unchanged preamble and setting for default width of float -% box. Usage:\\[\medskipamount] +% they have common unchanged preamble and setting for default width of +% float box. Usage:\\[\medskipamount] % |\newfloatcommand{|\meta{command}|}{|\meta{captype}|}|^^A % |[|\meta{preamble}|][|\meta{default width}|]|\\[\medskipamount] % where: @@ -4756,9 +5029,9 @@ % \item[\meta{captype}]see section above; % \item[\meta{preamble}]see section above; % \item[\meta{default width}]here you could put |\FBwidth| option: in this -% case the width of object---caption box (in case of caption above or below -% object) or width of object box (if caption stays beside object) will be -% equal to width of object. +% case the width of object---caption box (in case of caption above or +% below object) or width of object box (if caption stays beside object) +% will be equal to width of object. % \end{description} % Examples: % \begin{verse} @@ -4767,7 +5040,8 @@ % \end{verse} % % The definition of command for new float command. -% \changes{v0.1f}{2005/06/14}{Bug fix: corrected \cmd{\@latex@error} command code.} +% \changes{v0.1f}{2005/06/14}{Bug fix: corrected \cmd{\@latex@error} +% command code.} % \begin{macrocode} \newcommand\newfloatcommand[2]{% \@ifundefined{#1}{}% @@ -4842,8 +5116,8 @@ % \begin{macro}{\FBo@max} % \begin{macro}{\FBc@max} % \begin{macro}{\FBf@max} -% These three internal dimensions determine maximum object, caption and foot boxes -% in float row environments for special styles. +% These three internal dimensions determine maximum object, caption and +% foot boxes in float row environments for special styles. % \begin{macrocode} \newlength\FBo@max \newlength\FBc@max @@ -4864,31 +5138,41 @@ \@ifundefined{c@#1}{\@nocounterr{#1}}% {\advance\csname c@#1\endcsname #2\relax}} % \end{macrocode} -% (The command for localization of |\refstepcounter| and |\refsteponlycounter| commented. -% For a while.) +% The command for localization of |\refstepcounter| and +% |\refsteponlycounter|. +% \changes{v0.1h}{2005/10/25}{The \cmd{\FR@loc@refcnt} uncommented.} % \begin{macrocode} -%\newcommand\FR@loc@refcnt[1]{% -% \@ifundefined{c@#1}{\@nocounterr{#1}}% -% {\advance\csname c@#1\endcsname1\relax}} +\newcommand\FR@loc@refcnt[1]{% + \@ifundefined{c@#1}{\@nocounterr{#1}}% + {\advance\csname c@#1\endcsname1\relax}} % \end{macrocode} % Gobbling of caption label and localization of counter change. +% \changes{v0.1h}{2005/10/25}{The \cmd{\refstepcounter} and +% \cmd{\refsteponlycounter} localized (for \cmd{\ContinuedFloat} +% with \pkg{subfig}).} % \begin{macrocode} \newcommand\FR@loc@{\let\label\@gobble -% \let\refstepcounter\FR@loc@refcnt\let\refsteponlycounter\FR@loc@refcnt + \let\refstepcounter\FR@loc@refcnt\let\refsteponlycounter\FR@loc@refcnt % \end{macrocode} -% The |\cl@@ckpt| is macro which ``globalizes'' all counter. It is used by \env{tabularx} -% environment. Here it is emptied during local creation of caption box. -% \changes{v0.1d}{2005/02/07}{Advanced redefinition of global recount (for \env{tabularx} environment)} -% \changes{v0.1f}{2005/06/14}{Added `gobbling' redefinition for \cmd{\sf@updatecaptionlist} -% macro (\pkg{subfig}).} +% The |\cl@@ckpt| is macro which ``globalizes'' all counter. It is used by +% \env{tabularx} environment. Here it is emptied during local creation of +% caption box. +% \changes{v0.1d}{2005/02/07}{Advanced redefinition of global recount +% (for \env{tabularx} environment)} +% \changes{v0.1f}{2005/06/14}{Added `gobbling' redefinition for +% \cmd{\sf@updatecaptionlist} macro (\pkg{subfig}).} % \begin{macrocode} \let\cl@@ckpt\empty\let\addtocounter\FR@loc@addcnt \def\sf@updatecaptionlist##1##2##3##4{}} % \end{macrocode} -% (The macro for temporary redefinition for counting of caption width. Commented.) +% The macro for temporary redefinition for counting of caption width. +% \changes{v0.1h}{2005/10/31}{The \cmd{\caption@lfmt} used instead of +% \cmd{\fnum@}\cmd{\@captype}.} % \begin{macrocode} \def\FBtmp@cap#1[#2]#3{\sbox\@tempboxa - {\caption@@@make{\csname fnum@\@captype \endcsname}{#3}}% +% {\caption@@@make{\csname fnum@\@captype \endcsname}{#3}}% + {\caption@@@make{\caption@lfmt{\@nameuse{\@captype name}}% + {\@nameuse{the\@captype}}}{#3}}% \global\@tempdimb\wd\@tempboxa} % \end{macrocode} % \end{macro} @@ -4905,22 +5189,24 @@ % \end{macrocode} % At first macro defines |\hsize| (which could be used in width definition), % i.e. change it for fit contents in boxes. -% The |\FBget@box| macro uses the |\FBB@wd| command. In the case of |\hsize=0pt| -% the |\FBB@wd| still defined as |\relax|. It will be defined later. -% -% The |\hsize=0pt| can be defined in mandatory argument of \env{wrap...} environment -% in the case of creation space equal to float contents. If |\floatbox| macro -% has not any \oarg{width} argument, the |\hsize| of wrapped figure -% equals to beside text (i.e. current text is `divided' into two columns). -% \changes{v0.1f}{2005/06/14}{Added value for undefined \cmd{\FBB@wd} command. -% (used as flag for wrapped floats.)} +% The |\FBget@box| macro uses the |\FBB@wd| command. In the case of +% |\hsize=0pt| the |\FBB@wd| still defined as |\relax|. It will be +% defined later. +% +% The |\hsize=0pt| can be defined in mandatory argument of \env{wrap...} +% environment in the case of creation space equal to float contents. +% If |\floatbox| macro has not any \oarg{width} argument, the |\hsize| +% of wrapped figure equals to beside text (i.e. current text is `divided' +% into two columns). +% \changes{v0.1f}{2005/06/14}{Added value for undefined \cmd{\FBB@wd} +% command. (used as flag for wrapped floats.)} % \begin{macrocode} \FBiffloatrow\else \ifx\FBB@wd\relax \ifdim\hsize=\z@ % \end{macrocode} -% The |\floatbox| stuff doesn't use special |\caption| definition inside \env{wrap...} -% environment---|\caption| restores its behavior. +% The |\floatbox| stuff doesn't use special |\caption| definition inside +% \env{wrap...} environment---|\caption| restores its behavior. % \begin{macrocode} \@ifundefined{wf@@caption}{}{\let\caption\wf@@caption}% \hsize.5\columnwidth\advance\hsize-.5\columnsep @@ -4953,15 +5239,17 @@ % \changes{v0.1b}{2004/10/22}{Bug fix: \cmd{\FB@wd} changed only % for beside captions.} % |\FB@wd| changed only for beside captions. +% \changes{v0.1h}{2005/10/02}{Added settings for \cmd{\linewidth}} % \begin{macrocode} \FBifcapbeside\hsize\FB@wd\fi + \linewidth\hsize % \end{macrocode} % If there are defined the width and/or height arguments in |\floatbox| % macro (re)counts width of object and caption. % \begin{macrocode} \def\reserved@a{#1}\ifx\reserved@a\empty \else\FBget@@wd{#1}{#3}\fi - \hsize\FBo@wd + \hsize\FBo@wd\linewidth\hsize \FBifcapbeside \FC@ifc@wd\else\advance\FBc@wd-\FB@wd\fi \else @@ -4970,7 +5258,7 @@ % \end{macrocode} % From this point macro counts heights of caption and object if necessary. % \begin{macrocode} - \setbox0\vbox{\FR@loc@\hsize\FBo@wd + \setbox0\vbox{\FR@loc@\hsize\FBo@wd\linewidth\hsize \FBifcaptop \ifnum\FPOScnt=0\columnwidth\hsize\else\columnwidth\FBc@wd\fi \else @@ -5030,18 +5318,20 @@ \FC@ifc@wd % \end{macrocode} % If |\FCwidth| was not defined (|\relax|), macro counts -% natural caption width (in this case |\caption| restores plain \LaTeX's behavior). -% The contents of float hidden in |\box1|. -% \changes{v0.1f}{2005/06/14}{Added temporal redefinition of \cmd{\refstepcounter}.} +% natural caption width (in this case |\caption| restores plain \LaTeX's +% behavior). The contents of float hidden in |\box1|. +% \changes{v0.1f}{2005/06/14}{Added temporal redefinition of +% \cmd{\refstepcounter}.} +% \changes{v0.1h}{2005/10/30}{The \cmd{\refstepcounter} and +% \cmd{\refsteponlycounter} localized (for \cmd{\ContinuedFloat} +% with \pkg{subfig}).} % \begin{macrocode} \ifx\FCwidth\relax \setbox1\vbox{\FR@loc@ - \let\refstepcounter\stepcounter \let\caption\FB@caption \let\@caption\FBtmp@cap #2}% \FBc@wd=\@tempdimb -% \FBc@wd=\wd\@floatcapt \else \FBc@wd=\FCwidth % \end{macrocode} @@ -5058,11 +5348,12 @@ % \begin{macro}{\FBget@@wd} % Counts the width of object if the width optional argument not empty. % -% There is na\u\i{}ve check of existence of |\FBwidth| and/or |\FBheight| commands -% in optional arguments. -% I hope it could work unless you've enlarge the box by more than -% 5 times of original size (in this case the absolute dimensions more preferable). -% \changes{v0.1f}{2005/06/14}{The \texttt{4}\cmd{\textwidth} changed to absolute value.} +% There is na\u\i{}ve check of existence of |\FBwidth| and/or +% |\FBheight| commands in optional arguments. I hope it could work +% unless you are manipulating with metre dimensions or set more than +% |5\FBwidth| (|5\FBheight|) in \meta{width} (\meta{height}) option. +% \changes{v0.1f}{2005/06/14}{The \texttt{4}\cmd{\textwidth} changed +% to absolute value.} % \begin{macrocode} \newcommand\FBget@@wd[2]{\@tempswafalse \begingroup @@ -5099,7 +5390,8 @@ % % \begin{macro}{\FBget@@ht} % Counts the height of object if the height optional argument not empty. -% \changes{v0.1f}{2005/06/14}{The \texttt{4}\cmd{\textheight} changed to absolute value.} +% \changes{v0.1f}{2005/06/14}{The \texttt{4}\cmd{\textheight} changed +% to absolute value.} % \begin{macrocode} \newcommand\FBget@@ht[1]{\@tempswafalse \begingroup @@ -5160,9 +5452,9 @@ % % \begin{macro}{\FB@writeaux} % \begin{macro}{\FB@readaux} -% Excerpt from \LaTeX's |\protected@write|. This command is used for printing -% in \texttt{.aux}-file the necessary settings which will work in next -% \LaTeX{} run. +% Excerpt from \LaTeX's |\protected@write|. This command is used for +% printing in \texttt{.aux}-file the necessary settings which will work +% in next \LaTeX{} run. % \begin{macrocode} \newcommand\FB@writeaux[1]{% \begingroup @@ -5194,8 +5486,8 @@ % \begin{macro}{\FBs@raise} % \begin{macro}{\FBf@raise} % \begin{macro}{\FCset@vpos} -% The |\FC@ifFBOX| flag if true aligns top or bottom -% of object's frame with top or bottom of beside caption if fancy layout used. +% The |\FC@ifFBOX| flag if true aligns top or bottom of object's +% frame with top or bottom of beside caption if fancy layout used. % \begin{macrocode} \let\FC@ifFBOX\iffalse \newcommand\FBs@raise{\raisebox{-\totalheight}} @@ -5203,8 +5495,8 @@ % \end{macrocode} % Setting of vertical position for beside caption and object. % Here is used \LaTeX's |\@parboxto| command, because of here is used -% analogous mechanism of box building as in |\parbox| command and \env{minipage} -% environment. +% analogous mechanism of box building as in |\parbox| command and +% \env{minipage} environment. % \begin{macrocode} \newcommand\FCset@vpos{\@FC@vpos \ifcase\count@ @@ -5265,18 +5557,18 @@ % If object---caption stays alone here go % special style settings for current float type. % Then go the settings for caption layout. -% \changes{v0.1f}{2005/06/14}{Added local redefining of \cmd{\@makecaption} and -% \cmd{\@floatboxreset} (if outside float env).} -% \changes{v0.1f}{2005/06/14}{The \cmd{\flrow@settype} changed to \cmd{\flrow@setlist} -% (loads also caption settings).} +% \changes{v0.1f}{2005/06/14}{Added local redefining of \cmd{\@makecaption} +% and \cmd{\@floatboxreset} (if outside float env).} +% \changes{v0.1f}{2005/06/14}{The \cmd{\flrow@settype} changed to +% \cmd{\flrow@setlist} (loads also caption settings).} % \changes{v0.1f}{2005/06/14}{The \cmd{\capstart} stuff loaded here.} % \begin{macrocode} \if@@FS\else\FR@redefs \flrow@setlist{{\@captype}}\FRifFBOX\@@setframe\fi\@@FStrue \fi % \end{macrocode} -% Then load settings for beside captions, in the case we use this layout---^^A -% the beside caption could use a bit different layout. +% Then load settings for beside captions, in the case we use this +% layout---the beside caption could use a bit different layout. % \begin{macrocode} \FBifcapbeside\flrow@FClist\fi \flrow@settype{tmpset}\global\let\flrow@typ@tmpset\undefined @@ -5289,14 +5581,14 @@ % and object. Before it starts group to localize |\hsize| settings. % \changes{v0.1b}{2004/10/22}{Bug fix: grouping restored\ldots} % \changes{v0.1d}{2005/02/07}{\ldots for all cases.} -% \changes{v0.1e}{2005/03/22}{The \cmd{\begingroup} moved up at the beginning of \cmd{\floatbox} -% macro.} +% \changes{v0.1e}{2005/03/22}{The \cmd{\begingroup} moved up at the +% beginning of \cmd{\floatbox} macro.} % \begin{macrocode} \FBget@box{#1}{#2}{#4#5}% % \end{macrocode} % In this point defined macros for building of beside object---caption box. -% \changes{v0.1f}{2005/06/14}{The \cmd{\capstart} added as a)~\cmd{\FR@floatbox} arg -% (outside float row).} +% \changes{v0.1f}{2005/06/14}{The \cmd{\capstart} added as +% a)~\cmd{\FR@floatbox} argument (outside float row).} % \begin{macrocode} \FBifcapbeside\FCset@vpos\fi \FBiffloatrow\FR@floatbox{\@ifundefined{capstart}{}{\capstart}#4#5}\else @@ -5305,12 +5597,15 @@ % For the case of counting of float width inside \env{wrap...} environment % here defined the |\FBB@wd| macro. % \changes{v0.1d}{2005/02/07}{Added flag for float box layout building} -% \changes{v0.1d}{2005/02/07}{\cmd{\float@makebox} macro changed to its contents} -% \changes{v0.1f}{2005/06/14}{If \cmd{\FBB@wd} still \cmd{\relax}, it defined here.} -% \changes{v0.1f}{2005/06/14}{The \cmd{\capstart} added as b)~\cmd{\FBsetbox@obj} arg -% (in float row).} -% \begin{macrocode} - \adj@dim\FB@wd+\FB@wadj=\hsize +% \changes{v0.1d}{2005/02/07}{\cmd{\float@makebox} macro changed to +% its contents} +% \changes{v0.1f}{2005/06/14}{If \cmd{\FBB@wd} still \cmd{\relax}, +% it defined here.} +% \changes{v0.1f}{2005/06/14}{The \cmd{\capstart} added as +% b)~\cmd{\FBsetbox@obj} argument (in float row).} +% \changes{v0.1h}{2005/10/02}{Added setting for \cmd{\linewidth}} +% \begin{macrocode} + \adj@dim\FB@wd+\FB@wadj=\hsize\linewidth\hsize \ifx\FBB@wd\relax\edef\FBB@wd{\the\hsize}\fi \FBsetbox@obj{\@ifundefined{capstart}{}{\capstart}#4#5}\FBbuildtrue \FBifcapbeside\flrow@FC\FBB@wd\else\flrow@FB\FBB@wd\fi @@ -5344,7 +5639,8 @@ \FBifcapbeside\flrow@FC@\else\flrow@FB@\fi \end@FBBOX % \end{macrocode} -% The each float box in float row reduces special counter \texttt{FRobj} by 1. +% The each float box in float row reduces special counter \texttt{FRobj} +% by 1. % \begin{macrocode} \addtocounter{FRobj}{-1}% \@tempswafalse\FBiffacing\@tempswatrue\fi @@ -5378,8 +5674,8 @@ \fi} % \end{macrocode} % The macro for storing float object in box in the same way as -% in plain environment. There is added code for possible usage of \pkg{color} package -% and color boxes. +% in plain environment. There is added code for possible usage of +% \pkg{color} package and color boxes. % \begin{macrocode} \newcommand\FBsetbox@obj[1]{% \setbox\float@box\color@vbox\normalcolor @@ -5409,8 +5705,8 @@ % \end{macro} % % \begin{macro}{\c@FRobj} -% Counter of objects i a row, which helps to put correct spaces between float boxes -% and also to define the rest width (|\Xhsize|) for boxes. +% Counter of objects i a row, which helps to put correct spaces between +% float boxes and also to define the rest width (|\Xhsize|) for boxes. % \begin{macrocode} \newcounter{FRobj} % \end{macrocode} @@ -5430,8 +5726,8 @@ % \label{floatrow} % Environment for placing beside floats (of one type). % First go counter of floats in row, then the settings for float layout. -% \changes{v0.1d}{2005/02/07}{Added vertical skips (\cmd{\FBaskip}, \cmd{\FBbskip}) -% for layout fine tuning} +% \changes{v0.1d}{2005/02/07}{Added vertical skips (\cmd{\FBaskip}, +% \cmd{\FBbskip}) for layout fine tuning} % \begin{macrocode} \newcommand\floatrow[1][2]{\setcounter{FRobj}{#1}\FB@facing \@tempswafalse\FBiffacing\@tempswatrue\fi @@ -5496,8 +5792,8 @@ \buildFBBOX{\vbox\bgroup}{\vskip\z@\egroup}} % \end{macrocode} % Restoring of plain behavior of boxes in \env{floatrow}. -% \changes{v0.1e}{2005/03/22}{Added \cmd{\PlainFloatBoxes} for restoring plain -% behavior of boxes.} +% \changes{v0.1e}{2005/03/22}{Added \cmd{\PlainFloatBoxes} for restoring +% plain behavior of boxes.} % \begin{macrocode} \newcommand\PlainFloatBoxes{% \gdef\begin@FBBOX{\vbox\bgroup}\gdef\end@FBBOX{\egroup}} @@ -5523,11 +5819,11 @@ % % \subsubsection{Definitions analogous to \pkg{caption}'s ones} % -% The next bundle of definitions follow \pkg{caption} package macros to organize -% analogous mechanism of settings. +% The next bundle of definitions follow \pkg{caption} package macros +% to organize analogous mechanism of settings. % -% \changes{v0.1f}{2005/06/14}{The macro \cmd{\flrow@ifinlist} deleted---it doubles -% \cmd{\caption@ifinlist} work.} +% \changes{v0.1f}{2005/06/14}{The macro \cmd{\flrow@ifinlist} +% deleted---it doubles \cmd{\caption@ifinlist} work.} % % \begin{macro}{\flrow@setbool} % Macro analogous to |\caption@setbool|. @@ -5540,8 +5836,8 @@ % \end{macrocode} % \end{macro} % -% \changes{v0.1f}{2005/06/14}{The macro \cmd{\l@addto@macro} deleted---it repeats -% \pkg{caption} package's definition.} +% \changes{v0.1f}{2005/06/14}{The macro \cmd{\l@addto@macro} +% deleted---it repeats \pkg{caption} package's definition.} % % \subsubsection{Defining Stuff for Float Layout Settings} % @@ -5562,7 +5858,8 @@ % \begin{macro}{\flrow@setup} % \begin{macro}{\flrow@esetup} % \begin{macro}{\flrow@settype} -% Macros analogous to |\caption@setup|, |\caption@esetup| and |\caption@settype|. +% Macros analogous to |\caption@setup|, |\caption@esetup| and +% |\caption@settype|. % \begin{macrocode} \def\flrow@setup{\setkeys{floatrow}} \def\flrow@esetup#1{% @@ -5576,7 +5873,8 @@ % % \begin{macro}{\flrow@setlist} % \begin{macro}{\flrow@FClist} -% This macro declares list of float settings (like \texttt{widefloat}, {rotfloat} etc.) +% This macro declares list of float settings (like \texttt{widefloat}, +% {rotfloat} etc.) % \changes{v0.1f}{2005/06/14}{Added \cmd{\flrow@capsetup} (AS).} % \changes{v0.1f}{2005/06/14}{The \cmd{\caption@setposition} settings % moved here (AS).} @@ -5588,7 +5886,7 @@ \@flrow@setlist} % \end{macrocode} % \changes{v0.1f}{2005/06/14}{The \cmd{\@cap@setlist} redefined (AS).} -% The code of \@cap@setlist|| co-operated with \pkg{caption} package +% The code of |\@cap@setlist| co-operated with \pkg{caption} package % (code suggestions of Axel Sommerfeldt). % \begin{macrocode} \newcommand\@cap@setlist[1]{\caption@settype{#1}% @@ -5604,8 +5902,8 @@ % % \begin{macro}{\@nameundef} % \begin{macro}{\clearfloatsetup} -% \changes{v0.1f}{2005/06/14}{The macro \cmd{\@nameundef} deleted---it repeats -% \pkg{caption} package's definition.} +% \changes{v0.1f}{2005/06/14}{The macro \cmd{\@nameundef} +% deleted---it repeats \pkg{caption} package's definition.} % Removes all settings for chosen type of float. % \begin{macrocode} \newcommand*\clearfloatsetup[1]{\@nameundef{flrow@typ@#1}} @@ -5625,7 +5923,8 @@ % % \begin{macro}{\DeclareFROpt} % The |\DeclareCaptionOption|-analog.\\ -% Since this command has internal usage (before end of package) it has abbreviation-like name. +% Since this command has internal usage (before end of package) it has +% abbreviation-like name. % \begin{macrocode} \newcommand\DeclareFROpt{% \@ifstar{\flrow@declopt\AtEndOfPackage} @@ -5674,9 +5973,10 @@ \caption@settype {#1}}% \flrow@esetup{\csname flrow@sty@#1\endcsname}}} % \end{macrocode} -% Declarations of \pkg{float} package's emulating styles and new \pkg{floatrow} styles. -% \changes{v0.1f}{2005/06/14}{The bottom caption position moved in \cmd{\FBstyle@reset} -% as default.} +% Declarations of \pkg{float} package's emulating styles and new +% \pkg{floatrow} styles. +% \changes{v0.1f}{2005/06/14}{The bottom caption position moved in +% \cmd{\FBstyle@reset} as default.} % \begin{macrocode} \DeclareFloatStyle{plain}{} \DeclareFloatStyle{plaintop}{capposition=top} @@ -5698,15 +5998,16 @@ % \end{macrocode} % \end{macro} % -% The flag, which loads related caption style (if exists), to chosen float style. -% The \pkg{caption} 3.0 package defines only one related caption style to \pkg{float} package's -% style---\texttt{ruled}. +% The flag, which loads related caption style (if exists), to chosen float +% style. The \pkg{caption} 3.0 package defines only one related caption +% style to \pkg{float} package's style---\texttt{ruled}. % \begin{macrocode} \let\FR@ifCST\iftrue % \end{macrocode} % \end{macro} % \begin{macro}{relatedcapstyle=} -% The boolean key which defines, whether to use caption style, related to chosen float style. +% The boolean key which defines, whether to use caption style, related +% to chosen float style. % \begin{macrocode} \DeclareFROpt{relatedcapstyle}[0]{\flrow@setbool{\FR@ifCST}{#1}} % \end{macrocode} @@ -5720,8 +6021,8 @@ % |\floatfoot| use |\captionsetup| mechanism, so its name follows % \pkg{caption} package's rules (|\captionfootfont|). % \changes{v0.1f}{2005/06/14}{Removed \texttt{footfont} key.} -% \changes{v0.1f}{2005/06/14}{Removed \cmd{\AtBeginDocument}'s check---the \cmd{\captionsetup} -% is always known.} +% \changes{v0.1f}{2005/06/14}{Removed \cmd{\AtBeginDocument}'s check---the +% \cmd{\captionsetup} is always known.} % \begin{macrocode} \DeclareFROpt{font}{\flrow@setfont{font}{#1}} \DeclareFROpt{footfont}{\captionsetup[floatfoot]{font={#1}}} @@ -5739,9 +6040,9 @@ % \end{macro} % % \begin{macro}{\captionfootfont} -% Font for |\legend|-like command |\floatfoot|. This font is used inside macro -% which uses \pkg{caption} package mechanism, so the name of this font -% follows rules of font naming in \pkg{caption} package. +% Font for |\legend|-like command |\floatfoot|. This font is used inside +% macro which uses \pkg{caption} package mechanism, so the name of this +% font follows rules of font naming in \pkg{caption} package. % \begin{macrocode} \newcommand*\captionfootfont{\normalfont\footnotesize} % \end{macrocode} @@ -5752,7 +6053,8 @@ % It's usage:\\ % |\DeclareFloatFont{|\meta{name}|}{|\meta{code}|}|. % This macro is allowed only in preamble. -% \changes{v0.1f}{2005/06/14}{The code of \cmd{\DeclareFloatFont} uses caption's key-val settings.} +% \changes{v0.1f}{2005/06/14}{The code of \cmd{\DeclareFloatFont} uses +% caption's key-val settings.} % \begin{macrocode} \let\DeclareFloatFont\DeclareCaptionFont \@onlypreamble\DeclareFloatFont @@ -5763,7 +6065,8 @@ % The |\caption@setfont|-analog.\\ % It's usage:\\ % |\flrow@setfont{|\meta{command}|}{|\meta{keyval-list of names}|}|. -% \changes{v0.1f}{2005/06/14}{The code of \cmd{\flrow@setfont} uses caption's key-val settings.} +% \changes{v0.1f}{2005/06/14}{The code of \cmd{\flrow@setfont} uses +% caption's key-val settings.} % \begin{macrocode} \newcommand*\flrow@setfont[2]{% \let\caption@tempa\@empty @@ -5771,15 +6074,15 @@ \expandafter\let\csname float#1\endcsname\caption@tempa} % \end{macrocode} % \end{macro} -% \changes{v0.1f}{2005/06/14}{\cmd{\DeclareFloatFont} bundle removed---\pkg{floatrow} package -% uses \file{caption3} settings.} +% \changes{v0.1f}{2005/06/14}{\cmd{\DeclareFloatFont} bundle +% removed---\pkg{floatrow} package uses \file{caption3} settings.} % % \subsubsection{Declaring of Caption Position} % % \begin{macro}{capposition=} % Keys for defining caption position in float box. -% \changes{v0.1f}{2005/06/14}{Added \texttt{position=} key as analog name to -% the same key in \cmd{\captionsetup} stuff.} +% \changes{v0.1f}{2005/06/14}{Added \texttt{position=} key as analog name +% to the same key in \cmd{\captionsetup} stuff.} % \begin{macrocode} \DeclareFROpt{capposition}{\flrow@cappos{#1}} \DeclareFROpt{position}{\flrow@cappos{#1}} @@ -5787,8 +6090,9 @@ % \end{macro} % % \begin{macro}{\flrow@cappos} -% Macro analogous to |\caption@setposition|. Instead of |auto| here is used -% |beside| set. Here are also settings for key |position=| from |\captionsetup|. +% Macro analogous to |\caption@setposition|. Instead of |auto| here is +% used |beside| set. Here are also settings for key |position=| from +% |\captionsetup|. % \begin{macrocode} \newcommand*\flrow@cappos[1]{% \caption@ifinlist{#1}{t,top,above}{\captop\nocapbeside @@ -5803,8 +6107,8 @@ % \begin{macro}{\FBifcaptop} % \begin{macro}{\captop} % \begin{macro}{\capbot} -% The positions for captions in float box. -% There are defined traditional place of captions at the bottom of +% The positions for captions in float box. There are defined +% traditional place of captions at the bottom of % object---caption box. % \changes{v0.1f}{2005/06/14}{\cmd{\caption@position} deleted.} % \begin{macrocode} @@ -5827,8 +6131,8 @@ \let\FBifCAPTOP\iffalse \newcommand\CAPTOP{\captop\let\FBifCAPTOP\iftrue\CADJtrue} % \end{macrocode} -% In this case if you change contents of caption which could enlarge or -% reduce the number of lines, you ought to run \LaTeX{} twice. +% In this case if you change contents of caption which could enlarge +% or reduce the number of lines, you ought to run \LaTeX{} twice. % \end{macro} % \end{macro} % @@ -5848,7 +6152,8 @@ % \subsubsection{Defining for Beside Captions} % % \begin{macro}{capbesideframe=} -% This boolean key declares whether near beside caption stays framed object. +% This boolean key declares whether near beside caption stays framed +% object. % \changes{v0.1f}{2005/06/14}{Removed \texttt{besidecapframe} key.} % \begin{macrocode} \DeclareFROpt{capbesideframe}[0]{\flrow@setbool{\FC@ifFBOX}{#1}} @@ -5858,7 +6163,8 @@ % \begin{macro}{capbesidewidth=} % This key defines width of beside caption. % \changes{v0.1f}{2005/06/14}{Removed \texttt{besidecapwidth} key.} -% \changes{v0.1f}{2005/06/14}{Bug fix: the \cmd{\FCwidth} command defined here as \cmd{\relax}.} +% \changes{v0.1f}{2005/06/14}{Bug fix: the \cmd{\FCwidth} command defined +% here as \cmd{\relax}.} % \begin{macrocode} \DeclareFROpt{capbesidewidth}[1]{\flrow@FCc@wd{#1}} \let\FC@ifc@wd\iffalse @@ -5880,9 +6186,9 @@ % % \begin{macro}{\DeclareSCPos} % \begin{macro}{\flrow@scpos} -% The key which defines position of beside captions: vertical and horizontal. -% This macro is allowed only in preamble. This key is internal (usage till end of package) -% so it has abbreviation-like name. +% The key which defines position of beside captions: vertical and +% horizontal. This macro is allowed only in preamble. This key is +% internal (usage till end of package) so it has abbreviation-like name. % \begin{macrocode} \newcommand\DeclareSCPos[2]{% \define@key{flrow@scpos}{#1}[]{\g@addto@macro\FR@tmp{#2}}} @@ -5986,7 +6292,8 @@ % % \begin{macro}{\ifCADJ} % \begin{macro}{\ifOADJ} -% These flags define whether common height is used of captions or/and objects in float row. +% These flags define whether common height is used of captions +% or/and objects in float row. % \begin{macrocode} \newif\ifCADJ \newif\ifOADJ @@ -6003,12 +6310,13 @@ % % \begin{macro}{\@FB@vpos} % The vertical alignment of float objects in float row. +% \changes{v0.1h}{2006/06/16}{Changed \cmd{\vfill} to \cmd{\vss}-like code for vertical alignments} % \begin{macrocode} \newcommand\@FB@vpos[1]{% - \if#1t\def\FBafil{}\def\FBbfil{\vfill}\else - \if#1b\def\FBafil{\vfill}\def\FBbfil{}\else - \if#1c\def\FBafil{\vfill}\def\FBbfil{\vfill}\else - \if#1s\def\FBafil{}\def\FBbfil{}% + \if#1t\def\FBafil{}\def\FBbfil{\vss}\else + \if#1b\def\FBafil{\vss}\def\FBbfil{}\else + \if#1c\def\FBafil{\vskip0ptplus1fillminus1000pt}\def\FBbfil{\vskip0ptplus1fillminus1000pt}\else + \if#1s\def\FBafil{\vskip0ptminus1000pt}\def\FBbfil{\vskip0ptminus1000pt}% \fi\fi\fi\fi} % \end{macrocode} % \end{macro} @@ -6062,8 +6370,8 @@ % \end{macro} % % Declaring of float box alignment. -% \changes{v0.1g}{2005/07/15}{Added settings for \cmd{\LTleft} and \cmd{\LTright} commands -% from \pkg{longtable} package.} +% \changes{v0.1g}{2005/07/15}{Added settings for \cmd{\LTleft} and +% \cmd{\LTright} commands from \pkg{longtable} package.} % \begin{macrocode} \newskip\LTleft\newskip\LTright \DeclareMarginSet{centering}{\setfloatmargins{\hfill}{\hfill}% @@ -6077,8 +6385,9 @@ % % \begin{macro}{\floatfacing} % Defines settings accordingly to left (even) or right (odd) pages. -% \changes{v0.1f}{2005/06/14}{Creation starred form for \cmd{\floatfacing} to use separate settings for -% building of beside caption layout and float environment margins.} +% \changes{v0.1f}{2005/06/14}{Creation starred form for \cmd{\floatfacing} +% to use separate settings for building of beside caption layout and +% float environment margins.} % \begin{macrocode} \newcommand\floatfacing{\@ifstar {\@FC@hpos\floatfacing@}{\FB@facing\floatfacing@}} @@ -6104,9 +6413,10 @@ \newcommand\floatrowmargins{\def\FR@tmp{FR}\FB@mset} \newcommand\floatcapbesidemargins{\def\FR@tmp{FC}\FB@mset} % \end{macrocode} -% To create facing and non-facing layout in macros |\FB@mset@| and |\FB@@mset| loaded -% definition of |\FB@facing| command. The temporary |\count@| get value of |\c@FBcnt|, -% which is usually equals to number of page where float appears. +% To create facing and non-facing layout in macros |\FB@mset@| and +% |\FB@@mset| loaded definition of |\FB@facing| command. The temporary +% |\count@| get value of |\c@FBcnt|, +% which is usually equals to number of page where float appears. % \changes{v0.1f}{2005/06/14}{Removed \cmd{\FBiffacing} flag from % \cmd{\FB@@mset} macro.} % \begin{macrocode} @@ -6144,8 +6454,8 @@ % \begin{macro}{objectset=} % \begin{macro}{justification=} % Declaring of option for float object contents' alignment. -% \changes{v0.1f}{2005/06/14}{Added key \texttt{justification} as analog to -% \cmd{\captionsetup} stuff.} +% \changes{v0.1f}{2005/06/14}{Added key \texttt{justification} +% as analog to \cmd{\captionsetup} stuff.} % \begin{macrocode} \DeclareFROpt{objectset}{\flrow@FBoAlign{#1}} \DeclareFROpt{justification}{\flrow@FBoAlign{#1}} @@ -6155,21 +6465,24 @@ % % \begin{macro}{\DeclareObjectSet} % The |\DeclareCaptionJustification|-twin.\\ -% Macros for float object's contents justification and |\floatbox| alignment. -% This macro is allowed only in preamble. -% \changes{v0.1f}{2005/06/14}{The code of \cmd{\DeclareObjectSet} uses caption's key-val settings.} +% Macros for float object's contents justification and |\floatbox| +% alignment. This macro is allowed only in preamble. +% \changes{v0.1f}{2005/06/14}{The code of \cmd{\DeclareObjectSet} +% uses caption's key-val settings.} % \begin{macrocode} \let\DeclareObjectSet\DeclareCaptionJustification \@onlypreamble\DeclareObjectSet % \end{macrocode} % \end{macro} -% \changes{v0.1f}{2005/06/14}{\cmd{\DeclareObjectSet} bundle removed---\pkg{floatrow} package -% uses \file{caption} settings.} +% \changes{v0.1f}{2005/06/14}{\cmd{\DeclareObjectSet} bundle +% removed---\pkg{floatrow} +% package uses \file{caption} settings.} % % \begin{macro}{\flrow@FBoAlign} % |\caption@setjustification|-analog.\\ % Command for \texttt{objectset=} -% \changes{v0.1f}{2005/06/14}{The code of \cmd{\flrow@FBoAlign} uses caption's key-val settings.} +% \changes{v0.1f}{2005/06/14}{The code of \cmd{\flrow@FBoAlign} +% uses caption's key-val settings.} % \begin{macrocode} \newcommand*\flrow@FBoAlign[1]{% \@ifundefined{caption@hj@#1}% @@ -6185,8 +6498,8 @@ \newcommand*\floatobjectset{\centering} % \end{macrocode} % \end{macro} -% \changes{v0.1f}{2005/06/14}{The \cmd{\centerlast} \cmd{\rightlast} commands -% deleted.} +% \changes{v0.1f}{2005/06/14}{The \cmd{\centerlast} \cmd{\rightlast} +% commands deleted.} % % \subsubsection{Defining Float Width} % @@ -6221,7 +6534,8 @@ % % \begin{macro}{floatrowsep=} % \begin{macro}{capbesidesep=} -% Option |floatrowsep| sets separations for beside float boxes in float row. +% Option |floatrowsep| sets separations for beside float boxes +% in float row. % \changes{v0.1f}{2005/06/14}{Removed \texttt{besidecapsep} key.} % \begin{macrocode} \DeclareFROpt{floatrowsep}{\flrow@setFRsep\floatrowsep{#1}} @@ -6236,19 +6550,22 @@ % \begin{macro}{\DeclareFloatSeparators} % \begin{macro}{\flrow@setFRsep} % \begin{macro}{\flrow@setFCsep} -% Next macros declare material, defined for usage as separator of both float boxes -% in \env{floatrow} environment and for beside object and caption. +% Next macros declare material, defined for usage as separator of +% both float boxes in \env{floatrow} environment and for beside +% object and caption. % % The |\DeclareCaptionLabelSeparator|-twin.\\ % This macro is allowed only in preamble. -% \changes{v0.1f}{2005/06/14}{Macro is \cmd{\let} to \cmd{\DeclareCaptionLabelSeparator}.} +% \changes{v0.1f}{2005/06/14}{Macro is \cmd{\let} to +% \cmd{\DeclareCaptionLabelSeparator}.} % \begin{macrocode} \let\DeclareFloatSeparators\DeclareCaptionLabelSeparator \@onlypreamble\DeclareFloatSeparators % \end{macrocode} % % The |\caption@setlabelseparator|-analog.\\ -% Command which defines settings for separators in float row, and between beside caption and float object. +% Command which defines settings for separators in float row, and +% between beside caption and float object. % \changes{v0.1f}{2005/06/14}{Macro uses \pkg{caption} macros.} % \begin{macrocode} \newcommand*\flrow@setFRsep[2]{% @@ -6257,7 +6574,8 @@ {\expandafter\let\expandafter#1\csname caption@lsep@#2\endcsname}} % \end{macrocode} % A few options define possible separators. -% \changes{v0.1f}{2005/06/14}{The \texttt{quad} and \texttt{none} deleted (repeated from \pkg{caption}).} +% \changes{v0.1f}{2005/06/14}{The \texttt{quad} and \texttt{none} +% deleted (repeated from \pkg{caption}).} % \begin{macrocode} \DeclareFloatSeparators{columnsep}{\hskip\columnsep} %\DeclareFloatSeparators{quad}{\quad} @@ -6289,7 +6607,8 @@ % \begin{macro}{postcode=} % \begin{macro}{rowpostcode=} % Keys for building of float style (rules). -% \changes{v0.1f}{2005/06/14}{Removed \texttt{Precode} and \texttt{Postcode} keys.} +% \changes{v0.1f}{2005/06/14}{Removed \texttt{Precode} and +% \texttt{Postcode} keys.} % \begin{macrocode} \DeclareFROpt{precode}{\flrow@FBrule\@@FRabove\@@FBabove{#1}} \DeclareFROpt{rowprecode}{\flrow@FRrule\@@FRabove\@@FBabove{#1}} @@ -6304,10 +6623,10 @@ % \end{macro} % % \begin{macro}{\DeclareFloatVCode} -% Declaring options for keys of vertical material for building of float style. -% They could be used above and below of floatbox, and between object and caption in -% the case when caption above/below object. -% This macro is allowed only in preamble. +% Declaring options for keys of vertical material for building of +% float style. They could be used above and below of float box, +% and between object and caption in the case when caption +% above/below object. This macro is allowed only in preamble. % \begin{macrocode} \newcommand\DeclareFloatVCode[2]{\@namedef{flrow@FBr@#1}{#2}} \@onlypreamble\DeclareFloatVCode @@ -6401,7 +6720,8 @@ % % \begin{macro}{\flrow@fr@round} % Command for \texttt{framearound=}. -% \changes{v0.1f}{2005/06/14}{Macro uses \pkg{caption} macro \cmd{\caption@ifinlist}.} +% \changes{v0.1f}{2005/06/14}{Macro uses \pkg{caption} macro +% \cmd{\caption@ifinlist}.} % \begin{macrocode} \newcommand*\flrow@fr@round[1]{% \caption@ifinlist{#1}{object,contents}{\let\FRifFBOX\iftrue @@ -6451,8 +6771,8 @@ % \begin{macro}{\FB@fbox@adj} % \begin{macro}{\FB@fbox@reset} % First macro is the definition of frame style (here is |\fbox|); -% second defines compensating material to get frame fitted to current |\hsize|; -% third defines default values of compensating material. +% second defines compensating material to get frame fitted to current +% |\hsize|; third defines default values of compensating material. % \begin{macrocode} \newcommand\FB@fbox@frame[1]{\hbox{% \FRifFIT\else\kern-\fboxrule\kern-\fboxsep\fi @@ -6476,6 +6796,7 @@ % font=default,footfont=default, % }} % \end{macrocode} +% \end{macro} % % \subsubsection{Defining Float Skips} % @@ -6484,8 +6805,8 @@ % The following options define skips: first---between float object and % caption (if it used in float style); second---before foot material % (footnote or other foot text). -% \changes{v0.1f}{2005/06/14}{Defining also standard \cmd{\abovecaptionskip} for -% compatibility with \pkg{caption}'s \cmd{\captionof}.} +% \changes{v0.1f}{2005/06/14}{Defining also standard \cmd{\abovecaptionskip} +% for compatibility with \pkg{caption}'s \cmd{\captionof}.} % \begin{macrocode} \DeclareFROpt{captionskip}{\def\captionskip{#1}% \setlength\abovecaptionskip{#1}} @@ -6533,7 +6854,8 @@ \@tempdima.4\columnwidth \hrule\@width\@tempdima\kern2.6\p@} % \end{macrocode} -% Here goes standard \LaTeX{} definition used in minipages with limited maximal width. +% Here goes standard \LaTeX{} definition used in minipages with +% limited maximal width. % \begin{macrocode} \DeclareFloatFootnoterule{limited}{\kern-3\p@ \@tempdima.4\columnwidth @@ -6587,9 +6909,9 @@ \newcommand\flnew@setdefault{\setkeys{newfloat} {placement=tbp,fileext=lox}} % \end{macrocode} -% The |\newtoks| for defining of float environments (using |\flrow@restyle| command) -% at the end of preamble. -% (Took a leaf with settings for lists of floats from \pkg{float} package's book.) +% The |\newtoks| for defining of float environments (using +% |\flrow@restyle| command) at the end of preamble. (Took a leaf with +% settings for lists of floats from \pkg{float} package's book.) % \begin{macrocode} \@ifdefinable\flrow@types{\newtoks\flrow@types} \newcommand\DeclareNewFloatType[2]{\def\FB@captype{#1}% @@ -6656,9 +6978,10 @@ % \begin{macrocode} %<*frforsubfig> % \end{macrocode} -% \changes{v0.1f}{2005/06/14}{The subfloatrow support became a part of a \pkg{floatrow} package.} -% At first defined dimension for maximal height of subcaption. Then macro for -% defining height of subcaption box. +% \changes{v0.1f}{2005/06/14}{The subfloatrow support became a part of a +% \pkg{floatrow} package.} +% At first defined dimension for maximal height of subcaption. Then macro +% for defining height of subcaption box. % \begin{macrocode} \newlength\FBsc@max \newlength\FBso@max @@ -6668,10 +6991,11 @@ % % \begin{macro}{\adjustsubfloats} % The user command which loaded at the end of row of subcaptions. -% \changes{v0.1f}{2005/06/14}{Removed \cmd{\FB@subfloat} and \cmd{\FB@subcaption} -% definitions: the code for \env{subfloatrow} support placed in \pkg{subfig}'s -% definitions.} -% \changes{v0.1f}{2005/06/14}{The \cmd{\xdef} changed to local \cmd{\edef}.} +% \changes{v0.1f}{2005/06/14}{Removed \cmd{\FB@subfloat} and +% \cmd{\FB@subcaption} definitions: the code for \env{subfloatrow} +% support placed in \pkg{subfig}'s definitions.} +% \changes{v0.1f}{2005/06/14}{The \cmd{\xdef} changed to local +% \cmd{\edef}.} % \begin{macrocode} \newcommand\adjustsubfloats{\@tempswafalse \ifCADJ\@tempswatrue\fi\ifOADJ\@tempswatrue\fi @@ -6686,8 +7010,9 @@ % \end{macro} % % \begin{environment}{subfloatrow}\label{subfloatrow} -% Environment for placing beside subfloats. It is simpler than \env{floatrow}. -% First go counter of floats (here it is local) in row, then the settings for float layout. +% Environment for placing beside subfloats. It is simpler than +% \env{floatrow}. First go counter of floats (here it is local) +% in row, then the settings for float layout. % \begin{macrocode} \newcommand\subfloatrow[1][2]{\c@FRobj=#1%local \ifdim\parindent<\z@\leavevmode\else\noindent\fi\hbox\bgroup @@ -6720,11 +7045,12 @@ % % \subsection{Support for \pkg{longtable} Package} % -% \changes{v0.1g}{2005/07/15}{The \pkg{longtable} support moved inside \pkg{floatrow} package.} -% To follow layout for tables which need size of caption equal to width of -% table, here added a code which catches width of table from \file{aux}-file -% and sets to |\LTcapwidth| parameter (great thanks A. Sommerfeldt for -% compact code created as patch of |\LT@array| command). +% \changes{v0.1g}{2005/07/15}{The \pkg{longtable} support moved inside +% \pkg{floatrow} package.} +% To follow layout for tables which need size of caption equal to width +% of table, here added a code which catches width of table from +% \file{aux}-file and sets to |\LTcapwidth| parameter (great thanks +% A. Sommerfeldt for compact code created as patch of |\LT@array| command). % % At first we save macro |\LT@array| under name |\flrow@LT@array|. % Then start redefinition. @@ -6733,9 +7059,13 @@ \let\LT@array\flrow@LT@array}} \newcommand\flrow@LT@array{% % \end{macrocode} -% Here are added settings for table font (similar to other table environments). +% Here are added settings for table font (similar to other table +% environments). +% \changes{v0.1j}{2006/07/24}{The \cmd{\belowcaptionskip} is set +% equal to \cmd{\captionskip}.} % \begin{macrocode} \flrow@setlist{{table}{longtable}}\normalfont\floatfont + \belowcaptionskip\captionskip % \end{macrocode} % Here goes safe and redefinition of |\LT@make@row| macro in the way % of managing of counting of table width. @@ -6775,7 +7105,10 @@ % % \subsubsection{Processing of floatsetup options} % -% As in caption style options are processed with usage of the \pkg{keyval} package. +% \begin{macro}{\ProcessOptionsWithKV} +% As in caption style options are processed with usage of the +% \pkg{keyval} package. +% \changes{v0.1j}{2006/02/24}{Edited by suggestions of A.Sommerfeldt} % \begin{macrocode} \def\ProcessOptionsWithKV#1{% \let\@tempc\relax @@ -6784,9 +7117,36 @@ \@ifundefined{KV@#1@\CurrentOption}% {}% {% +% \end{macrocode} +% In the case of co-named global option, appeared in +% |\documentclass| line. +% ^^A added line (|\@ifundefined| stuff) +% ^^A first part of command +% \begin{macrocode} + \@ifundefined{KV@#1@\CurrentOption @default}{% + \PackageInfo{#1}{Global option `\CurrentOption' ignored}% +% \end{macrocode} +% ^^A doubling of first line from second part of |\@ifundefined| +% ^^A but first line edited (moved |\CurrentOption,|) +% ^^A \begin{macrocode} +% ^^A \edef\FR@tmp{\FR@tmp,}% +% ^^A \end{macrocode} +% ^^A end doubling +% ^^A added line +% \begin{macrocode} + }{% +% \end{macrocode} +% ^^A second part of |\@ifundefined| +% \begin{macrocode} + \PackageInfo{#1}{Global option `\CurrentOption' processed}% \edef\FR@tmp{\FR@tmp,\CurrentOption,}% \@expandtwoargs\@removeelement\CurrentOption \@unusedoptionlist\@unusedoptionlist +% \end{macrocode} +% ^^A end of doubled code +% ^^A added line +% \begin{macrocode} + }% }% }% \edef\FR@tmp{% @@ -6801,9 +7161,9 @@ \FR@iffancy\RequirePackage{fr-fancy}\fi \let\ProcessOptionsWithKV\undefined % \end{macrocode} -% At beginning of document there are loaded macros |\flrow@restyle| for table -% and figure floats. (Any new float type gets this command when |\newfloat| -% macro of |\DeclareNewFloatType| are used.) +% At beginning of document there are loaded macros |\flrow@restyle| +% for table and figure floats. (Any new float type gets this command +% when |\newfloat| macro of |\DeclareNewFloatType| are used.) % \begin{macrocode} \AtBeginDocument{\flrow@restyle{table}\flrow@restyle{figure}% \let\FR@tmp\flrow@restyle \the\flrow@types @@ -6832,8 +7192,8 @@ % \begin{macro}{\FB@colorbox@reset} % \begin{macro}{\setcolorframe} % First macro is the definition of frame style (here is |\colorbox|); -% second defines compensating material to get frame fitted to current |\hsize|; -% third defines default values of compensating material. +% second defines compensating material to get frame fitted to current +% |\hsize|; third defines default values of compensating material. % \begin{macrocode} \newcommand\FB@colorbox@frame[1]{\hbox{% \FRifFIT\else\kern-\fboxrule\kern-\fboxsep\fi @@ -6890,8 +7250,8 @@ % \begin{macro}{\FB@shadowbox@adj} % \begin{macro}{\FB@shadowbox@reset} % First macro is the definition of frame style (here is |\shadowbox|); -% second defines compensating material to get frame fitted to current |\hsize|; -% third defines default values of compensating material. +% second defines compensating material to get frame fitted to current +% |\hsize|; third defines default values of compensating material. % \begin{macrocode} \newcommand\FB@shadowbox@frame[1]{\hbox{% \FRifFIT\else\hskip-\fboxrule\hskip-\fboxsep\fi @@ -6908,11 +7268,11 @@ % \begin{macro}{\FB@wshadowbox@frame} % \begin{macro}{\FB@wshadowbox@adj} % \begin{macro}{\FB@wshadowbox@reset} -% The definition for frame \texttt{wshadowbox}---similar to \texttt{shadowbox} -% from \pkg{fancybox}. +% The definition for frame \texttt{wshadowbox}---similar to +% \texttt{shadowbox} from \pkg{fancybox}. % First macro is the definition of frame style (here is |\wshadowbox|); -% second defines compensating material to get frame fitted to current |\hsize|; -% third defines default values of compensating material. +% second defines compensating material to get frame fitted to current +% |\hsize|; third defines default values of compensating material. % \begin{macrocode} \newcommand\FB@wshadowbox@frame[1]{\hbox{% \FRifFIT\else\hskip-\fboxrule\hskip-\fboxsep\fi @@ -6929,8 +7289,8 @@ % \begin{macro}{\FB@doublebox@adj} % \begin{macro}{\FB@doublebox@reset} % First macro is the definition of frame style (here is |\doublerbox|); -% second defines compensating material to get frame fitted to current |\hsize|; -% third defines default values of compensating material. +% second defines compensating material to get frame fitted to current +% |\hsize|; third defines default values of compensating material. % \begin{macrocode} \newcommand\FB@doublebox@frame[1]{\hbox{% \FRifFIT\else\kern-4.75\fboxrule\kern-.5pt\kern-\fboxsep\fi @@ -6989,11 +7349,12 @@ % % \subsection{Empty Floating page} % -% At last goes small sneaky-tricky style to put desired page style for one -% floating page. +% Here goes small sneaky-tricky style to put desired page style +% for one floating page. % % \begin{macro}{\floatpagestyle} -% First goes macro which defines desired page style for page with current float. +% First goes macro which defines desired page style for page with +% current float. % \begin{macrocode} %<*floatpagestyle> \newcommand\floatpagestyle[1]{\@ifundefined{ps@#1}\undefinedpagestyle @@ -7022,8 +7383,8 @@ % \end{macro} % % \begin{macro}{\@chkfloatpage} -% The macro which checks whether exists necessary code for changing of current -% float page style. +% The macro which checks whether exists necessary code for changing +% of current float page style. % \begin{macrocode} \newcommand\@chkfloatpage{% \edef\reserved@a{floatpage@\romannumeral\the\c@page}% @@ -7034,65 +7395,13 @@ % % \begin{macro}{\@outputpage} % Edited \LaTeX{} core macro (release 2001/06/01) +% \changes{v0.1h}{2005/10/02}{Optimization: the patch instead of +% redefinition of \cmd{\@outputpage} command} % \begin{macrocode} -\def\@outputpage{% -\begingroup % the \endgroup is put in by \aftergroup - \let \protect \noexpand - \@resetactivechars - \global\let\@@if@newlist\if@newlist - \global\@newlistfalse - \@parboxrestore - \shipout \vbox{% - \set@typeset@protect - \aftergroup \endgroup - \aftergroup \set@typeset@protect -% \end{macrocode} -% Here added checking of floating page style. -% \begin{macrocode} - \@chkfloatpage %check float - \if@specialpage - \global\@specialpagefalse\@nameuse{ps@\@specialstyle}% - \fi - \if@twoside - \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot - \let\@themargin\oddsidemargin - \else \let\@thehead\@evenhead - \let\@thefoot\@evenfoot \let\@themargin\evensidemargin - \fi - \fi - \reset@font - \normalsize - \normalsfcodes - \let\label\@gobble - \let\index\@gobble - \let\glossary\@gobble - \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@ - \@begindvi - \vskip \topmargin - \moveright\@themargin \vbox {% - \setbox\@tempboxa \vbox to\headheight{% - \vfil - \color@hbox - \normalcolor - \hb@xt@\textwidth{\@thehead}% - \color@endbox - }% - \dp\@tempboxa \z@ - \box\@tempboxa - \vskip \headsep - \box\@outputbox - \baselineskip \footskip - \color@hbox - \normalcolor - \hb@xt@\textwidth{\@thefoot}% - \color@endbox - }% - }% - \global\let\if@newlist\@@if@newlist - \global \@colht \textheight - \stepcounter{page}% - \let\firstmark\botmark -} +\AtBeginDocument + {\@ifdefinable\FBori@outputpage{\let\FBori@outputpage\@outputpage} + \let\@outputpage\FB@outputpage} +\newcommand\FB@outputpage{\@chkfloatpage\FBori@outputpage} % \end{macrocode} % \end{macro} % @@ -7100,5 +7409,84 @@ %</floatpagestyle> % \end{macrocode} % +% \begin{macrocode} +%<*listpen> +% \end{macrocode} +% +% \subsection{List Penalties Managing} +% +% The package \pkg{listpen} is a beta-temp package, which +% offers commands |\allowprelistbreaks|, +% |\allowpostlistbreaks| and |\allowitembreaks| which help +% to manage page breaking at the beginning and the end of +% lists, and between list items consequently. +% +% This package follows idea of |\allowdisplaybreaks| +% (\textsf{amsmath} package) and |\pagebreak|/|\nopagebreak| stuff. +% +% \DescribeMacro{\allowprelistbreaks} +% \DescribeMacro{\allowpostlistbreaks} +% \DescribeMacro{\allowitembreaks} +% These commands set penalties before lists, after lists and between items. +% They set globally or inside group or (also list!) +% environment\footnote{Look also at \cmd{\allowdisplaybreaks} +% macro from \pkg{amsmath} package.} penalties accordingly to digits +% from |[-4]| (never break) to |[4]| (always break). The values of optional +% argument in these commands analogous to values of optional arguments +% in, e.g., |\pagebreak| command. The default value of all three commands +% is |[-1]| which equal to \cls{book.cls} etc. class settings (which equal to +% |-\@lowpenalty| value). +% +% \begin{macro}{\allowprelistbreaks} +% Sets penalty before lists. +% \begin{macrocode} +\newcommand\allowprelistbreaks{\let\LP@penalty\@beginparpenalty + \@testopt{\LP@setlistbreaks}{-1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\allowpostlistbreaks} +% Sets penalty after lists. +% \begin{macrocode} +\newcommand\allowpostlistbreaks{\let\LP@penalty\@endparpenalty + \@testopt{\LP@setlistbreaks}{-1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\allowitembreaks} +% Sets penalty between items. +% \begin{macrocode} +\newcommand\allowitembreaks{\let\LP@penalty\@itempenalty + \@testopt{\LP@setlistbreaks}{-1}} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\LP@setlistbreaks} +% This macro reverses the $+/-$ signs before digits. +% \begin{macrocode} +\@ifdefinable\LP@setlistbreaks{} +\def\LP@setlistbreaks[#1#2]{\def\tempa{-}\def\tempb{#1}\ifx\tempa\tempb + \LP@nolbk[#2]\else\LP@nolbk-[#1]\fi} +% \end{macrocode} +% \end{macro} +% +% \begin{macro}{\LP@nolbk} +% Macro for setting necessary penalties. +% \begin{macrocode} +\@ifdefinable\LP@nolbk{}\@ifdefinable\LP@penalty{} +\def\LP@nolbk#1[#2]{% + \ifcase#2\LP@penalty\z@ + \or\LP@penalty#1\@lowpenalty + \or\LP@penalty#1\@medpenalty + \or\LP@penalty#1\@highpenalty + \or\LP@penalty#1\@M + \fi} +% \end{macrocode} +% \end{macro} +% +% \begin{macrocode} +%</listpen> +% \end{macrocode} +% % \Finale -%\endinput +\endinput diff --git a/Master/texmf-dist/source/latex/floatrow/floatrow.ins b/Master/texmf-dist/source/latex/floatrow/floatrow.ins index 7fcf8cad658..532f02946dc 100644 --- a/Master/texmf-dist/source/latex/floatrow/floatrow.ins +++ b/Master/texmf-dist/source/latex/floatrow/floatrow.ins @@ -28,6 +28,7 @@ You are NOT ALLOWED to change this file. \endpreamble +\askonceonly \keepsilent %%%\askforoverwritefalse %%%\nopreamble @@ -35,5 +36,6 @@ You are NOT ALLOWED to change this file. \file{floatrow.sty}{\from{floatrow.dtx}{floatrow,frforsubfig,frforlongtbl,floatsetup}} \file{fr-fancy.sty}{\from{floatrow.dtx}{frfancy}} \file{floatpagestyle.sty}{\from{floatrow.dtx}{floatpagestyle}} + \file{listpen.sty}{\from{floatrow.dtx}{listpen}} } \endbatchfile |