summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/draftwatermark
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-05-11 20:42:09 +0000
committerKarl Berry <karl@freefriends.org>2020-05-11 20:42:09 +0000
commit6770f17a2f7fa550295689a526e402c30e1eec23 (patch)
tree7d40e3d73db84a354b54111cb1950c372d96013b /Master/texmf-dist/tex/latex/draftwatermark
parent84f8b847502b28b3479b816502152a0a627c87ed (diff)
draftwatermark (11may20)
git-svn-id: svn://tug.org/texlive/trunk@55096 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/draftwatermark')
-rw-r--r--Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty33
1 files changed, 16 insertions, 17 deletions
diff --git a/Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty b/Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty
index 35e165f0af5..3829e8251a7 100644
--- a/Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty
+++ b/Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty
@@ -11,28 +11,27 @@
%% Copyright 2006, 2020
%% Sergio Callegari <sergio.callegari@gmail.com>
%%
-%% ---------------------------------------------
+%% ------------------------------------------------
%% This file is part of the draftwatermark package,
%% a contribution to the LaTeX2e system.
-%% ---------------------------------------------
+%% ------------------------------------------------
%%
-%% This program consists of the files listed in the README file included
+%% 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 draftwatermark.sty.
+%% Any modified versions of this file must be renamed with new filenames distinct
+%% from draftwatermark.sty.
%%
-%% For distribution of the original source see the terms
-%% for copying and modification in the file draftwatermark.dtx.
+%% For distribution of the original source see the terms for copying and
+%% modification in the file draftwatermark.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{draftwatermark}%
- [2020/03/14 2.0 Put a gray textual watermark on document pages]
+ [2020/05/11 2.1 Put a gray textual watermark on document pages]
\RequirePackage{kvoptions}
\RequirePackage{everypage}[2007/06/20]
@@ -142,10 +141,10 @@
\sbox\@tempboxa{#1}%
\setlength{\@tempdima}{\draftwatermark@hpos}%
\setlength{\@tempdimb}{\draftwatermark@vpos}%
- \let \draftwatermark@tempa \draftwatermark@hanchor
+ \edef \draftwatermark@tempa{\draftwatermark@hanchor}%
\@onelevel@sanitize \draftwatermark@tempa
\expandafter\def\expandafter\draftwatermark@tempb
- \expandafter{\expandafter\@car \draftwatermark@tempa\@nil}
+ \expandafter{\expandafter\@car \draftwatermark@tempa\@nil}%
\if \draftwatermark@tempb r%
\addtolength\@tempdima{-\wd\@tempboxa}%
\else\if \draftwatermark@tempb c%
@@ -157,10 +156,10 @@
Illegal anchor directive `\draftwatermark@tempb'}%
{Anchoring to left side.}%
\fi\fi\fi
- \let \draftwatermark@tempa \draftwatermark@vanchor
+ \edef \draftwatermark@tempa{\draftwatermark@vanchor}%
\@onelevel@sanitize \draftwatermark@tempa
\expandafter\def\expandafter\draftwatermark@tempb
- \expandafter{\expandafter\@car \draftwatermark@tempa\@nil}
+ \expandafter{\expandafter\@car \draftwatermark@tempa\@nil}%
\if \draftwatermark@tempb b%
\addtolength\@tempdimb{-\ht\@tempboxa}%
\addtolength\@tempdimb{-\dp\@tempboxa}%
@@ -174,7 +173,7 @@
Illegal anchor directive `\draftwatermark@tempb'}%
{Anchoring to top side.}%
\fi\fi\fi
- \vbox to 0pt {
+ \vbox to 0pt {%
\vspace*{-1in}%
\vspace*{\@tempdimb}%
\hbox to 0pt {%