From 6770f17a2f7fa550295689a526e402c30e1eec23 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 11 May 2020 20:42:09 +0000 Subject: draftwatermark (11may20) git-svn-id: svn://tug.org/texlive/trunk@55096 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/draftwatermark/draftwatermark.sty | 33 +++++++++++----------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'Master/texmf-dist/tex/latex/draftwatermark') 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 %% -%% --------------------------------------------- +%% ------------------------------------------------ %% 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 {% -- cgit v1.2.3