summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/floatrow/floatpagestyle.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/floatrow/floatpagestyle.sty')
-rw-r--r--Master/texmf-dist/tex/latex/floatrow/floatpagestyle.sty97
1 files changed, 97 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/floatrow/floatpagestyle.sty b/Master/texmf-dist/tex/latex/floatrow/floatpagestyle.sty
new file mode 100644
index 00000000000..59c5b73dad9
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/floatrow/floatpagestyle.sty
@@ -0,0 +1,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'.