diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/sttools/stfloats.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/sttools/stfloats.sty | 141 |
1 files changed, 42 insertions, 99 deletions
diff --git a/Master/texmf-dist/tex/latex/sttools/stfloats.sty b/Master/texmf-dist/tex/latex/sttools/stfloats.sty index e13649e473d..d45913665ad 100644 --- a/Master/texmf-dist/tex/latex/sttools/stfloats.sty +++ b/Master/texmf-dist/tex/latex/sttools/stfloats.sty @@ -1,64 +1,33 @@ -%% stfloats.sty -%% Copyright 1997, 1999 Sigitas Tolu\v sis +%% +%% This is file `stfloats.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% stfloats.dtx (with options: `package') +%% +%% Copyright (C) 1997-2012 by Sigitas Tolu\v{s}is <sigitas@vtex.lt> %% VTeX Ltd., Akademijos 4, Vilnius, Lithuania -%% e-mail sigitas@vtex.lt %% http://www.vtex.lt/tex/download/macros/ +%% -------------------------------------------------------------------------- +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% The latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of LaTeX +%% version 2005/12/01 or later. %% -% This program can redistributed and/or modified under the terms -% of the LaTeX Project Public License Distributed from CTAN -% archives in directory macros/latex/base/lppl.txt; either -% version 1 of the License, or (at your option) any later version. -% -% PURPOSE: Improve float mechanism and baselineskip settings -% -% SHORT DESCRIPTION: -% -% (It is rewritten version of stkernel package) -% -% Provides new commands: -% -% \dblfloatsatbottom, \dblfloatsattop (removed!) -% ----------------------------------- -% Use instead optional parameters [b] and [t] -% for dblfloat environments (default = [tbp]). -% -% \fnbelowfloat -% ------------- -% Puts footnotes below the bottom floats -% -% \fnunderfloat (default and standard) -% ------------- -% Puts footnotes under the bottom floats -% -% \setbaselinefloat -% ----------------- -% Allows baselineskip to stretch and shrink if \baselineskip -% is set with command \@setfontsize. -% Example: \@setfontsize\normalsize\@xpt{12pt plus .1pt minus .1pt}% -% -% \setbaselinefixed (default and standard) -% Disables baselineskip to stretch and shrink even if \baselineskip -% is set with command \@setfontsize. -% Example: \@setfontsize\normalsize\@xpt{12pt plus .1pt minus .1pt}% -% -% Allows to use optional parameters [t] or [b] for dblfloats. -% -% \changes{1997/08/25}{first version} -% \changes{1997/09/10}{standard LaTeX2e macros are used for dblfloats at top} -% \changes{1997/10/01}{new commands: \fnbelowfloat and \fnunderfloat} -% \changes{1998/09/21}{new commands: \setbaselinefloat and \setbaselinefixed} -% \changes{1999/10/04}{changed dblfloat's output} -% \changes{1999/10/22}{changed \output for older LaTeX distributions} -% -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{stfloats}[1999/10/22] - +%% PURPOSE: Improve float mechanism and baselineskip settings +%% +\NeedsTeXFormat{LaTeX2e}[1999/12/01] +\ProvidesPackage{stfloats} + [2012/05/29 v1.1 Improve float mechanism and baselineskip settings] \gdef\@dblbotlist{} \newcount\@dblbotnum \newcount\c@dblbotnumber \setcounter{dblbotnumber}{2} \def\@dbflt#1{\@ifnextchar[{\@xdblfloat{#1}}{\@xdblfloat{#1}[tbp]}} - \def \@dblfloatplacement {% \global \@dbltopnum \c@dbltopnumber \global \@dblbotnum \c@dblbotnumber @@ -69,9 +38,7 @@ \@fptop \@dblfptop \@fpsep \@dblfpsep \@fpbot \@dblfpbot -} - - + } \def\@addtodblcol{% \begingroup \@insertfalse @@ -154,13 +121,11 @@ \fi \fi \endgroup -} - + } \def\@combinedblfloats{% - \ifx \@dbltoplist\@empty \else \@cdblflt \fi - \ifx \@dblbotlist\@empty \else \@cdblflb \fi -} - + \ifx \@dbltoplist\@empty \else \@cdblflt \fi + \ifx \@dblbotlist\@empty \else \@cdblflb \fi + } \def\@cdblflt{% \setbox\@tempboxa \vbox{}% \let \@elt \@comdblflelt @@ -178,7 +143,6 @@ \unvbox \@outputbox }% } - \def\@cdblflb{% \setbox\@tempboxa \vbox{}% \let \@elt \@comdblflelt @@ -197,9 +161,11 @@ \vskip -\dblfloatsep }% } - \def \@doclearpage {% \ifvoid\footins + \ifvbox\@kludgeins + {\setbox \@tempboxa \box \@kludgeins}% + \fi \setbox\@tempboxa\vsplit\@cclv to\z@ \unvbox\@tempboxa \setbox\@tempboxa\box\@cclv \xdef\@deferlist{\@toplist\@botlist\@deferlist}% @@ -234,10 +200,11 @@ \@makecol\@opcol \clearpage \fi -} + } \global\let\org@makecol\@makecol \gdef \fn@makecol {% - \setbox\@outputbox \box\@cclv + \setbox\@outputbox \box\@cclv + \let\@elt\relax \xdef\@freelist{\@freelist\@midlist}% \global \let \@midlist \@empty \@combinefloats @@ -266,10 +233,9 @@ }% \fi \global \maxdepth \@maxdepth -} + } \def\fnbelowfloat{\global\let\@makecol\fn@makecol} \def\fnunderfloat{\global\let\@makecol\org@makecol} - \def\set@floatfontsize#1#2#3{% \@defaultunits\@tempdimb#2pt\relax\@nnil \edef\f@size{\strip@pt\@tempdimb}% @@ -277,7 +243,7 @@ \edef\f@baselineskip{\the\@tempskipa}% \edef\f@linespread{#1}% \let\baselinestretch\f@linespread - \def\size@update{% + \def\size@update{% \baselineskip\f@baselineskip \@tempskipa\baselineskip\relax\baselineskip=1\baselineskip \advance\@tempskipa by-\baselineskip\baselineskip\f@baselineskip @@ -293,34 +259,11 @@ } \let\set@@@fontsize\set@fontsize \def\setbaselinefloat{\let\set@fontsize\set@floatfontsize} -\def\setbaselinefixed{\@tempdima=\baselinestretch\p@ - \edef\baselinestretch{\strip@pt\@tempdima}\let\set@fontsize\set@@@fontsize} -\output {% - \let \par \@@par - \ifnum \outputpenalty<-\@M - \@specialoutput - \else - \@makecol - \@opcol - \@startcolumn - \@whilesw \if@fcolmade \fi - {% - \@opcol\@startcolumn}% - \fi - \ifnum \outputpenalty>-\@Miv - \ifdim \@colroom<1.5\baselineskip - \ifdim \@colroom<\textheight - \@latex@warning@no@line {Text page \thepage\space - contains only floats}% - \@emptycol - \else - \global \vsize \@colroom - \fi - \else - \global \vsize \@colroom - \fi - \else - \global \vsize \maxdimen - \fi -} +\def\setbaselinefixed{% + \@tempdima=\baselinestretch\p@ + \edef\baselinestretch{\strip@pt\@tempdima}% + \let\set@fontsize\set@@@fontsize + } \endinput +%% +%% End of file `stfloats.sty'. |