summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-08-19 22:19:37 +0000
committerKarl Berry <karl@freefriends.org>2012-08-19 22:19:37 +0000
commitb930041db48f2f319759f365ac4a7cb55cc116b6 (patch)
tree3c74324a8915279a541dc7edd0d2706a20423e9a /Master/texmf-dist
parente9d394d17c224d094859430ed2d214491caf0e45 (diff)
xwatermark (19aug12)
git-svn-id: svn://tug.org/texlive/trunk@27463 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/latex/xwatermark/README2
-rw-r--r--Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.tex11
-rw-r--r--Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty36
3 files changed, 30 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/latex/xwatermark/README b/Master/texmf-dist/doc/latex/xwatermark/README
index afa8d0ee89b..0322e818dc3 100644
--- a/Master/texmf-dist/doc/latex/xwatermark/README
+++ b/Master/texmf-dist/doc/latex/xwatermark/README
@@ -2,7 +2,7 @@ This is the README file for the 'xwatermark' package.
VERSION
-Version 1.5.2a, 01 February 2012
+Version 1.5.2b, 10 August 2012
SUMMARY
diff --git a/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.tex b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.tex
index a178403449a..91dd18cf13b 100644
--- a/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.tex
+++ b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.tex
@@ -41,7 +41,11 @@
\end{abstract}
\end{frontmatter}
+%\fcolorbox{gray}{blue}{\box\boxa}
+
+%\newpage
\noindent
+
\xwmcolorbox[framesep=5pt,framerule=2pt,fillcolor=white,
outerframecolor=purple,innerframecolor=brown,textalign=justified,
width=.97\textwidth]{%
@@ -221,11 +225,12 @@ then there will be no problem but the outcome may be unpredictable, depending on
If you issue any of the statements
\start{syntax}[page specifiers]
-page=x pages=x-y pagex={x,y,z} firstpage
-lastpage allpages=true evenpages=true oddpages=true
+page=x pages=x-y pagex={x,y,z} firstpage
+lastpage allpages evenpages oddpages
+allpages=true evenpages=true oddpages=true
\finish{syntax}
-together with \fx{printwatermark}=\hx{true} but you don't want the mark on any particular page, we can simply set \fx{\newwatermark[other keys,textmark=]{}} or, to the same effect, we may set \fx{\newwatermark[other keys]{}}, where \quoted{other keys} may include the page specifiers\footnote{In the case of graphics watermarks, setting \ftfx{\newwatermark[other keys,picfile=]{}} will prompt a \quoted{no file} error.}. These both imply that the text watermark for the given page is empty. This can be useful when transiting from one watermark type to another. Moreover, since both picture and text marks can be submitted via one and the same command \fx{\newwatermark} (see \sref{sec:pic-text-mark}), this technique may be used to empty the text watermark for the given page or range of pages. For example,
+together with \fx{printwatermark}=\hx{true} but you don't want the mark on any particular page, you can simply set \fx{\newwatermark[other keys,textmark=]{}} or, to the same effect, you may set \fx{\newwatermark[other keys]{}}, where \quoted{other keys} may include the page specifiers\footnote{In the case of graphics watermarks, setting \ftfx{\newwatermark[other keys,picfile=]{}} will prompt a \quoted{no file} error.}. These both imply that the text watermark for the given page is empty. This can be useful when transiting from one watermark type to another. Moreover, since both picture and text marks can be submitted via one and the same command \fx{\newwatermark} (see \sref{sec:pic-text-mark}), this technique may be used to empty the text watermark for the given page or range of pages. For example,
\start{example}[\newwatermark]
\newwatermark[allpages,fontfamily=put,color=white,fontsize=3cm,scale=1,
diff --git a/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty b/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty
index 9c07a23545a..c9b5394e3b8 100644
--- a/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty
+++ b/Master/texmf-dist/tex/latex/xwatermark/xwatermark.sty
@@ -1,5 +1,5 @@
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
-% This is file 'xwatermark.sty', version 1.5.2a, February 2012. %
+% This is file 'xwatermark.sty', version 1.5.2b, August 2012. %
% %
% This package puts user-specified watermarks (graphics and arbitrary %
% texts) on select pages of documents. See package documentation %
@@ -23,17 +23,17 @@
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
\@ifpackageloaded{catoptions}{%
- \@ifpackagelater{catoptions}{2011/10/22}{}{%
- \@latex@error{Loaded version of catoptions package is
+ \@ifpackagelater{catoptions}{2012/08/01}{}{%
+ \@latex@error{Loaded version of 'catoptions' package is
not current}\@ehc
}%
}{%
- \RequirePackage{catoptions}[2011/10/22]%
+ \RequirePackage{catoptions}[2012/08/01]%
}
\UseNormalCatcodes
\StyleFilePurpose{A dynamic watermarking scheme}
\StyleFileRCSInfo
-$Id: xwatermark.sty,v 1.5.2a 2012/02/01 09:00:00 Ahmed Musa Exp $
+$Id: xwatermark.sty,v 1.5.2b 2012/08/10 09:00:00 Ahmed Musa Exp $
\ProvidesPackage{xwatermark}[\StyleFileInfo]
\NeedsTeXFormat{LaTeX2e}[2011/06/27]
\SetStyleFileMessages[xwm@]{info}{warn}{err}
@@ -45,7 +45,7 @@ $Id: xwatermark.sty,v 1.5.2a 2012/02/01 09:00:00 Ahmed Musa Exp $
atbegshi||2008/07/31;
fancyhdr;
atveryend||2010/03/24;
- ltxkeys||2011/01/01;
+ ltxkeys;
framed||2007/10/04
}
\AtEndOfPackage{\BeforeStartOfDocument{%
@@ -458,7 +458,6 @@ $Id: xwatermark.sty,v 1.5.2a 2012/02/01 09:00:00 Ahmed Musa Exp $
\undefcs\xwm@afterlastpage
\undefcs\xwm@afterl@stpage
}%
- \let\xwm@newlabel\xwm@testdef
}
\robust@def*\xwmnewlabel{\xwm@newlabel{xwmr}}
\robust@def*\xwm@newlabel#1#2#3{%
@@ -469,23 +468,24 @@ $Id: xwatermark.sty,v 1.5.2a 2012/02/01 09:00:00 Ahmed Musa Exp $
}%
\ltxmsg@warn{Label '#2' multiply defined}%
}%
- \csngdef*{#1@#2}{#3}%
+ \csn@gdef{#1@#2}{#3}%
\endgroup
}
\let\xwm@multiplelabels\relax
\BeforeStartOfDocument{%
\global\let\xwm@multiplelabels\relax
}
-\robust@def*\xwm@testdef#1#2#3{%
+\robust@def*\xwm@lbtestdef#1#2#3{%
\begingroup
\def\xwm@tempa{#3}%
- \aftercsname\ifxTF{#1@#2}\xwm@tempa
- {\global\xwm@swafalse}{\global\xwm@swatrue}%
+ \expandafter\ifx\csname#1@#2\endcsname\xwm@tempa\else
+ \gdef\xwm@lbtestsw{00}\fi
\endgroup
}
-% No need for \makeatletter in .xwm file since the file is read
-% by this package only:
+\begingroup
+\makeatletter
\InputIfFileExists{\jobname.xwm}{}{}
+\endgroup
\if@filesw
\immediate\openout\xwm@wrt=\jobname.xwm
\immediate\write\xwm@wrt{\relax}
@@ -498,9 +498,15 @@ $Id: xwatermark.sty,v 1.5.2a 2012/02/01 09:00:00 Ahmed Musa Exp $
\endgroup
\fi
\immediate\closeout\xwm@wrt
+ \let\xwm@newlabel\xwm@lbtestdef
+ \gdef\xwm@lbtestsw{01}%
+ \begingroup
+ \makeatletter
+ \InputIfFileExists{\jobname.xwm}{}{}%
+ \endgroup
\if@filesw
\ifx\xwm@multiplelabels\relax
- \ifxwm@swa
+ \if\xwm@lbtestsw
\ltxmsg@warn{Label(s) may have changed.
Rerun to get cross-references right}%
\fi
@@ -1658,7 +1664,7 @@ $Id: xwatermark.sty,v 1.5.2a 2012/02/01 09:00:00 Ahmed Musa Exp $
}%
}%
\tsv@@loop*\xwm@inputpath
- \ifboolTF{cpt@choicefd}\@firstoftwo\@secondoftwo
+ \ifboolTF{cpt@choicefd}%
}
\robust@def*\xwm@nofileerr#1#2{%
\message{%