summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/everypage/everypage-1x.sty
blob: 1dda85023ab147c8630e3fa9a44c770914445610 (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
%%
%% This is file `everypage-1x.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% everypage.dtx  (with options: `everypage-1x')
%% 
%% IMPORTANT NOTICE:
%% 
%% Copyright 2006-2007, 2020
%% 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.md file included in
%% the package.
%% 
%% Any modified versions of this file must be renamed with new filenames
%% distinct from everypage-1x.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-1x}%
  [2020/10/10 1.2 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
    \sc@op@postamble}}
\newcommand*{\sc@op@preamble}{%
  \let\sc@begindvi\@begindvi
  \def\@begindvi{%
    \sc@begindvi
    \sc@everypage@hook
    \sc@thispage@hook
    \gdef\sc@thispage@hook{}}}
\newcommand*{\sc@op@postamble}{%
  \let\@begindvi\sc@begindvi}
\AtBeginDocument{\sc@ep@init}
\endinput
%%
%% End of file `everypage-1x.sty'.