blob: 59c5b73dad99a3d87a37e45b3453a5b1a3e09fae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
%%
%% This is file `floatpagestyle.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% floatrow.dtx (with options: `floatpagestyle')
%%
%% IMPORTANT NOTICE:
%%
%% For the copyright see the source file.
%%
%% Any modified versions of this file must be renamed
%% with new filenames distinct from floatpagestyle.sty.
%%
%% For distribution of the original source see the terms
%% for copying and modification in the file floatrow.dtx.
%%
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
\ProvidesPackage{floatpagestyle}
[2005/07/15 v0.1g floating page style]
\newcommand\floatpagestyle[1]{\@ifundefined{ps@#1}\undefinedpagestyle
{\begingroup
\let\thepage\relax\let\protect\@unexpandable@protect
\edef\reserved@a{\write\@auxout{\expandafter\string
\csname @setfloatpage\endcsname{\thepage}{#1}}}\reserved@a
\endgroup}}
\newcommand\emptyfloatpage{\floatpagestyle{empty}}
\newcommand\@setfloatpage[2]{%
\edef\reserved@a{floatpage@\romannumeral#1}%
\global\expandafter\def\csname\reserved@a\endcsname{#2}}
\newcommand\@chkfloatpage{%
\edef\reserved@a{floatpage@\romannumeral\the\c@page}%
\@ifundefined{\reserved@a}{\relax}{\global\@specialpagetrue
\gdef\@specialstyle{\csname\reserved@a\endcsname}}}
\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
\@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
}
\endinput
%%
%% End of file `floatpagestyle.sty'.
|