summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/gridpapers/gridpapers.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/gridpapers/gridpapers.sty')
-rw-r--r--Master/texmf-dist/tex/latex/gridpapers/gridpapers.sty7
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/gridpapers/gridpapers.sty b/Master/texmf-dist/tex/latex/gridpapers/gridpapers.sty
index 3a4a75f77ed..e5225a96c2c 100644
--- a/Master/texmf-dist/tex/latex/gridpapers/gridpapers.sty
+++ b/Master/texmf-dist/tex/latex/gridpapers/gridpapers.sty
@@ -21,7 +21,7 @@
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{gridpapers}
- [2021/03/14 v1.0.0 Graph paper backgrounds]
+ [2021/03/19 v1.0.1 Graph paper backgrounds]
\RequirePackage{xkeyval}
\RequirePackage{kvoptions}
@@ -33,7 +33,10 @@
%% approach, but fall back to everypage-1x if needed
%% This code is roughly taken from the new everypage code
\@ifundefined{AddToHook}{%
- \RequirePackage{everypage-1x}
+ \IfFileExists{everypage-1x.sty}{%
+ %% If everypage is new enough to complain, avoid the complaints
+ \RequirePackage{everypage-1x}
+ }{\RequirePackage{everypage}}
}{%
\newcommand*{\AddEverypageHook}[1]{%
\AddToHook{shipout/background}{\put(1in,-1in){#1}}}