summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/everypage
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/everypage')
-rw-r--r--Master/texmf-dist/tex/latex/everypage/everypage-1x.sty59
-rw-r--r--Master/texmf-dist/tex/latex/everypage/everypage.sty72
2 files changed, 93 insertions, 38 deletions
diff --git a/Master/texmf-dist/tex/latex/everypage/everypage-1x.sty b/Master/texmf-dist/tex/latex/everypage/everypage-1x.sty
new file mode 100644
index 00000000000..1dda85023ab
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/everypage/everypage-1x.sty
@@ -0,0 +1,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'.
diff --git a/Master/texmf-dist/tex/latex/everypage/everypage.sty b/Master/texmf-dist/tex/latex/everypage/everypage.sty
index 0a8802bf695..bf28effce1e 100644
--- a/Master/texmf-dist/tex/latex/everypage/everypage.sty
+++ b/Master/texmf-dist/tex/latex/everypage/everypage.sty
@@ -4,17 +4,11 @@
%%
%% The original source files were:
%%
-%% everypage.dtx
-%% This is file `everypage.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% everypage.dtx
+%% everypage.dtx (with options: `everypage')
%%
-%% IMPORTANT NOTICE:
+%% IMPORTANT NOTICE:
%%
-%% Copyright 2006
+%% Copyright 2006-2007, 2020
%% Sergio Callegari <sergio.callegari@gmail.com>
%%
%% ---------------------------------------------
@@ -22,45 +16,47 @@
%% a contribution to the LaTeX2e system.
%% ---------------------------------------------
%%
-%% This program consists of the files listed in the README file included
-%% in the package.
+%% 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.sty.
%%
-%% For distribution of the original source see the terms
-%% for copying and modification in the file everypage.dtx.
+%% 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.)
+%% 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}%
- [2007/06/20 1.1 Hooks to run on every page]
-\newcommand{\sc@everypage@hook}{}
-\newcommand{\sc@thispage@hook}{}
+ [2020/10/11 R2.0 Hooks to run on every page]
+\PackageWarningNoLine{everypage}{%
+ Functionality similar to this package has recently\MessageBreak
+ been implemented in LaTeX. This package is now in\MessageBreak
+ legacy status.\MessageBreak
+ Please, don't use it in new documents and packages}
+\@ifundefined{AddToHook}{%
+ \PackageWarningNoLine{everypage}{%
+ You appear to be running a version of LaTeX\MessageBreak
+ too old to provide the new functionality.\MessageBreak
+ Forcing fallback to `everypage-1x` that\MessageBreak
+ uses an older code base}
+ \RequirePackage{everypage-1x}
+ \endinput}{%
+ \PackageWarningNoLine{everypage}{%
+ You appear to be running a version of LaTeX\MessageBreak
+ providing the new functionality.\MessageBreak
+ Doing the best to deliver the original `everypage`\MessageBreak
+ interface on top of it. Strict equivalence is\MessageBreak
+ not possible, breakage may occur.\MessageBreak
+ If truly needed, Use `everypage-1x` to force the\MessageBreak
+ loading of an older code base}}
\newcommand*{\AddEverypageHook}[1]{%
- \g@addto@macro\sc@everypage@hook{#1}}
+ \AddToHook{shipout/background}{\put(1in,-1in){#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@everypage@hook
- \sc@thispage@hook
- \gdef\sc@thispage@hook{}
- \sc@begindvi}}
-\newcommand*{\sc@op@postamble}{%
- \let\@begindvi\sc@begindvi}
-\AtBeginDocument{\sc@ep@init}
+ \AddToHookNext{shipout/background}{\put(1in,-1in){#1}}}
\endinput
%%
%% End of file `everypage.sty'.