summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/everypage/everypage.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/everypage/everypage.sty')
-rw-r--r--Master/texmf-dist/tex/latex/everypage/everypage.sty10
1 files changed, 6 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/everypage/everypage.sty b/Master/texmf-dist/tex/latex/everypage/everypage.sty
index da2bdf5e849..0a8802bf695 100644
--- a/Master/texmf-dist/tex/latex/everypage/everypage.sty
+++ b/Master/texmf-dist/tex/latex/everypage/everypage.sty
@@ -38,7 +38,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{everypage}%
- [2006/06/30 1.0 Hooks to run on every page]
+ [2007/06/20 1.1 Hooks to run on every page]
\newcommand{\sc@everypage@hook}{}
\newcommand{\sc@thispage@hook}{}
\newcommand*{\AddEverypageHook}[1]{%
@@ -49,15 +49,17 @@
\let\sc@op@saved\@outputpage
\def\@outputpage{%
\sc@op@preamble
- \sc@op@saved}}
+ \sc@op@saved
+ \sc@op@postamble}}
\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}}
+ \sc@begindvi}}
+\newcommand*{\sc@op@postamble}{%
+ \let\@begindvi\sc@begindvi}
\AtBeginDocument{\sc@ep@init}
\endinput
%%