diff options
author | Karl Berry <karl@freefriends.org> | 2006-07-04 12:52:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-07-04 12:52:40 +0000 |
commit | b5eab1ad673b04bb039f30f083202b98c19844fa (patch) | |
tree | 74343df63300ead91a04fe6afd87b6eb18a761b6 /Master/texmf-dist/tex/latex/everypage | |
parent | c0e3aff05a6b70934b9c94b6230d1a519bf6e1ab (diff) |
new package everypage
git-svn-id: svn://tug.org/texlive/trunk@1766 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/everypage')
-rw-r--r-- | Master/texmf-dist/tex/latex/everypage/everypage.sty | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/everypage/everypage.sty b/Master/texmf-dist/tex/latex/everypage/everypage.sty new file mode 100644 index 00000000000..da2bdf5e849 --- /dev/null +++ b/Master/texmf-dist/tex/latex/everypage/everypage.sty @@ -0,0 +1,64 @@ +%% +%% This is file `everypage.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% everypage.dtx +%% This is file `everypage.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% everypage.dtx +%% +%% IMPORTANT NOTICE: +%% +%% Copyright 2006 +%% Sergio Callegari <sergio.callegari@gmail.com> +%% +%% --------------------------------------------- +%% This file is part of the everypage package, +%% a contribution to the LaTeX2e system. +%% --------------------------------------------- +%% +%% This program consists of the files listed in the README file included +%% in the package. +%% +%% Any modified versions of this file must be renamed with new filenames +%% distinct from everypage.sty. +%% +%% For distribution of the original source see the terms +%% for copying and modification in the file everypage.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} +\ProvidesPackage{everypage}% + [2006/06/30 1.0 Hooks to run on every page] +\newcommand{\sc@everypage@hook}{} +\newcommand{\sc@thispage@hook}{} +\newcommand*{\AddEverypageHook}[1]{% + \g@addto@macro\sc@everypage@hook{#1}} +\newcommand*{\AddThispageHook}[1]{% + \g@addto@macro\sc@thispage@hook{#1}} +\newcommand*{\sc@ep@init}{% + \let\sc@op@saved\@outputpage + \def\@outputpage{% + \sc@op@preamble + \sc@op@saved}} +\newcommand*{\sc@op@preamble}{% + \let\sc@begindvi\@begindvi + \def\@begindvi{% + \sc@everypage@hook + \sc@thispage@hook + \gdef\sc@thispage@hook{} + \let\@begindvi\sc@begindvi + \@begindvi}} +\AtBeginDocument{\sc@ep@init} +\endinput +%% +%% End of file `everypage.sty'. |