The Floatpag Package: Vytas Statulevi Cius and Sigitas Tolu Sis Vytas@vtex - LT, Sigitas@vtex - LT v1.1 From 2012/05/29
The Floatpag Package: Vytas Statulevi Cius and Sigitas Tolu Sis Vytas@vtex - LT, Sigitas@vtex - LT v1.1 From 2012/05/29
1 Introduction
Provides commands to apply different pagestyles to the full page floats.
2 Usage
\floatpagestyle {hfooi} will apply pagestyle hfooi to all pages occupied by full page floats.
\rotfloatpagestyle {hfooi} will apply pagestyle hfooi to all pages occupied by sideways figures and
tables produced with the help of rotating package (Sebastian Rahtz and Leonor
Barroca).
\thisfloatpagestyle {hfooi} will apply pagestyle hfooi to a page where this command was used
inside figure or table environment.
Default: \floatpagestyle{headings} and \rotfloatpagestyle{plain}.
The following commands from the LaTeX2e kernel were redefined: \@xfloat,
\@vtryfc.
The following command from the rotating.sty was redefined: \@xrotfloat.
3 Implementation
1 \NeedsTeXFormat{LaTeX2e}
2 \ProvidesPackage{floatpag}
3 [1999/04/29
4 FLOAT PAGESTYLE]
\floatpagestyle
5 \def\floatpagestyle#1{\gdef\at@float@page{\thispagestyle{#1}}}
\rotfloatpagestyle
6 \def\rotfloatpagestyle#1{%
7 \gdef\@r@f@pagestyle{#1}%
8 \gdef\at@rotfloat@page{\thispagestyle{#1}}%
9 }
1
10 \floatpagestyle{headings}
11 \rotfloatpagestyle{plain}
\thisfloatpagestyle
12 \def\thisfloatpagestyle#1{%
13 \expandafter\expandafter\expandafter\gdef\expandafter
14 \csname\number\@currbox @float\endcsname{\thispagestyle{#1}}\relax
15 }
2
55 \@setfpsbit 4%
56 \fi
57 \if \reserved@a p%
58 \@setfpsbit 8%
59 \fi
60 \if \reserved@a !%
61 \ifnum \@tempcnta>15
62 \advance\@tempcnta -\sixt@@n\relax
63 \fi
64 \fi
65 }%
66 \@tempcntb \csname ftype@\@captype \endcsname
67 \multiply \@tempcntb \@xxxii
68 \advance \@tempcnta \@tempcntb
69 \global \count\@currbox \@tempcnta
70 \expandafter\expandafter\expandafter\gdef\expandafter
71 \csname\number\@currbox @float\endcsname{\at@float@page}\relax
72 }%
73 \@fltovf
74 \fi
75 \global \setbox\@currbox
76 \color@vbox
77 \normalcolor
78 \vbox \bgroup
79 \hsize\columnwidth
80 \@parboxrestore
81 \@floatboxreset
82 }
3
101 \multiply\@tempcnta\@xxxii\advance\@tempcnta\sixt@@n
102 \@tfor \@tempa :=#2\do{%
103 \if\@tempa h\advance\@tempcnta \@ne\fi
104 \if\@tempa t\advance\@tempcnta \tw@\fi
105 \if\@tempa b\advance\@tempcnta 4\relax\fi
106 \if\@tempa p\advance\@tempcnta 8\relax\fi
107 }%
108 \global\count\@currbox\@tempcnta
109 }%
110 \@fltovf
111 \fi
112 \expandafter\expandafter\expandafter\gdef\expandafter
113 \csname\number\@currbox @float\endcsname{\at@rotfloat@page}\relax
114 \global\setbox\@currbox\vbox\bgroup
115 \hsize\textheight
116 \@parboxrestore
117 }
Check for rotating version: 2e ar 209: 1999.02.08 To be sure check at begin
document.
118 \AtBeginDocument{%
119 \@ifpackageloaded{rotating}%
120 {\let\@xrotfloat\e@xrotfloat\let\n@xrotfloat\relax}%
121 {\let\@xrotfloat\n@xrotfloat\let\e@xrotfloat\relax}}%
\@vtryfc
125 \def\@vtryfc#1{%
126 \global\setbox\@outputbox\vbox{}%
127 \let\@elt\@wtryfc
128 \@flsucceed
129 \let\@elt\spec@float
130 \@flsucceed
131 \global\setbox\@outputbox \vbox to\@colht{%
132 \vskip \@fptop
133 \vskip -\@fpsep
134 \unvbox \@outputbox
135 \vskip \@fpbot
136 }%
137 \let\@elt\relax
138 \xdef#1{\@failedlist\@flfail}%
139 \xdef\@freelist{\@freelist\@flsucceed}%
140 }
141 %\endinput