summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/magicwatermark
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-08-16 21:31:59 +0000
committerKarl Berry <karl@freefriends.org>2024-08-16 21:31:59 +0000
commitfec596b36355b27230716b1a4d9ee677e1a38dc7 (patch)
tree098943a44c4724fc5bf8db27211ef57ca3b518d8 /Master/texmf-dist/tex/latex/magicwatermark
parente6b93db4b48b4e67a160408147caf8981ff89914 (diff)
magicwatermark (16aug24)
git-svn-id: svn://tug.org/texlive/trunk@72044 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/magicwatermark')
-rw-r--r--Master/texmf-dist/tex/latex/magicwatermark/magicwatermark.sty13
1 files changed, 7 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/magicwatermark/magicwatermark.sty b/Master/texmf-dist/tex/latex/magicwatermark/magicwatermark.sty
index d7b86472526..e40af7ea0b0 100644
--- a/Master/texmf-dist/tex/latex/magicwatermark/magicwatermark.sty
+++ b/Master/texmf-dist/tex/latex/magicwatermark/magicwatermark.sty
@@ -1,6 +1,5 @@
-\ProvidesExplPackage{magicwatermark}{2024/06/11}{1.2A}{magic watermark, author}
+\ProvidesExplPackage{magicwatermark}{2024/06/11}{1.2B}{magic watermark, author}
-\RequirePackage{everypage-1x}
\msg_new:nnn {magicwatermark}{ Unable to parse }
{
@@ -439,10 +438,12 @@
\group_begin:
\AtBeginDocument{
\keys_set:nn { mw } { #1 }
- \AddEverypageHook{
- \tl_if_exist:cT { g__mw_content_ \int_to_roman:n { \value{page} }_tl }
- {
- \tl_use:c { g__mw_content_ \int_to_roman:n { \value{page} } _tl }
+ \AddToHook{shipout/background}{
+ \put(.5\paperwidth,-.5\paperheight){
+ \tl_if_exist:cT { g__mw_content_ \int_to_roman:n { \value{page} }_tl }
+ {
+ \tl_use:c { g__mw_content_ \int_to_roman:n { \value{page} } _tl }
+ }
}
}
}