diff options
author | Karl Berry <karl@freefriends.org> | 2015-06-11 23:05:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-06-11 23:05:22 +0000 |
commit | da916eb2142d56cefca86f6ec0acbaf45be5c046 (patch) | |
tree | b7addd21151dabc00dd5e059bb4dc4f806200d22 /Master/texmf-dist/tex/latex/draftwatermark | |
parent | de63571e6991218d72bd5608e29987f9bc9fec17 (diff) |
draftwatermark (10jun15)
git-svn-id: svn://tug.org/texlive/trunk@37498 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/draftwatermark')
-rw-r--r-- | Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty b/Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty index 2b0c13b9798..dc47435ac35 100644 --- a/Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty +++ b/Master/texmf-dist/tex/latex/draftwatermark/draftwatermark.sty @@ -32,7 +32,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{draftwatermark}% - [2006/06/30 1.0 Put a gray textual watermark on document pages] + [2015/02/19 1.2 Put a gray textual watermark on document pages] \RequirePackage{everypage}[2007/06/20] \RequirePackage{graphicx} \RequirePackage{color} @@ -49,12 +49,16 @@ \DeclareOption{stamp}{% \@sc@wm@stamptrue} \ProcessOptions +\newlength\sc@wm@hcenter +\newlength\sc@wm@vcenter \newlength\sc@wm@fontsize %% defaults \def\sc@wm@angle{45} \def\sc@wm@colormodel{[gray]} \def\sc@wm@colorspecs{0.8} \def\sc@wm@scale{1} +\setlength\sc@wm@hcenter{.5\paperwidth} +\setlength\sc@wm@vcenter{.5\paperheight} \setlength\sc@wm@fontsize{5cm} \def\sc@wm@text{DRAFT} \newcommand\SetWatermarkAngle[1]{% @@ -70,11 +74,15 @@ \setlength\sc@wm@fontsize{#1}} \newcommand\SetWatermarkScale[1]{% \def\sc@wm@scale{#1}} +\newcommand\SetWatermarkHorCenter[1]{% + \setlength\sc@wm@hcenter{#1}} +\newcommand\SetWatermarkVerCenter[1]{% + \setlength\sc@wm@vcenter{#1}} \newcommand\SetWatermarkText[1]{% \def\sc@wm@text{#1}} \newcommand\sc@watermark{% - \setlength{\@tempdimb}{.5\paperwidth}% - \setlength{\@tempdimc}{-.5\paperheight}% + \setlength{\@tempdimb}{\sc@wm@hcenter}% + \setlength{\@tempdimc}{-\sc@wm@vcenter}% \put(\strip@pt\@tempdimb,\strip@pt\@tempdimc){% \makebox(0,0){\rotatebox{\sc@wm@angle}{% \scalebox{\sc@wm@scale}{% |