summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/floatrow/floatpagestyle.sty
blob: dca9cd27cf58e2279b2e3d0c87ca22cb27962f47 (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
%%
%% 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/10/02 v0.1h 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}}}
\AtBeginDocument
  {\@ifdefinable\FBori@outputpage{\let\FBori@outputpage\@outputpage}
  \let\@outputpage\FB@outputpage}
\newcommand\FB@outputpage{\@chkfloatpage\FBori@outputpage}
\endinput
%%
%% End of file `floatpagestyle.sty'.