From 255ba44b76120637be9f2d3d81ddda836a37c128 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 11 Dec 2009 17:29:21 +0000 Subject: new package xwatermark 1.3 (9dec09) git-svn-id: svn://tug.org/texlive/trunk@16366 c570f23f-e606-0410-a88d-b1316a301751 --- .../latex/xwatermark/Graphics/xwatermarkpic.eps | 932 +++++++++++++++++++++ .../latex/xwatermark/Graphics/xwatermarkpic.pdf | Bin 0 -> 14861 bytes Master/texmf-dist/doc/latex/xwatermark/README | 35 + .../latex/xwatermark/xwatermark-examples-1dot3.tex | 180 ++++ .../latex/xwatermark/xwatermark-guide-1dot3.pdf | Bin 0 -> 262897 bytes .../latex/xwatermark/xwatermark-guide-1dot3.tex | 554 ++++++++++++ .../doc/latex/xwatermark/xwatermark-guide.cfg | 212 +++++ 7 files changed, 1913 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/xwatermark/Graphics/xwatermarkpic.eps create mode 100644 Master/texmf-dist/doc/latex/xwatermark/Graphics/xwatermarkpic.pdf create mode 100644 Master/texmf-dist/doc/latex/xwatermark/README create mode 100644 Master/texmf-dist/doc/latex/xwatermark/xwatermark-examples-1dot3.tex create mode 100644 Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot3.pdf create mode 100644 Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot3.tex create mode 100644 Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.cfg (limited to 'Master/texmf-dist/doc/latex/xwatermark') diff --git a/Master/texmf-dist/doc/latex/xwatermark/Graphics/xwatermarkpic.eps b/Master/texmf-dist/doc/latex/xwatermark/Graphics/xwatermarkpic.eps new file mode 100644 index 00000000000..068aef30c01 --- /dev/null +++ b/Master/texmf-dist/doc/latex/xwatermark/Graphics/xwatermarkpic.eps @@ -0,0 +1,932 @@ +%!PS-Adobe-3.0 EPSF-3.0 +%%Creator: dvips(k) 5.96dev Copyright 2007 Radical Eye Software +%%Title: draftmarkpic.dvi +%%CreationDate: Sun May 17 23:07:58 2009 +%%Pages: 1 +%%PageOrder: Ascend +%%BoundingBox: 115 92 301 747 +%%DocumentFonts: CMR12 +%%DocumentPaperSizes: a4 +%%EndComments +%DVIPSWebPage: (www.radicaleye.com) +%DVIPSCommandLine: dvips.exe draftmarkpic.dvi +%DVIPSParameters: dpi=600 +%DVIPSSource: TeX output 2009.05.17:2307 +%%BeginProcSet: tex.pro 0 0 +%! +/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S +N}B/A{dup}B/TR{translate}N/isls false N/vsize 11 72 mul N/hsize 8.5 72 +mul N/landplus90{false}def/@rigin{isls{[0 landplus90{1 -1}{-1 1}ifelse 0 +0 0]concat}if 72 Resolution div 72 VResolution div neg scale isls{ +landplus90{VResolution 72 div vsize mul 0 exch}{Resolution -72 div hsize +mul 0}ifelse TR}if Resolution VResolution vsize -72 div 1 add mul TR[ +matrix currentmatrix{A A round sub abs 0.00001 lt{round}if}forall round +exch round exch]setmatrix}N/@landscape{/isls true N}B/@manualfeed{ +statusdict/manualfeed true put}B/@copies{/#copies X}B/FMat[1 0 0 -1 0 0] +N/FBB[0 0 0 0]N/nn 0 N/IEn 0 N/ctr 0 N/df-tail{/nn 8 dict N nn begin +/FontType 3 N/FontMatrix fntrx N/FontBBox FBB N string/base X array +/BitMaps X/BuildChar{CharBuilder}N/Encoding IEn N end A{/foo setfont}2 +array copy cvx N load 0 nn put/ctr 0 N[}B/sf 0 N/df{/sf 1 N/fntrx FMat N +df-tail}B/dfs{div/sf X/fntrx[sf 0 0 sf neg 0 0]N df-tail}B/E{pop nn A +definefont setfont}B/Cw{Cd A length 5 sub get}B/Ch{Cd A length 4 sub get +}B/Cx{128 Cd A length 3 sub get sub}B/Cy{Cd A length 2 sub get 127 sub} +B/Cdx{Cd A length 1 sub get}B/Ci{Cd A type/stringtype ne{ctr get/ctr ctr +1 add N}if}B/CharBuilder{save 3 1 roll S A/base get 2 index get S +/BitMaps get S get/Cd X pop/ctr 0 N Cdx 0 Cx Cy Ch sub Cx Cw add Cy +setcachedevice Cw Ch true[1 0 0 -1 -.1 Cx sub Cy .1 sub]{Ci}imagemask +restore}B/D{/cc X A type/stringtype ne{]}if nn/base get cc ctr put nn +/BitMaps get S ctr S sf 1 ne{A A length 1 sub A 2 index S get sf div put +}if put/ctr ctr 1 add N}B/I{cc 1 add D}B/bop{userdict/bop-hook known{ +bop-hook}if/SI save N @rigin 0 0 moveto/V matrix currentmatrix A 1 get A +mul exch 0 get A mul add .99 lt{/QV}{/RV}ifelse load def pop pop}N/eop{ +SI restore userdict/eop-hook known{eop-hook}if showpage}N/@start{ +userdict/start-hook known{start-hook}if pop/VResolution X/Resolution X +1000 div/DVImag X/IEn 256 array N 2 string 0 1 255{IEn S A 360 add 36 4 +index cvrs cvn put}for pop 65781.76 div/vsize X 65781.76 div/hsize X}N +/p{show}N/RMat[1 0 0 -1 0 0]N/BDot 260 string N/Rx 0 N/Ry 0 N/V{}B/RV/v{ +/Ry X/Rx X V}B statusdict begin/product where{pop false[(Display)(NeXT) +(LaserWriter 16/600)]{A length product length le{A length product exch 0 +exch getinterval eq{pop true exit}if}{pop}ifelse}forall}{false}ifelse +end{{gsave TR -.1 .1 TR 1 1 scale Rx Ry false RMat{BDot}imagemask +grestore}}{{gsave TR -.1 .1 TR Rx Ry scale 1 1 false RMat{BDot} +imagemask grestore}}ifelse B/QV{gsave newpath transform round exch round +exch itransform moveto Rx 0 rlineto 0 Ry neg rlineto Rx neg 0 rlineto +fill grestore}B/a{moveto}B/delta 0 N/tail{A/delta X 0 rmoveto}B/M{S p +delta add tail}B/b{S p tail}B/c{-4 M}B/d{-3 M}B/e{-2 M}B/f{-1 M}B/g{0 M} +B/h{1 M}B/i{2 M}B/j{3 M}B/k{4 M}B/w{0 rmoveto}B/l{p -4 w}B/m{p -3 w}B/n{ +p -2 w}B/o{p -1 w}B/q{p 1 w}B/r{p 2 w}B/s{p 3 w}B/t{p 4 w}B/x{0 S +rmoveto}B/y{3 2 roll p a}B/bos{/SS save N}B/eos{SS restore}B end + +%%EndProcSet +%%BeginProcSet: pstricks.pro 0 0 +%! +% PostScript prologue for pstricks.tex. +% Version 1.01, 2006/01/11 +% For distribution, see pstricks.tex. +% +/tx@Dict 200 dict def tx@Dict begin +/ADict 25 dict def +/CM { matrix currentmatrix } bind def +/SLW /setlinewidth load def +/CLW /currentlinewidth load def +/CP /currentpoint load def +/ED { exch def } bind def +/L /lineto load def +/T /translate load def +/TMatrix { } def +/RAngle { 0 } def +/Sqrt { dup 0 lt { pop 0 } { sqrt } ifelse } def % return 0 for negative arguments +/Atan { /atan load stopped { pop pop 0 } if } def % return 0 if atan not known +/ATAN1 {neg -1 atan 180 sub } def % atan(x) (only one parameter) +/Div { dup 0 eq { pop } { div } ifelse } def % control the division +/NET { neg exch neg exch T } def % change coordinate system to the negative one +/Pyth { dup mul exch dup mul add sqrt } def % Pythagoras, epects 2 parameter +/PtoC { 2 copy cos mul 3 1 roll sin mul } def % Polar to Cartesian +%----------------- hv added 20050516 --------------- +/Pi 3.14159265359 def +/TwoPi 6.28318530718 def +/Euler 2.71828182846 def +/RadtoDeg { 180 mul Pi div } bind def % convert from radian to degrees +/DegtoRad { Pi mul 180 div } bind def % viceversa +%----------------- hv end--------------------------- +/PathLength@ { /z z y y1 sub x x1 sub Pyth add def /y1 y def /x1 x def } def +/PathLength { flattenpath /z 0 def + { /y1 ED /x1 ED /y2 y1 def /x2 x1 def + }{ /y ED /x ED PathLength@ } {} { /y y2 def /x x2 def PathLength@ } + /pathforall load stopped { pop pop pop pop } if z } def +/STP { .996264 dup scale } def +/STV { SDict begin normalscale end STP } def +% +%%-------------- DG begin patch 15 ---------------%% +%/DashLine { dup 0 gt { /a .5 def PathLength exch div } { pop /a 1 def +%PathLength } ifelse /b ED /x ED /y ED /z y x add def b a .5 sub 2 mul y +%mul sub z Div round z mul a .5 sub 2 mul y mul add b exch Div dup y mul +%/y ED x mul /x ED x 0 gt y 0 gt and { [ y x ] 1 a sub y mul } { [ 1 0 ] +%0 } ifelse setdash stroke } def +/DashLine { + dup 0 gt { /a .5 def PathLength exch div } { pop /a 1 def PathLength } ifelse + /b ED /x1 ED /y1 ED /x ED /y ED + /z y x add y1 add x1 add def + /Coef b a .5 sub 2 mul y mul sub z Div round + z mul a .5 sub 2 mul y mul add b exch Div def + /y y Coef mul def + /x x Coef mul def + /y1 y1 Coef mul def + /x1 x1 Coef mul def + x1 0 gt y1 0 gt or x 0 gt or y 0 gt and + { [ y x y1 x1 ] 1 a sub y mul } + { [ 1 0 ] 0 } ifelse + setdash stroke +} def +%%-------------- DG end patch 15 ---------------%% +/DotLine { + /b PathLength def + /a ED /z ED /y CLW def + /z y z add def + a 0 gt { + /b b a div def + }{ + a 0 eq { + /b b y sub def + }{ a -3 eq { + /b b y add def } if + } ifelse + } ifelse + [ 0 b b z Div round Div dup 0 le { pop 1 } if ] + a 0 gt { 0 }{ y 2 div a -2 gt { neg }if } ifelse + setdash 1 setlinecap stroke +} def +% +/LineFill { % hv ------------ patch 7 ------------- + gsave + abs /hatchWidthInc ED + abs /hatchSepInc ED + abs CLW add /a ED + a 0 dtransform round exch round exch + 2 copy idtransform + exch Atan rotate + idtransform pop /a ED + .25 .25 itransform pathbbox + /y2 ED + a Div ceiling cvi /x2 ED /y1 ED + a Div cvi /x1 ED /y2 y2 y1 sub def + clip + newpath + 2 setlinecap + systemdict + /setstrokeadjust known { true setstrokeadjust } if + x2 x1 sub 1 add { + x1 a mul y1 moveto 0 y2 rlineto stroke + /x1 x1 1 add + hatchWidthInc 0 gt { CLW add } if + def + hatchSepInc 0 gt hatchWidthInc 0 gt or { + /a a hatchSepInc add def + CLW hatchWidthInc add SLW + } if + } repeat + grestore + pop pop } def +% +%gsave abs CLW add /a ED a 0 dtransform round exch round exch +%2 copy idtransform exch Atan rotate idtransform pop /a ED .25 .25 +%% DG/SR modification begin - Dec. 12, 1997 - Patch 2 +%%itransform translate pathbbox /y2 ED a Div ceiling cvi /x2 ED /y1 ED a +%itransform pathbbox /y2 ED a Div ceiling cvi /x2 ED /y1 ED a +%% DG/SR modification end +%Div cvi /x1 ED /y2 y2 y1 sub def clip newpath 2 setlinecap systemdict +%/setstrokeadjust known { true setstrokeadjust } if x2 x1 sub 1 add { x1 +%% DG/SR modification begin - Jun. 1, 1998 - Patch 3 (from Michael Vulis) +%% a mul y1 moveto 0 y2 rlineto stroke /x1 x1 1 add def } repeat grestore } +%% def +%a mul y1 moveto 0 y2 rlineto stroke /x1 x1 1 add def } repeat grestore +%pop pop } def +%% DG/SR modification end +% +/BeginArrow { ADict begin /@mtrx CM def gsave 2 copy T 2 index sub neg +exch 3 index sub exch Atan rotate newpath } def +/EndArrow { @mtrx setmatrix CP grestore end } def +/Arrow { CLW mul add dup 2 div /w ED mul dup /h ED mul /a ED { 0 h T 1 -1 +scale } if w neg h moveto 0 0 L w h L w neg a neg rlineto gsave fill +grestore } def +/Tbar { CLW mul add /z ED z -2 div CLW 2 div moveto z 0 rlineto stroke 0 +CLW moveto } def +/Bracket { CLW mul add dup CLW sub 2 div /x ED mul CLW add /y ED /z CLW 2 +div def x neg y moveto x neg CLW 2 div L x CLW 2 div L x y L stroke 0 +CLW moveto } def +/RoundBracket { CLW mul add dup 2 div /x ED mul /y ED /mtrx CM def 0 CLW +2 div T x y mul 0 ne { x y scale } if 1 1 moveto .85 .5 .35 0 0 0 +curveto -.35 0 -.85 .5 -1 1 curveto mtrx setmatrix stroke 0 CLW moveto } +def +/SD { 0 360 arc fill } def +/EndDot { % DS is the dot size + { /z DS def } { /z 0 def } ifelse + /b ED 0 z DS SD b { 0 z DS CLW sub SD } if + 0 DS z add CLW 4 div sub moveto } def +% +/Shadow { [ { /moveto load } { /lineto load } { /curveto load } { + /closepath load } /pathforall load stopped { pop pop pop pop CP /moveto + load } if ] cvx newpath 3 1 roll T exec } def +% +/NArray { aload length 2 div dup dup cvi eq not { exch pop } if /n exch +cvi def } def +/NArray { % holds the coordinates and on top of stack the showpoints boolean + /f ED + counttomark 2 div dup cvi /n ED + n eq not { exch pop } if + f { ] aload /Points ED } { n 2 mul 1 add -1 roll pop } ifelse +} def +/Line { + NArray n 0 eq not + { n 1 eq { 0 0 /n 2 def } if ArrowA /n n 2 sub def + n { Lineto } repeat + CP 4 2 roll ArrowB L pop pop + } if +} def +/Arcto { /a [ 6 -2 roll ] cvx def a r /arcto load stopped { 5 } { 4 } + ifelse { pop } repeat a } def +/CheckClosed { dup n 2 mul 1 sub index eq 2 index n 2 mul 1 add index eq + and { pop pop /n n 1 sub def } if } def +/Polygon { NArray n 2 eq { 0 0 /n 3 def } if n 3 lt { n { pop pop } + repeat } { n 3 gt { CheckClosed } if n 2 mul -2 roll /y0 ED /x0 ED /y1 + ED /x1 ED x1 y1 /x1 x0 x1 add 2 div def /y1 y0 y1 add 2 div def x1 y1 + moveto /n n 2 sub def n { Lineto } repeat x1 y1 x0 y0 6 4 roll Lineto + Lineto pop pop closepath } ifelse } def +/Diamond { + /mtrx CM def + T rotate + /h ED + /w ED + dup 0 eq { pop } { CLW mul neg + /d ED + /a w h Atan def + /h d a sin Div h add def + /w d a cos Div w add def } ifelse + mark w 2 div h 2 div w 0 0 h neg w neg 0 0 h w 2 div h 2 div + /ArrowA { moveto } def + /ArrowB { } def + false Line + closepath mtrx setmatrix } def +% DG modification begin - Jan. 15, 1997 +%/Triangle { /mtrx CM def translate rotate /h ED 2 div /w ED dup 0 eq { +%pop } { CLW mul /d ED /h h d w h Atan sin Div sub def /w w d h w Atan 2 +%div dup cos exch sin Div mul sub def } ifelse mark 0 d w neg d 0 h w d 0 +%d /ArrowA { moveto } def /ArrowB { } def false Line closepath mtrx +%setmatrix } def +/Triangle { /mtrx CM def translate rotate /h ED 2 div /w ED dup +CLW mul /d ED /h h d w h Atan sin Div sub def /w w d h w Atan 2 +div dup cos exch sin Div mul sub def mark 0 d w neg d 0 h w d 0 +d /ArrowA { moveto } def /ArrowB { } def false Line closepath mtrx +% DG/SR modification begin - Jun. 1, 1998 - Patch 3 (from Michael Vulis) +% setmatrix } def +setmatrix pop } def +% DG/SR modification end +/CCA { /y ED /x ED 2 copy y sub /dy1 ED x sub /dx1 ED /l1 dx1 dy1 Pyth +def } def +/CCA { /y ED /x ED 2 copy y sub /dy1 ED x sub /dx1 ED /l1 dx1 dy1 Pyth +def } def +/CC { /l0 l1 def /x1 x dx sub def /y1 y dy sub def /dx0 dx1 def /dy0 dy1 +def CCA /dx dx0 l1 c exp mul dx1 l0 c exp mul add def /dy dy0 l1 c exp +mul dy1 l0 c exp mul add def /m dx0 dy0 Atan dx1 dy1 Atan sub 2 div cos +abs b exp a mul dx dy Pyth Div 2 div def /x2 x l0 dx mul m mul sub def +/y2 y l0 dy mul m mul sub def /dx l1 dx mul m mul neg def /dy l1 dy mul +m mul neg def } def +/IC { /c c 1 add def c 0 lt { /c 0 def } { c 3 gt { /c 3 def } if } +ifelse /a a 2 mul 3 div 45 cos b exp div def CCA /dx 0 def /dy 0 def } +def +/BOC { IC CC x2 y2 x1 y1 ArrowA CP 4 2 roll x y curveto } def +/NC { CC x1 y1 x2 y2 x y curveto } def +/EOC { x dx sub y dy sub 4 2 roll ArrowB 2 copy curveto } def +/BAC { IC CC x y moveto CC x1 y1 CP ArrowA } def +/NAC { x2 y2 x y curveto CC x1 y1 } def +/EAC { x2 y2 x y ArrowB curveto pop pop } def +/OpenCurve { + NArray n 3 lt + { n { pop pop } repeat } + { BOC /n n 3 sub def n { NC } repeat EOC } ifelse +} def +/AltCurve { { false NArray n 2 mul 2 roll [ n 2 mul 3 sub 1 roll ] aload +/Points ED n 2 mul -2 roll } { false NArray } ifelse n 4 lt { n { pop +pop } repeat } { BAC /n n 4 sub def n { NAC } repeat EAC } ifelse } def +/ClosedCurve { NArray n 3 lt { n { pop pop } repeat } { n 3 gt { +CheckClosed } if 6 copy n 2 mul 6 add 6 roll IC CC x y moveto n { NC } +repeat closepath pop pop } ifelse } def +/SQ { /r ED r r moveto r r neg L r neg r neg L r neg r L fill } def +/ST { /y ED /x ED x y moveto x neg y L 0 x L fill } def +/SP { /r ED gsave 0 r moveto 4 { 72 rotate 0 r L } repeat fill grestore } +def +/FontDot { DS 2 mul dup matrix scale matrix concatmatrix exch matrix +rotate matrix concatmatrix exch findfont exch makefont setfont } def +/Rect { x1 y1 y2 add 2 div moveto x1 y2 lineto x2 y2 lineto x2 y1 lineto +x1 y1 lineto closepath } def +/OvalFrame { x1 x2 eq y1 y2 eq or { pop pop x1 y1 moveto x2 y2 L } { y1 +y2 sub abs x1 x2 sub abs 2 copy gt { exch pop } { pop } ifelse 2 div +exch { dup 3 1 roll mul exch } if 2 copy lt { pop } { exch pop } ifelse +/b ED x1 y1 y2 add 2 div moveto x1 y2 x2 y2 b arcto x2 y2 x2 y1 b arcto +x2 y1 x1 y1 b arcto x1 y1 x1 y2 b arcto 16 { pop } repeat closepath } +ifelse } def +/Frame { CLW mul /a ED 3 -1 roll 2 copy gt { exch } if a sub /y2 ED a add +/y1 ED 2 copy gt { exch } if a sub /x2 ED a add /x1 ED 1 index 0 eq { +pop pop Rect } { OvalFrame } ifelse } def +/BezierNArray { /f ED counttomark 2 div dup cvi /n ED n eq not { exch pop +} if n 1 sub neg 3 mod 3 add 3 mod { 0 0 /n n 1 add def } repeat f { ] +aload /Points ED } { n 2 mul 1 add -1 roll pop } ifelse } def +/OpenBezier { BezierNArray n 1 eq { pop pop } { ArrowA n 4 sub 3 idiv { 6 +2 roll 4 2 roll curveto } repeat 6 2 roll 4 2 roll ArrowB curveto } +ifelse } def +/ClosedBezier { BezierNArray n 1 eq { pop pop } { moveto n 1 sub 3 idiv { +6 2 roll 4 2 roll curveto } repeat closepath } ifelse } def +/BezierShowPoints { gsave Points aload length 2 div cvi /n ED moveto n 1 +sub { lineto } repeat CLW 2 div SLW [ 4 4 ] 0 setdash stroke grestore } +def +/Parab { /y0 exch def /x0 exch def /y1 exch def /x1 exch def /dx x0 x1 +sub 3 div def /dy y0 y1 sub 3 div def x0 dx sub y0 dy add x1 y1 ArrowA +x0 dx add y0 dy add x0 2 mul x1 sub y1 ArrowB curveto /Points [ x1 y1 x0 +y0 x0 2 mul x1 sub y1 ] def } def +/Grid { newpath /a 4 string def /b ED /c ED /n ED cvi dup 1 lt { pop 1 } +if /s ED s div dup 0 eq { pop 1 } if /dy ED s div dup 0 eq { pop 1 } if +/dx ED dy div round dy mul /y0 ED dx div round dx mul /x0 ED dy div +round cvi /y2 ED dx div round cvi /x2 ED dy div round cvi /y1 ED dx div +round cvi /x1 ED /h y2 y1 sub 0 gt { 1 } { -1 } ifelse def /w x2 x1 sub +0 gt { 1 } { -1 } ifelse def b 0 gt { /z1 b 4 div CLW 2 div add def +/Helvetica findfont b scalefont setfont /b b .95 mul CLW 2 div add def } +if systemdict /setstrokeadjust known { true setstrokeadjust /t { } def } +{ /t { transform 0.25 sub round 0.25 add exch 0.25 sub round 0.25 add +exch itransform } bind def } ifelse gsave n 0 gt { 1 setlinecap [ 0 dy n +div ] dy n div 2 div setdash } { 2 setlinecap } ifelse /i x1 def /f y1 +dy mul n 0 gt { dy n div 2 div h mul sub } if def /g y2 dy mul n 0 gt { +dy n div 2 div h mul add } if def x2 x1 sub w mul 1 add dup 1000 gt { +pop 1000 } if { i dx mul dup y0 moveto b 0 gt { gsave c i a cvs dup +stringwidth pop /z2 ED w 0 gt {z1} {z1 z2 add neg} ifelse h 0 gt {b neg} +{z1} ifelse rmoveto show grestore } if dup t f moveto g t L stroke /i i +w add def } repeat grestore gsave n 0 gt +% DG/SR modification begin - Nov. 7, 1997 - Patch 1 +%{ 1 setlinecap [ 0 dx n div ] dy n div 2 div setdash } +{ 1 setlinecap [ 0 dx n div ] dx n div 2 div setdash } +% DG/SR modification end +{ 2 setlinecap } ifelse /i y1 def /f x1 dx mul +n 0 gt { dx n div 2 div w mul sub } if def /g x2 dx mul n 0 gt { dx n +div 2 div w mul add } if def y2 y1 sub h mul 1 add dup 1000 gt { pop +1000 } if { newpath i dy mul dup x0 exch moveto b 0 gt { gsave c i a cvs +dup stringwidth pop /z2 ED w 0 gt {z1 z2 add neg} {z1} ifelse h 0 gt +{z1} {b neg} ifelse rmoveto show grestore } if dup f exch t moveto g +exch t L stroke /i i h add def } repeat grestore } def +/ArcArrow { /d ED /b ED /a ED gsave newpath 0 -1000 moveto clip newpath 0 +1 0 0 b grestore c mul /e ED pop pop pop r a e d PtoC y add exch x add +exch r a PtoC y add exch x add exch b pop pop pop pop a e d CLW 8 div c +mul neg d } def +/Ellipse { /mtrx CM def T scale 0 0 1 5 3 roll arc mtrx setmatrix } def +% +/ArcAdjust { %%%% Vincent Guirardel +% given a target length (targetLength) and an initial angle (angle0) [in the stack], +% let M(angle0)=(rx*cos(angle0),ry*sin(angle0))=(x0,y0). +% This computes an angle t such that (x0,y0) is at distance +% targetLength from the point M(t)=(rx*cos(t),ry*sin(t)). +% NOTE: this an absolute angle, it does not have to be added or substracted to angle0 +% contrary to TvZ's code. +% To achieve, this, one iterates the following process: start with some angle t, +% compute the point M' at distance targetLength of (x0,y0) on the semi-line [(x0,y0) M(t)]. +% Now take t' (= new angle) so that (0,0) M(t') and M' are aligned. +% +% Another difference with TvZ's code is that we need d (=add/sub) to be defined. +% the value of d = add/sub is used to know on which side we have to move. +% It is only used in the initialisation of the angle before the iteration. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Input stack: 1: target length 2: initial angle +% variables used : rx, ry, d (=add/sub) +% + /targetLength ED /angle0 ED + /x0 rx angle0 cos mul def + /y0 ry angle0 sin mul def +% we are looking for an angle t such that (x0,y0) is at distance targetLength +% from the point M(t)=(rx*cos(t),ry*sin(t))) +%initialisation of angle (using 1st order approx = TvZ's code) + targetLength 57.2958 mul + angle0 sin rx mul dup mul + angle0 cos ry mul dup mul + add sqrt div +% if initialisation angle is two large (more than 90 degrees) set it to 90 degrees +% (if the ellipse is very curved at the point where we draw the arrow, % +% the value can be much more than 360 degrees !) +% this should avoid going on the wrong side (more than 180 degrees) or go near +% a bad attractive point (at 180 degrees) + dup 90 ge { pop 90 } if + angle0 exch d % add or sub +% maximum number of times to iterate the iterative procedure: +% iterative procedure: takes an angle t on top of stack, computes a +% better angle (and put it on top of stack) + 30 { dup +% compute distance D between (x0,y0) and M(t) + dup cos rx mul x0 sub dup mul exch sin ry mul y0 sub dup mul add sqrt +% if D almost equals targetLength, we stop + dup targetLength sub abs 1e-5 le { pop exit } if +% stack now contains D t +% compute the point M(t') at distance targetLength of (x0,y0) on the semi-line [(x0,y0) M(t)]: +% M(t')= ( (x(t)-x0)*targetLength/d+x0 , (y(t)-y0)*targetLength/d+y0 ) + exch dup cos rx mul x0 sub exch sin ry mul y0 sub +% stack contains: y(t)-y0, x(t)-x0, d + 2 index Div targetLength mul y0 add ry Div exch + 2 index Div targetLength mul x0 add rx Div +% stack contains x(t')/rx , y(t')/ry , d +% now compute t', and remove D from stack + atan exch pop + } repeat +% we don't look at what happened... in particular, if targetLength is greater +% than the diameter of the ellipse... +% the final angle will be around /angle0 + 180. maybe we should treat this pathological case... +% after iteration, stack contains an angle t such that M(t) is the tail of the arrow +% to give back the result as a an angle relative to angle0 we could add the following line: +% angle0 sub 0 exch d +% +% begin bug fix 2006-01-11 +% we want to adjust the new angle t' by a multiple of 360 so that | t'-angle0 | <= 180 +%(we don't want to make the ellipse turn more or less than it should)... +dup angle0 sub dup abs 180 gt { 180 add 360 div floor 360 mul sub } { pop } ifelse +% end bug fix +} def +% +/EllipticArcArrow { + /d ED % add/sub + /b ED % arrow procedure + /a1 ED % angle + gsave + newpath + 0 -1000 moveto + clip % Set clippath far from arrow. + newpath + 0 1 0 0 b % Draw arrow to determine length. + grestore +% Length of arrow is on top of stack. Next 3 numbers are junk. +% + a1 exch ArcAdjust % Angular position of base of arrow. + /a2 ED + pop pop pop + a2 cos rx mul x add + a2 sin ry mul y add + a1 cos rx mul x add + a1 sin ry mul y add +% Now arrow tip coor and base coor are on stack. + b pop pop pop pop % Draw arrow, and discard coordinates. + a2 CLW 8 div +% change value of d (test it by looking if `` 1 1 d '' gives 2 or not ) + 1 1 d 2 eq { /d { sub } def } { /d { add } def } ifelse + ArcAdjust +% resets original value of d + 1 1 d 2 eq { /d { sub } def } { /d { add } def } ifelse % Adjust angle to give overlap. +} def +%%------------------ tvz/DG/hv (2004-05-10) end -------------------%% +% +/Rot { CP CP translate 3 -1 roll neg rotate NET } def +/RotBegin { tx@Dict /TMatrix known not { /TMatrix { } def /RAngle { 0 } +def } if /TMatrix [ TMatrix CM ] cvx def /a ED a Rot /RAngle [ RAngle +dup a add ] cvx def } def +/RotEnd { /TMatrix [ TMatrix setmatrix ] cvx def /RAngle [ RAngle pop ] +cvx def } def +/PutCoor { gsave CP T CM STV exch exec moveto setmatrix CP grestore } def +/PutBegin { /TMatrix [ TMatrix CM ] cvx def CP 4 2 roll T moveto } def +/PutEnd { CP /TMatrix [ TMatrix setmatrix ] cvx def moveto } def +/Uput { /a ED add 2 div /h ED 2 div /w ED /s a sin def /c a cos def /b s +abs c abs 2 copy gt dup /q ED { pop } { exch pop } ifelse def /w1 c b +div w mul def /h1 s b div h mul def q { w1 abs w sub dup c mul abs } { +h1 abs h sub dup s mul abs } ifelse } def +/UUput { /z ED abs /y ED /x ED q { x s div c mul abs y gt } { x c div s +mul abs y gt } ifelse { x x mul y y mul sub z z mul add sqrt z add } { q +{ x s div } { x c div } ifelse abs } ifelse a PtoC h1 add exch w1 add +exch } def +/BeginOL { dup (all) eq exch TheOL eq or { IfVisible not { Visible +/IfVisible true def } if } { IfVisible { Invisible /IfVisible false def +} if } ifelse } def +/InitOL { /OLUnit [ 3000 3000 matrix defaultmatrix dtransform ] cvx def +/Visible { CP OLUnit idtransform T moveto } def /Invisible { CP OLUnit +neg exch neg exch idtransform T moveto } def /BOL { BeginOL } def +/IfVisible true def } def +end +% END pstricks.pro + +%%EndProcSet +%%BeginProcSet: pst-dots.pro 0 0 +%! +%% PostScript prologue for pstricks.tex. +%% Version 2.00, Suggestion of 2006/12/19 +%% For distribution, see pstricks.tex. +%% +%% Timothy Van Zandt +%% +%% Modified by Etienne Riga - Dec. 16, 1999 +%% Modified by Herbert Voss (hv) - 2004/12/27 +%% Modified by Etienne Riga - 2005/01/01 (er) +%% to add /Diamond, /SolidDiamond and /BoldDiamond +% +10 dict dup begin + /FontType 3 def + /FontMatrix [.001 0 0 .001 0 0] def + /FontBBox [-571.5 -742.5 571.5 742.5] def +% /FontBBox [-1000 -1000 1000 1000] def +% See end of file in /BuildGlyph + /Encoding 256 array def + 0 1 255 {Encoding exch/.notdef put} for + Encoding + dup (b) 0 get /Bullet put + dup (c) 0 get /Circle put + dup (C) 0 get /BoldCircle put + dup (u) 0 get /SolidTriangle put + dup (t) 0 get /Triangle put + dup (T) 0 get /BoldTriangle put + dup (r) 0 get /SolidSquare put + dup (s) 0 get /Square put + dup (S) 0 get /BoldSquare put + dup (q) 0 get /SolidPentagon put + dup (p) 0 get /Pentagon put + dup (P) 0 get /BoldPentagon put +%%% + dup (k) 0 get /Asterisk put + dup (K) 0 get /BoldAsterisk put + dup (J) 0 get /SolidAsterisk put + dup (h) 0 get /Hexagon put + dup (H) 0 get /BoldHexagon put + dup (G) 0 get /SolidHexagon put + dup (a) 0 get /Add put + dup (A) 0 get /BoldAdd put + dup (x) 0 get /Mul put + dup (X) 0 get /BoldMul put + dup (m) 0 get /Oplus put + dup (M) 0 get /BOplus put + dup (e) 0 get /SolidOplus put + dup (n) 0 get /Otimes put + dup (N) 0 get /BOtimes put + dup (E) 0 get /SolidOtimes put + dup (i) 0 get /Bar put + dup (I) 0 get /BoldBar put + dup (l) 0 get /SolidDiamond put + dup (d) 0 get /Diamond put + (D) 0 get /BoldDiamond put +%%% +/CharProcs 47 dict def + CharProcs begin + /CirclePath {0 0 500 0 360 arc closepath} def + /Bullet {CirclePath fill} def + /Circle {CirclePath .9 .9 scale CirclePath eofill} def + /BoldCircle {CirclePath .8 .8 scale CirclePath eofill} def + /TrianglePath {0 660 moveto -571.5 -330 lineto 571.5 -330 lineto + closepath} def + /SolidTriangle {TrianglePath fill} def + /Triangle {TrianglePath .85 .85 scale TrianglePath eofill} def + /BoldTriangle {TrianglePath .7 .7 scale TrianglePath eofill} def + /SquarePath {-450 450 moveto 450 450 lineto 450 -450 lineto -450 -450 lineto + closepath} def + /SolidSquare {SquarePath fill} def + /Square {SquarePath .89 .89 scale SquarePath eofill} def + /BoldSquare {SquarePath .78 .78 scale SquarePath eofill} def + /PentagonPath {-337.8 -465 moveto 337.8 -465 lineto 546.6 177.6 lineto + 0 574.7 lineto -546.6 177.6 lineto closepath} def + /SolidPentagon {PentagonPath fill} def + /Pentagon {PentagonPath .89 .89 scale PentagonPath eofill} def + /BoldPentagon {PentagonPath .78 .78 scale PentagonPath eofill} def +%-------------- hv begin 2004/07/25 from: er 2003/03/24 + /HexagonPath {0 550 moveto -476 275 lineto -476 -275 lineto + 0 -550 lineto 476 -275 lineto 476 275 lineto closepath} def + /SolidHexagon {HexagonPath fill} def + /Hexagon {HexagonPath .89 .89 scale HexagonPath eofill} def + /BoldHexagon {HexagonPath .79 .79 scale HexagonPath eofill} def + /AsteriskPath {20 0 moveto 10 250 180 500 0 500 curveto + -180 500 -10 250 -20 0 curveto closepath} def + /Asterisk {AsteriskPath 60 rotate AsteriskPath 60 rotate AsteriskPath + 60 rotate AsteriskPath 60 rotate AsteriskPath 60 rotate AsteriskPath + fill} def + /Basterp {50 250 220 500 0 500 curveto + -220 500 -50 250 -50 30 cos 100 mul curveto} def + /BoldAsteriskPath {50 30 cos 100 mul moveto Basterp + 60 rotate Basterp 60 rotate Basterp + 60 rotate Basterp 60 rotate Basterp + 60 rotate Basterp closepath} def + /BoldAsterisk {BoldAsteriskPath fill} def + /SolidAsterisk {CirclePath .9 .9 scale BoldAsteriskPath eofill} def + /CrossPath {40 550 moveto -40 550 lineto -40 40 lineto -550 40 lineto + -550 -40 lineto -40 -40 lineto -40 -550 lineto 40 -550 lineto + 40 -40 lineto 550 -40 lineto 550 40 lineto 40 40 lineto closepath} def + /BoldCrossPath {80 550 moveto -80 550 lineto -80 80 lineto -550 80 lineto + -550 -80 lineto -80 -80 lineto -80 -550 lineto 80 -550 lineto + 80 -80 lineto 550 -80 lineto 550 80 lineto 80 80 lineto closepath} def + /Add {CrossPath fill} def + /Mul {45 rotate CrossPath fill} def + /BoldAdd {BoldCrossPath fill} def + /BoldMul {45 rotate BoldCrossPath fill} def + /Oplus {CirclePath .9 .9 scale CirclePath eofill + .775 .775 scale CrossPath fill} def + /SolidOplus {CirclePath .775 .775 scale BoldCrossPath eofill} def + /BOplus {CirclePath .8 .8 scale CirclePath eofill + .775 .775 scale BoldCrossPath fill} def + /Otimes {CirclePath .9 .9 scale CirclePath eofill + 45 rotate .775 .775 scale CrossPath fill} def + /BOtimes {CirclePath .8 .8 scale CirclePath eofill + 45 rotate .775 .775 scale BoldCrossPath fill } def + /SolidOtimes {CirclePath 45 rotate .775 .775 scale BoldCrossPath eofill} def + /BarPath {40 660 moveto -40 660 lineto -40 -660 lineto 40 -660 lineto + closepath} def + /Bar {BarPath fill} def + /BoldBarPath {80 660 moveto -80 660 lineto -80 -660 lineto 80 -660 lineto + closepath} def + /BoldBar {BoldBarPath fill} def + /DiamondPath {0 742.5 moveto -428.5 0 lineto 0 -742.5 lineto + 428.5 0 lineto closepath} def + /SolidDiamond {DiamondPath fill} def + /Diamond {DiamondPath .865 .865 scale DiamondPath eofill} def + /BoldDiamond {DiamondPath .73 .73 scale DiamondPath eofill} def +%%% + /.notdef { } def + end + /BuildGlyph { + exch + begin +% Metrics 1 index get exec 0 + 0 0 +% BBoxes 3 index get exec + -1000 -1000 1000 1000 +% -571.5 -742.5 571.5 742.5 + setcachedevice + CharProcs begin load exec end + end + } def + /BuildChar { + 1 index /Encoding get exch get + 1 index /BuildGlyph get exec + } bind def +end +/PSTricksDotFont exch definefont pop + + +%%EndProcSet +%%BeginProcSet: texps.pro 0 0 +%! +TeXDict begin/rf{findfont dup length 1 add dict begin{1 index/FID ne 2 +index/UniqueID ne and{def}{pop pop}ifelse}forall[1 index 0 6 -1 roll +exec 0 exch 5 -1 roll VResolution Resolution div mul neg 0 0]/Metrics +exch def dict begin Encoding{exch dup type/integertype ne{pop pop 1 sub +dup 0 le{pop}{[}ifelse}{FontMatrix 0 get div Metrics 0 get div def} +ifelse}forall Metrics/Metrics currentdict end def[2 index currentdict +end definefont 3 -1 roll makefont/setfont cvx]cvx def}def/ObliqueSlant{ +dup sin S cos div neg}B/SlantFont{4 index mul add}def/ExtendFont{3 -1 +roll mul exch}def/ReEncodeFont{CharStrings rcheck{/Encoding false def +dup[exch{dup CharStrings exch known not{pop/.notdef/Encoding true def} +if}forall Encoding{]exch pop}{cleartomark}ifelse}if/Encoding exch def} +def end + +%%EndProcSet +%%BeginProcSet: special.pro 0 0 +%! +TeXDict begin/SDict 200 dict N SDict begin/@SpecialDefaults{/hs 612 N +/vs 792 N/ho 0 N/vo 0 N/hsc 1 N/vsc 1 N/ang 0 N/CLIP 0 N/rwiSeen false N +/rhiSeen false N/letter{}N/note{}N/a4{}N/legal{}N}B/@scaleunit 100 N +/@hscale{@scaleunit div/hsc X}B/@vscale{@scaleunit div/vsc X}B/@hsize{ +/hs X/CLIP 1 N}B/@vsize{/vs X/CLIP 1 N}B/@clip{/CLIP 2 N}B/@hoffset{/ho +X}B/@voffset{/vo X}B/@angle{/ang X}B/@rwi{10 div/rwi X/rwiSeen true N}B +/@rhi{10 div/rhi X/rhiSeen true N}B/@llx{/llx X}B/@lly{/lly X}B/@urx{ +/urx X}B/@ury{/ury X}B/magscale true def end/@MacSetUp{userdict/md known +{userdict/md get type/dicttype eq{userdict begin md length 10 add md +maxlength ge{/md md dup length 20 add dict copy def}if end md begin +/letter{}N/note{}N/legal{}N/od{txpose 1 0 mtx defaultmatrix dtransform S +atan/pa X newpath clippath mark{transform{itransform moveto}}{transform{ +itransform lineto}}{6 -2 roll transform 6 -2 roll transform 6 -2 roll +transform{itransform 6 2 roll itransform 6 2 roll itransform 6 2 roll +curveto}}{{closepath}}pathforall newpath counttomark array astore/gc xdf +pop ct 39 0 put 10 fz 0 fs 2 F/|______Courier fnt invertflag{PaintBlack} +if}N/txpose{pxs pys scale ppr aload pop por{noflips{pop S neg S TR pop 1 +-1 scale}if xflip yflip and{pop S neg S TR 180 rotate 1 -1 scale ppr 3 +get ppr 1 get neg sub neg ppr 2 get ppr 0 get neg sub neg TR}if xflip +yflip not and{pop S neg S TR pop 180 rotate ppr 3 get ppr 1 get neg sub +neg 0 TR}if yflip xflip not and{ppr 1 get neg ppr 0 get neg TR}if}{ +noflips{TR pop pop 270 rotate 1 -1 scale}if xflip yflip and{TR pop pop +90 rotate 1 -1 scale ppr 3 get ppr 1 get neg sub neg ppr 2 get ppr 0 get +neg sub neg TR}if xflip yflip not and{TR pop pop 90 rotate ppr 3 get ppr +1 get neg sub neg 0 TR}if yflip xflip not and{TR pop pop 270 rotate ppr +2 get ppr 0 get neg sub neg 0 S TR}if}ifelse scaleby96{ppr aload pop 4 +-1 roll add 2 div 3 1 roll add 2 div 2 copy TR .96 dup scale neg S neg S +TR}if}N/cp{pop pop showpage pm restore}N end}if}if}N/normalscale{ +Resolution 72 div VResolution 72 div neg scale magscale{DVImag dup scale +}if 0 setgray}N/psfts{S 65781.76 div N}N/startTexFig{/psf$SavedState +save N userdict maxlength dict begin/magscale true def normalscale +currentpoint TR/psf$ury psfts/psf$urx psfts/psf$lly psfts/psf$llx psfts +/psf$y psfts/psf$x psfts currentpoint/psf$cy X/psf$cx X/psf$sx psf$x +psf$urx psf$llx sub div N/psf$sy psf$y psf$ury psf$lly sub div N psf$sx +psf$sy scale psf$cx psf$sx div psf$llx sub psf$cy psf$sy div psf$ury sub +TR/showpage{}N/erasepage{}N/copypage{}N/p 3 def @MacSetUp}N/doclip{ +psf$llx psf$lly psf$urx psf$ury currentpoint 6 2 roll newpath 4 copy 4 2 +roll moveto 6 -1 roll S lineto S lineto S lineto closepath clip newpath +moveto}N/endTexFig{end psf$SavedState restore}N/@beginspecial{SDict +begin/SpecialSave save N gsave normalscale currentpoint TR +@SpecialDefaults count/ocount X/dcount countdictstack N}N/@setspecial{ +CLIP 1 eq{newpath 0 0 moveto hs 0 rlineto 0 vs rlineto hs neg 0 rlineto +closepath clip}if ho vo TR hsc vsc scale ang rotate rwiSeen{rwi urx llx +sub div rhiSeen{rhi ury lly sub div}{dup}ifelse scale llx neg lly neg TR +}{rhiSeen{rhi ury lly sub div dup scale llx neg lly neg TR}if}ifelse +CLIP 2 eq{newpath llx lly moveto urx lly lineto urx ury lineto llx ury +lineto closepath clip}if/showpage{}N/erasepage{}N/copypage{}N newpath}N +/@endspecial{count ocount sub{pop}repeat countdictstack dcount sub{end} +repeat grestore SpecialSave restore end}N/@defspecial{SDict begin}N +/@fedspecial{end}B/li{lineto}B/rl{rlineto}B/rc{rcurveto}B/np{/SaveX +currentpoint/SaveY X N 1 setlinecap newpath}N/st{stroke SaveX SaveY +moveto}N/fil{fill SaveX SaveY moveto}N/ellipse{/endangle X/startangle X +/yrad X/xrad X/savematrix matrix currentmatrix N TR xrad yrad scale 0 0 +1 startangle endangle arc savematrix setmatrix}N end + +%%EndProcSet +%%BeginProcSet: color.pro 0 0 +%! +TeXDict begin/setcmykcolor where{pop}{/setcmykcolor{dup 10 eq{pop +setrgbcolor}{1 sub 4 1 roll 3{3 index add neg dup 0 lt{pop 0}if 3 1 roll +}repeat setrgbcolor pop}ifelse}B}ifelse/TeXcolorcmyk{setcmykcolor}def +/TeXcolorrgb{setrgbcolor}def/TeXcolorgrey{setgray}def/TeXcolorgray{ +setgray}def/TeXcolorhsb{sethsbcolor}def/currentcmykcolor where{pop}{ +/currentcmykcolor{currentrgbcolor 10}B}ifelse/DC{exch dup userdict exch +known{pop pop}{X}ifelse}B/GreenYellow{0.15 0 0.69 0 setcmykcolor}DC +/Yellow{0 0 1 0 setcmykcolor}DC/Goldenrod{0 0.10 0.84 0 setcmykcolor}DC +/Dandelion{0 0.29 0.84 0 setcmykcolor}DC/Apricot{0 0.32 0.52 0 +setcmykcolor}DC/Peach{0 0.50 0.70 0 setcmykcolor}DC/Melon{0 0.46 0.50 0 +setcmykcolor}DC/YellowOrange{0 0.42 1 0 setcmykcolor}DC/Orange{0 0.61 +0.87 0 setcmykcolor}DC/BurntOrange{0 0.51 1 0 setcmykcolor}DC +/Bittersweet{0 0.75 1 0.24 setcmykcolor}DC/RedOrange{0 0.77 0.87 0 +setcmykcolor}DC/Mahogany{0 0.85 0.87 0.35 setcmykcolor}DC/Maroon{0 0.87 +0.68 0.32 setcmykcolor}DC/BrickRed{0 0.89 0.94 0.28 setcmykcolor}DC/Red{ +0 1 1 0 setcmykcolor}DC/OrangeRed{0 1 0.50 0 setcmykcolor}DC/RubineRed{ +0 1 0.13 0 setcmykcolor}DC/WildStrawberry{0 0.96 0.39 0 setcmykcolor}DC +/Salmon{0 0.53 0.38 0 setcmykcolor}DC/CarnationPink{0 0.63 0 0 +setcmykcolor}DC/Magenta{0 1 0 0 setcmykcolor}DC/VioletRed{0 0.81 0 0 +setcmykcolor}DC/Rhodamine{0 0.82 0 0 setcmykcolor}DC/Mulberry{0.34 0.90 +0 0.02 setcmykcolor}DC/RedViolet{0.07 0.90 0 0.34 setcmykcolor}DC +/Fuchsia{0.47 0.91 0 0.08 setcmykcolor}DC/Lavender{0 0.48 0 0 +setcmykcolor}DC/Thistle{0.12 0.59 0 0 setcmykcolor}DC/Orchid{0.32 0.64 0 +0 setcmykcolor}DC/DarkOrchid{0.40 0.80 0.20 0 setcmykcolor}DC/Purple{ +0.45 0.86 0 0 setcmykcolor}DC/Plum{0.50 1 0 0 setcmykcolor}DC/Violet{ +0.79 0.88 0 0 setcmykcolor}DC/RoyalPurple{0.75 0.90 0 0 setcmykcolor}DC +/BlueViolet{0.86 0.91 0 0.04 setcmykcolor}DC/Periwinkle{0.57 0.55 0 0 +setcmykcolor}DC/CadetBlue{0.62 0.57 0.23 0 setcmykcolor}DC +/CornflowerBlue{0.65 0.13 0 0 setcmykcolor}DC/MidnightBlue{0.98 0.13 0 +0.43 setcmykcolor}DC/NavyBlue{0.94 0.54 0 0 setcmykcolor}DC/RoyalBlue{1 +0.50 0 0 setcmykcolor}DC/Blue{1 1 0 0 setcmykcolor}DC/Cerulean{0.94 0.11 +0 0 setcmykcolor}DC/Cyan{1 0 0 0 setcmykcolor}DC/ProcessBlue{0.96 0 0 0 +setcmykcolor}DC/SkyBlue{0.62 0 0.12 0 setcmykcolor}DC/Turquoise{0.85 0 +0.20 0 setcmykcolor}DC/TealBlue{0.86 0 0.34 0.02 setcmykcolor}DC +/Aquamarine{0.82 0 0.30 0 setcmykcolor}DC/BlueGreen{0.85 0 0.33 0 +setcmykcolor}DC/Emerald{1 0 0.50 0 setcmykcolor}DC/JungleGreen{0.99 0 +0.52 0 setcmykcolor}DC/SeaGreen{0.69 0 0.50 0 setcmykcolor}DC/Green{1 0 +1 0 setcmykcolor}DC/ForestGreen{0.91 0 0.88 0.12 setcmykcolor}DC +/PineGreen{0.92 0 0.59 0.25 setcmykcolor}DC/LimeGreen{0.50 0 1 0 +setcmykcolor}DC/YellowGreen{0.44 0 0.74 0 setcmykcolor}DC/SpringGreen{ +0.26 0 0.76 0 setcmykcolor}DC/OliveGreen{0.64 0 0.95 0.40 setcmykcolor} +DC/RawSienna{0 0.72 1 0.45 setcmykcolor}DC/Sepia{0 0.83 1 0.70 +setcmykcolor}DC/Brown{0 0.81 1 0.60 setcmykcolor}DC/Tan{0.14 0.42 0.56 0 +setcmykcolor}DC/Gray{0 0 0 0.50 setcmykcolor}DC/Black{0 0 0 1 +setcmykcolor}DC/White{0 0 0 0 setcmykcolor}DC end + +%%EndProcSet +%%BeginFont: CMR12 +%!PS-AdobeFont-1.1: CMR12 1.0 +%%CreationDate: 1991 Aug 20 16:38:05 +% Copyright (C) 1997 American Mathematical Society. All Rights Reserved. +11 dict begin +/FontInfo 7 dict dup begin +/version (1.0) readonly def +/Notice (Copyright (C) 1997 American Mathematical Society. All Rights Reserved) readonly def +/FullName (CMR12) readonly def +/FamilyName (Computer Modern) readonly def +/Weight (Medium) readonly def +/ItalicAngle 0 def +/isFixedPitch false def +end readonly def +/FontName /CMR12 def +/PaintType 0 def +/FontType 1 def +/FontMatrix [0.001 0 0 0.001 0 0] readonly def +/Encoding 256 array +0 1 255 {1 index exch /.notdef put} for +dup 49 /one put +readonly def +/FontBBox{-34 -251 988 750}readonly def +currentdict end +currentfile eexec +D9D66F633B846A97B686A97E45A3D0AA052A014267B7904EB3C0D3BD0B83D891 +016CA6CA4B712ADEB258FAAB9A130EE605E61F77FC1B738ABC7C51CD46EF8171 +9098D5FEE67660E69A7AB91B58F29A4D79E57022F783EB0FBBB6D4F4EC35014F +D2DECBA99459A4C59DF0C6EBA150284454E707DC2100C15B76B4C19B84363758 +469A6C558785B226332152109871A9883487DD7710949204DDCF837E6A8708B8 +2BDBF16FBC7512FAA308A093FE5CF4E9D2405B169CD5365D6ECED5D768D66D6C +68618B8C482B341F8CA38E9BB9BAFCFAAD9C2F3FD033B62690986ED43D9C9361 +3645B82392D5CAE11A7CB49D7E2E82DCD485CBA04C77322EB2E6A79D73DC194E +59C120A2DABB9BF72E2CF256DD6EB54EECBA588101ABD933B57CE8A3A0D16B28 +51D7494F73096DF53BDC66BBF896B587DF9643317D5F610CD9088F9849126F23 +DDE030F7B277DD99055C8B119CAE9C99158AC4E150CDFC2C66ED92EBB4CC092A +AA078CE16247A1335AD332DAA950D20395A7384C33FF72EAA31A5B89766E635F +45C4C068AD7EE867398F0381B07CB94D29FF097D59FF9961D195A948E3D87C31 +821E9295A56D21875B41988F7A16A1587050C3C71B4E4355BB37F255D6B237CE +96F25467F70FA19E0F85785FF49068949CCC79F2F8AE57D5F79BB9C5CF5EED5D +9857B9967D9B96CDCF73D5D65FF75AFABB66734018BAE264597220C89FD17379 +26764A9302D078B4EB0E29178C878FD61007EEA2DDB119AE88C57ECFEF4B71E4 +140A34951DDC3568A84CC92371A789021A103A1A347050FDA6ECF7903F67D213 +1D0C7C474A9053866E9C88E65E6932BA87A73686EAB0019389F84D159809C498 +1E7A30ED942EB211B00DBFF5BCC720F4E276C3339B31B6EABBB078430E6A09BB +377D3061A20B1EB98796B8607EECBC699445EAA866C38E02DF59F5EDD378303A +0733B90E7835C0AAF32BA04F1566D8161EA89CD4D14DDB953F8B910BFC8A7F03 +5020F55EF8FC2640ADADA156F6CF8F2EB6610F7EE8874A26CBE7CD154469B9F4 +ED76886B3FB679FFDEB59BB6C55AF7087BA48B75EE2FB374B19BCC421A963E15 +FE05ECAAF9EECDF4B2715010A320102E6F8CCAA342FA11532671CD9B29E43E50 +0DDD39AA60A89537A4286846D3B157372553EBA80472B69EB167FC456F6D9994 +EDCB14D165A89144CD8FAA40BAAF767E880172FF8D6D8F5658A45BBAB2764D65 +5EF40FF9C69878DEF326E32397C36C5632486A97C6F36F488F57F67F26E44E8C +F57EF76AE4A24BCBD128A83274528DB9962F55659FF3E794F56FD6E2AB2080CC +2FEFC831E43B311B2716FE5D14890F16DF0F6D563BF5A2DB37DE4A02C25F55FE +EE7C4808887CB4D21AAD4C8589F04FF484EB715134014A79BD895E3B48C72C88 +0E6D1A317ABF010A4104A07813781180DB221A43BC6E19BBF2E9C9042B01126C +CCDC015D5155237EBE9A41FC5C8763F95D144AD84D3C5A96BE90 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +0000000000000000000000000000000000000000000000000000000000000000 +cleartomark +%%EndFont +TeXDict begin 39139632 55387786 1000 600 600 (draftmarkpic.dvi) +@start /Fa 206[49 49[{}1 99.6264 /CMR12 rf end +%%EndProlog +%%BeginSetup +%%Feature: *Resolution 600dpi +TeXDict begin +%%PaperSize: A4 + end +%%EndSetup +%%Page: 1 1 +TeXDict begin 1 0 bop 0 TeXcolorgray Black 0 TeXcolorgray +1 0 0 0 TeXcolorcmyk 3 setlinewidth np 876 709 12 0 360.001 +arc st 3 setlinewidth np 876 709 35.4 0 360.001 arc st +3 setlinewidth np 876 709 70.8 0 360.001 arc st 3 setlinewidth +np 876 709 106.2 0 360.001 arc st 3 setlinewidth np 876 +709 141.6 0 360.001 arc st 3 setlinewidth np 876 709 +177 0 360.001 arc st 3 setlinewidth np 876 709 212.4 +0 360.001 arc st 3 setlinewidth np 876 709 247.8 0 360.001 +arc st 3 setlinewidth np 876 709 283.2 0 360.001 arc +st 3 setlinewidth np 876 709 318.6 0 360.001 arc st 3 +setlinewidth np 876 709 354.6 0 360.001 arc st 3 setlinewidth +np 876 709 390 0 360.001 arc st 3 setlinewidth np 876 +709 425.4 0 360.001 arc st 3 setlinewidth np 876 709 +460.8 0 360.001 arc st 3 setlinewidth np 876 709 496.2 +0 360.001 arc st 0.75 0.5 0.25 TeXcolorrgb 3 setlinewidth +np 1112 709 12 0 360.001 arc st 3 setlinewidth np 1112 +709 23.4 0 360.001 arc st 3 setlinewidth np 1112 709 +35.4 0 360.001 arc st 3 setlinewidth np 1112 709 47.4 +0 360.001 arc st 3 setlinewidth np 1112 709 58.8 0 360.001 +arc st 3 setlinewidth np 1112 709 70.8 0 360.001 arc +st 3 setlinewidth np 1112 709 82.8 0 360.001 arc st 3 +setlinewidth np 1112 709 94.2 0 360.001 arc st 3 setlinewidth +np 1112 709 106.2 0 360.001 arc st 3 setlinewidth np +1112 709 118.2 0 360.001 arc st 3 setlinewidth np 1112 +709 130.2 0 360.001 arc st 3 setlinewidth np 1112 709 +141.6 0 360.001 arc st 3 setlinewidth np 1112 709 153.6 +0 360.001 arc st 3 setlinewidth np 1112 709 165.6 0 360.001 +arc st 3 setlinewidth np 1112 709 177 0 360.001 arc st +3 setlinewidth np 1112 709 189 0 360.001 arc st 3 setlinewidth +np 1112 709 201 0 360.001 arc st 3 setlinewidth np 1112 +709 212.4 0 360.001 arc st 3 setlinewidth np 1112 709 +224.4 0 360.001 arc st 3 setlinewidth np 1112 709 236.4 +0 360.001 arc st 0 1 0 0 TeXcolorcmyk 3 setlinewidth +np 640 709 12 0 360.001 arc st 3 setlinewidth np 640 +709 23.4 0 360.001 arc st 3 setlinewidth np 640 709 35.4 +0 360.001 arc st 3 setlinewidth np 640 709 47.4 0 360.001 +arc st 3 setlinewidth np 640 709 58.8 0 360.001 arc st +3 setlinewidth np 640 709 70.8 0 360.001 arc st 3 setlinewidth +np 640 709 82.8 0 360.001 arc st 3 setlinewidth np 640 +709 94.2 0 360.001 arc st 3 setlinewidth np 640 709 106.2 +0 360.001 arc st 3 setlinewidth np 640 709 118.2 0 360.001 +arc st 3 setlinewidth np 640 709 130.2 0 360.001 arc +st 3 setlinewidth np 640 709 141.6 0 360.001 arc st 3 +setlinewidth np 640 709 153.6 0 360.001 arc st 3 setlinewidth +np 640 709 165.6 0 360.001 arc st 3 setlinewidth np 640 +709 177 0 360.001 arc st 3 setlinewidth np 640 709 189 +0 360.001 arc st 3 setlinewidth np 640 709 201 0 360.001 +arc st 3 setlinewidth np 640 709 212.4 0 360.001 arc +st 3 setlinewidth np 640 709 224.4 0 360.001 arc st 3 +setlinewidth np 640 709 236.4 0 360.001 arc st 1 0.5 0 +TeXcolorrgb 3 setlinewidth np 876 946 12 0 360.001 arc +st 3 setlinewidth np 876 946 23.4 0 360.001 arc st 3 +setlinewidth np 876 946 35.4 0 360.001 arc st 3 setlinewidth +np 876 946 47.4 0 360.001 arc st 3 setlinewidth np 876 +946 58.8 0 360.001 arc st 3 setlinewidth np 876 946 70.8 +0 360.001 arc st 3 setlinewidth np 876 946 82.8 0 360.001 +arc st 3 setlinewidth np 876 946 94.2 0 360.001 arc st +3 setlinewidth np 876 946 106.2 0 360.001 arc st 3 setlinewidth +np 876 946 118.2 0 360.001 arc st 3 setlinewidth np 876 +946 130.2 0 360.001 arc st 3 setlinewidth np 876 946 +141.6 0 360.001 arc st 3 setlinewidth np 876 946 153.6 +0 360.001 arc st 3 setlinewidth np 876 946 165.6 0 360.001 +arc st 3 setlinewidth np 876 946 177 0 360.001 arc st +3 setlinewidth np 876 946 189 0 360.001 arc st 3 setlinewidth +np 876 946 201 0 360.001 arc st 3 setlinewidth np 876 +946 212.4 0 360.001 arc st 3 setlinewidth np 876 946 +224.4 0 360.001 arc st 3 setlinewidth np 876 946 236.4 +0 360.001 arc st 0 1 0 TeXcolorrgb 3 setlinewidth np +876 473 12 0 360.001 arc st 3 setlinewidth np 876 473 +23.4 0 360.001 arc st 3 setlinewidth np 876 473 35.4 +0 360.001 arc st 3 setlinewidth np 876 473 47.4 0 360.001 +arc st 3 setlinewidth np 876 473 58.8 0 360.001 arc st +3 setlinewidth np 876 473 70.8 0 360.001 arc st 3 setlinewidth +np 876 473 82.8 0 360.001 arc st 3 setlinewidth np 876 +473 94.2 0 360.001 arc st 3 setlinewidth np 876 473 106.2 +0 360.001 arc st 3 setlinewidth np 876 473 118.2 0 360.001 +arc st 3 setlinewidth np 876 473 130.2 0 360.001 arc +st 3 setlinewidth np 876 473 141.6 0 360.001 arc st 3 +setlinewidth np 876 473 153.6 0 360.001 arc st 3 setlinewidth +np 876 473 165.6 0 360.001 arc st 3 setlinewidth np 876 +473 177 0 360.001 arc st 3 setlinewidth np 876 473 189 +0 360.001 arc st 3 setlinewidth np 876 473 201 0 360.001 +arc st 3 setlinewidth np 876 473 212.4 0 360.001 arc +st 3 setlinewidth np 876 473 224.4 0 360.001 arc st 3 +setlinewidth np 876 473 236.4 0 360.001 arc st 1 0.5 0 +TeXcolorrgb 0 1 0 0 TeXcolorcmyk 0.75 0.5 0.25 TeXcolorrgb +1 0 0 0 TeXcolorcmyk 0 TeXcolorgray 0 TeXcolorgray 1852 +5637 a Fa(1)p 0 TeXcolorgray eop end +%%Trailer + +userdict /end-hook known{end-hook}if +%%EOF diff --git a/Master/texmf-dist/doc/latex/xwatermark/Graphics/xwatermarkpic.pdf b/Master/texmf-dist/doc/latex/xwatermark/Graphics/xwatermarkpic.pdf new file mode 100644 index 00000000000..7e7ef09d83f Binary files /dev/null and b/Master/texmf-dist/doc/latex/xwatermark/Graphics/xwatermarkpic.pdf differ diff --git a/Master/texmf-dist/doc/latex/xwatermark/README b/Master/texmf-dist/doc/latex/xwatermark/README new file mode 100644 index 00000000000..09be14a417f --- /dev/null +++ b/Master/texmf-dist/doc/latex/xwatermark/README @@ -0,0 +1,35 @@ +This is the README file for 'xwatermark' package, version 1.3. + +This package puts user-specified watermarks (graphics and arbitrary texts) +on select pages of documents. It is more general than the packages +'draftwatermark' by Sergio Callegari (2006), 'watermark' by Alexander +Rozhenko (2004), and 'draftmark' by Ahmed Musa (2009). The advantages of +xwatermark over these packages include: the user can specify the +watermark and color, the watermark position and orientation, +the page(s) (all pages, odd pages, even pages, a particular page number, +and a range of pages) on which the watermark should appear, and all the +options are passed directly to package instead of being defined by macros. +It extends the functionality of the 'draftmark' package to permit the +direct use of graphic watermarks. + +There is also the macro \xwatermarksetup, which can be used to dynamically +specify watermark properties for each page or range of pages. With the +'xcolor' package (loaded by this package), all colors and those defined +within the user document can be passed to this package. + +This work may be distributed and/or modified under the conditions +of the LaTeX Project Public License, either version 1.3 of this +license or any later version. The latest version of this license +is in http://www.latex-project.org/lppl.txt and version 1.3 or later +is part of all distributions of LaTeX version 2005/12/01 or later. + +The LPPL maintenance status of this software is 'author-maintained'. + +This software is provided 'as it is', without warranty of any +kind, either expressed or implied, including, but not limited to, +the implied warranties of merchantability and fitness for a +particular purpose. + +Copyright (c) 2009 Ahmed Musa (a.musa@rocketmail.com). + +End of README file. \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/xwatermark/xwatermark-examples-1dot3.tex b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-examples-1dot3.tex new file mode 100644 index 00000000000..da27ab7eacf --- /dev/null +++ b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-examples-1dot3.tex @@ -0,0 +1,180 @@ +%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% +% This is file xwatermark-examples.tex, which demonstrates the use % +% of the xwatermark package, version 1.3. % +% % +% (c) Ahmed Musa 2009 % +%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% +\documentclass[a4paper,11pt,final]{article} +\InputIfFileExists{xwatermark-guide.cfg}{}{% + \errmessage{No file xwatermark-guide.cfg or wrong path}} +\begin{document} +\MakeShortVerb{\+} +\title{\bfseries The \texttt{\TC{blue}{xwatermark}} + \xcopyright{Package}{red}\\[1ex] + \large Version 1.3\\[2ex] + \Large EXAMPLES} +\author{Ahmed Musa\\[1ex]University of Central Lancashire\\ + Preston PR1 2HE, United Kingdom\\[1ex] + \email{a.musa@rocketmail.com}} +\maketitle + +\pagestyle{fancyplain} + +\watermarksetup{fontfamily=bch,color=magenta!60!blue!25,align=center, + angle=45,scale=0.7,xcoord=0,ycoord=0, + textmark=\xtempd +} + +\section{Introduction} +\lletter{T}{he source} file of this document is +xwatermark-examples.tex+ and is available from CTAN as part of the +xwatermark+ bundle. A full user guide is also part of the bundle. + +\section{User interface} +\lletter{T}{he package} may be loaded with full options such as in the following two sample statements: + +\begin{xwverbatim} +\usepackage[printwatermark=true,allpages=true, + fontfamily=pag,color=gray!25,textmark=DRAFT, + angle=45,scale=0.8,xcoord=0,ycoord=0]{xwatermark} + +\usepackage[printwatermark,pages=1-4,fontfamily=phv, + color=red!55!yellow!50,textmark=CONFIDENTIAL,angle=55, + scale=0.8,xcoord=20,ycoord=10]{xwatermark}. +\end{xwverbatim} + +The option +printwatermark=true+ (or +printwatermark=false+) and the one that specifies the pages on which the watermark should appear (+allpages+, +oddpages+, +evenpages+, \etc) should be set when loading the package, \eg, +\begin{xwverbatim} +\usepackage[printwatermark,evenpages]{xwatermark}. +\end{xwverbatim} +The remaining options can be set dynamically using the +\watermarksetup+ macro. These other options can, if desired, be set for each page of the document. +\par +\lipsum[1-3] +\watermarksetup{textmark={}} +\watermarksetup{fontfamily=put,color=white,fontsize=3cm,scale=1, + picbb=112 619 242 751,picscale=3,picfile={./Graphics/xwatermarkpic},picfilex=eps, + width=\paperheight,align=center,angle=0,xcoord=0,ycoord=0 +} + +\newpage +\lipsum[1-4] +\watermarksetup{textmark={}} +\watermarksetup{picfile={}} +\watermarksetup{fontfamily=put,color=white,fontsize=3cm,scale=1, + width=\paperwidth,align=center,angle=45,xcoord=0,ycoord=0, + textmark={% + \xwcolorbox{framesep=5pt,framerule=6pt,fillcolor=yellow, + textcolor=white,align=center,width=.9\paperwidth, + text={New\\[.25ex] + \color{green}\framebox[1.1\width]{\TC{white}{Systems}} + \\[.25ex]\color{white}Department} + } + } +} + +\newpage +\lipsum[1-4] +\watermarksetup{fontfamily=pbk,color=gray!35,fontsize=3cm,fontseries=b, + align=center,angle=45,scale=1,xcoord=0,ycoord=0,width=\paperwidth, + textmark={% + \xwminipage{width=\paperwidth,align=center,textcolor=gray!35, + framesep=4pt,framerule=4pt,framecolor=green, + text={\raggedright\textcolor{blue!65}{Restricted}\\[.25ex]\hfill Document + }}} +} + +\newpage +\lipsum[1-4] +\watermarksetup{fontfamily=pbk,color=gray!35,fontsize=3cm,fontseries=b, + align=center,angle=90,scale=.88,xcoord=0,ycoord=-2,width=\paperheight, + textmark={% + \xwminipage{framesep=15pt,framerule=6pt,framecolor=orange, + width=1.2\textheight,align=center,textcolor=gray!35!red, + text={\raggedright{\color{blue!65}Restricted}\\[.25ex]\hfill Document} + }} +} + +\newpage +\lipsum[1-4] +\watermarksetup{fontfamily=bch,color=purple!70, + width=\paperheight,angle=45,fontsize=5cm,scale=.7,xcoord=-30,ycoord=7, + textmark={\fboxsep=15pt\fboxrule=6pt\hspace{.5cm} + \fbox{\TC{orange!85}{@}} + \\[.25ex]\fboxsep=15pt\fboxrule=16pt\color{cyan} + \fbox{\TC{red!85}{Intel}\TC{orange!85}{BiZ}\TC{red!45}{Forum}}} +} + +\newpage +\lipsum[1-4] +\fboxsep=5pt\fboxrule=4pt +\watermarksetup{fontfamily=cmss,angle=90,fontsize=5cm,fontseries=bx, + scale=.8,align=center,color=red!75!blue!25,xcoord=-65,ycoord=0, + textmark={=\fbox{\color{red!65}Official}=\\[.25ex]Document} +} + +\newpage +\lipsum[1-4] +\watermarksetup{showcenter=false,fontfamily=phv,angle=90,scale=.8, + align=center,color=yellow!75,coordunit=pc,xcoord=0,ycoord=0, + width=1.3\textheight, + textmark={% + \xwminipage{framesep=10pt,framerule=6pt,framecolor=yellow, + width=1.3\textheight,align=center, + text={\color{red!55}Control\\[3.4ex]\color{violet!55}Version} + } + } +} + +\newpage +\lipsum[1-4] +\colorlet{lightblue}{cyan!50!blue!25} +\watermarksetup{fontfamily=pnc,fontsize=5cm,color=lightblue,coordunit, + width=\paperheight,angle=50,scale=0.8,xcoord=0,ycoord=0, + textmark={% + \xwcolorbox{width=\paperheight,fillcolor=cyan!50!blue!25,textcolor=blue, + framesep=10pt,framerule=6pt,text=PENDING% + } + } +} + +\newpage +\lipsum[1-4] +\watermarksetup{fontfamily=bch,color=xyellow3,coordunit, + align=center,angle=90,scale=0.7,xcoord=0,ycoord=-5,width=\paperheight, + textmark={\color{teal!55}\fboxsep=10pt\fboxrule=6pt\fbox{% + \xwminipage{width=\paperheight,align=center,text={% + {\color{purple!55}\fbox{\color{xyellow3}% + \fbox{\textcolor{red}{Unrestricted}}}}\\[.25ex] + \color{xyellow3}For General\\[.25ex] Circulation + }}}} +} + +\newpage +\lipsum[1-4] +\watermarksetup{showcenter,fontfamily=txtt,fontseries=m,color=red, + align=center,scale=0.7,angle=0,xcoord=0,ycoord=0, + textmark={ + \xwminipage{width=\paperwidth,text={% + \xwminipage{width=\paperwidth,align=left,textcolor=magenta, + text={\TeX\\[.1ex] \LaTeX}} + \\[1ex] + \xwminipage{width=\paperwidth,align=center,textcolor=green, + text={\TeX\\[.1ex] \LaTeX}} + \\[1ex] + \xwminipage{width=\paperwidth,align=right,textcolor=orange, + text={\TeX\\[.1ex] \LaTeX}} + }}} +} + +\newpage +\lipsum[1-4] +\watermarksetup{showcenter=false,fontfamily=cmr,fontsize=11pt, + fontseries=m,color=red,coordunit=mm,align=center, + scale=1,angle=90,xcoord=-77,ycoord=62, + textmark={\fboxsep=4pt\fboxrule=4pt\fbox{% + \xwminipage{width={0.6\textwidth},textcolor=black,align=left, + text={\sffamily + This text was placed here using the \stya{xwatermark} package. + One of the wonders of \TC{red}{\TeX}\bfseries{!} + }}}} +} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot3.pdf b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot3.pdf new file mode 100644 index 00000000000..c0797b11f79 Binary files /dev/null and b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot3.pdf differ diff --git a/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot3.tex b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot3.tex new file mode 100644 index 00000000000..bfe8d2a307c --- /dev/null +++ b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot3.tex @@ -0,0 +1,554 @@ +%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% +% This is file xwatermark-guide.tex, the documentation for the % +% xwatermark package, version 1.3. % +% % +% (c) Ahmed Musa 2009 (a.musa@rocketmail.com) % +%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% +\documentclass[a4paper,11pt,final]{article} +\InputIfFileExists{xwatermark-guide.cfg}{}{% + \errmessage{No file xwatermark-guide.cfg or wrong path}} +\begin{document} +\MakeShortVerb{\+} +\watermarksetup{fontfamily=phv,fontsize=11pt,fontseries=m,align=center, + height=\paperheight,width=\paperheight,angle=90,scale=1,xcoord=0,ycoord=-1, + textmark=\xtempa +} +\label{page:one} + +\title{\bfseries The \texttt{\TC{blue}{xwatermark}} + \xcopyright{Package}{red}\kern-.25em\FootnoteB{\ding{'111}}{The \stya{xwatermark} + bundle is available at the Comprehensive \nTeX Archive Network + \citeurl{http://tug.ctan.org/tex-archive/macros/latex/contrib/xwatermark}} + \\[1ex]\large Version 1.3 +} +\author{Ahmed Musa\\[1ex]University of Central Lancashire\\ + Preston PR1 2HE, United Kingdom\\[1ex] + \email{a.musa@rocketmail.com} +} +\xmaketitle[empty] + +\ywcolorbox{framesep=5pt,framerule=2pt,framecolor=red!55, + align=justified,fillcolor=gray!25,width=\hsize, + text=\xtempb +} + +\bgroup\small\tableofcontents\egroup + +\watermarksetup{textmark={}} +\watermarksetup{fontfamily=phv,fontsize=11pt,fontseries=m,align=center, + height=\paperheight,width=\paperheight,angle=90,scale=1,xcoord=0,ycoord=-1, + textmark=\xtempc +} + +\section{Introduction} + +\lletter{T}{his package} puts user-specified watermarks, pictures and/or arbitrary texts on select pages of documents. It has more functionality and dynamism than, for example, the packages \styb{draftcopy}~\cite{JVollmer2002}, \styb{draftwatermark}~\cite{SCallegari2006}, \styb{watermark}~\cite{ARozhenko2004}, and \styb{draftmark}~\cite{AMusa2009}. The advantages of \stya{xwatermark} package over these earlier packages include: both text and graphic watermarks are admissible; the user can specify his/her own watermark and color, the watermark position, orientation, the page(s) (all pages, odd pages, even pages, a particular page, and a range of pages) on which the watermark should appear; and all the options are passed directly to the package instead of being defined in the source file by several macros. Moreover, all these options can be customized for individual pages and segments of the document. This is achieved by the provision of the user-friendly \wmsetup macro, by which the user can dynamically set the watermark properties for each page or range of pages. The user is relieved of the need to remember and deploy several macros. + +With the \styb{xcolor} package (loaded by this package), all colors (including \styb{white}, shades like \styb{-red!75!green!50}, and those defined within the user document) can be passed to this package. And, as mentioned above, both texts and pictures can be submitted as watermarks to the package. + +This package uses Heiko Oberdiek's shipout hooks from the \styb{atbegshi} package~\cite{HOberdiek2008}. + +There are global and local package options. These are listed and explained in Appendix~\ref{sec:PackageOptions}. + +\section{User interface} +\lletter{T}{he subsections} under this section describe how the user may interface with (\ie, use) the facilities of the package. + +\subsection{Loading the package} +In the case of text watermarks, the package may be loaded with options such as in +\begin{xwverbatim} +\usepackage[ + printwatermark=true,allpages=true,fontfamily=pag, + color=gray!25,textmark=I am happy,angle=45,fontsize=5cm, + width=\paperwidth,fontseries=b,scale=0.8, + xcoord=0,ycoord=0 + ]{xwatermark} +\end{xwverbatim} +or +\begin{xwverbatim} +\usepackage[printwatermark,pages=1-4,fontfamily=phv, + fontsize=12pt,width=\paperheight,angle=55,scale=0.8, + xcoord=20,ycoord=10,color=red!55!yellow!50, + textmark=CONFIDENTIAL]{xwatermark}. +\end{xwverbatim} + +By design, the boolean option \stya{printwatermark} should not appear in the macro \wmsetup but in the statement \usepackxwm or in the \dclass options list. It is disabled before \cmdb{\begin\{document\}}. + +When boolean options (\eg, \stya{printwatermark} and \stya{allpages}) are passed without values, they are assumed implicitly \stya{true} by the package. The option \stya{printwatermark} may be set (\stya{printwatermark(=true)} or \stya{printwatermark=false}) when invoking the package, within the options list of either \dclass or \usepackxwm. Otherwise, the package will assume it to be \stya{true}. + +The \stya{textmark} key applies to text watermarks, for which all the font properties can be selected. It does not apply to graphic watermarks. For graphic watermarks you need the keys: \stya{picfile} (the graphic/picture filename, with its full path but without its extension), and \stya{picfilex} (the file extension). Admissible file extensions are \stya{eps}, \stya{pdf}, \stya{png}, and \stya{jpeg}; they should be submitted without the dot. Additional information is needed (see section~\ref{ssec:Picture-waterma}). + +The following points should be noted about the values of the \stya{textmark} key: +\begin{itemize} +\item The value of the \stya{textmark} may be any arbitrary multiline text, such as +\begin{xwverbatim} +textmark={Hello world,\\[.25\baselineskip] We're here}, +\end{xwverbatim} +\item The value of \stya{textmark} may be arbitrary (blocks of) texts or even kernel or package commands, but not filenames on their own (except when submitted within, \eg, \cmdb{\includegraphics}). +\item If the \stya{textmark}'s value contains one or more commas, then it has to be enclosed in braces (as above), otherwise \texorlatex will report an error. In any case, it is always safer to enclose long mark texts in braces. However, \emph{active characters} need further special treatment (see section~\ref{sec:Active-charact}). +\item The \stya{width} (=markwidth) should be properly selected to match user's taste and the length of the \stya{textmark}. It may be set to \cmdb{\paperwidth} or \cmdb{\paperheight}, or any arbitrary length. Its default value is preset to \cmdb{\paperheight}. Sometimes it might also be necessary to suitably select the \stya{height} (=markheight), whose default value is \cmdb{\paperwidth}. +\item If the longest line of a \stya{textmark} is longer than the parameters \cmdb{\paperwidth} and/or \cmdb{\paperheight} (depending on the orientation of the \stya{textmark}), then the \stya{fontsize} and \stya{scale} options will have to be suitably chosen. +\end{itemize} + +The package boolean option \stya{allpages} in +\begin{xwverbatim} +\usepackage[printwatermark,allpages]{xwatermark}, +\end{xwverbatim} +which specifies the pages that should receive watermarks, may be replaced by any of the following options: +\begin{xwverbatim} +firstpage, oddpages, evenpages, page=x, pages=x-x, +\end{xwverbatim} +where \stya{x} means any page number. If you enter, for example, \stya{pages=0-10}, all pages from 1~to 10 will have watermark. On the other hand, an entry like \stya{pages=10-0} will print watermark on page 10 only. If no page-specifying option is given, watermark will appear only on the first page and a warning message will be entered in the transcript file. When passing \stya{page=x} or \stya{pages=x-x} as option to package, don't forget to include the equality sign (\stya{=}), otherwise the option will be ignored by the package and a warning message will logged in the transcript file. + +When setting package options either in \cmdb{\usepackage} or \dclass (or indeed in \wmsetup, \cmda{\xwminipage} or \cmda{\xwcolorbox}), the following points should be noted: +\begin{itemize} +\item Multiple lines are permitted but not blank lines. +\item Extra paces between options and words are ignored. +\item No active characters (those of catcode 13) are allowed (see section~\ref{sec:Active-charact}). +\item Options are basically order-agnostic. +\end{itemize} +Thus, \eg, the following statement +\begin{xwverbatim} +\usepackage + [ printwatermark = true, scale = 0.8, + xcoord = 0, ycoord = 0, fontfamily = pag, + allpages = true, + color = gray!25, mark = I am happy, angle = 45, + fontsize=5cm, + width = \paperwidth, fontseries = b] + {xwatermark} +\end{xwverbatim} +is equivalent to +\begin{xwverbatim} +\usepackage[printwatermark,allpages=true,fontfamily=pag, + color=gray!35,textmark=I am happy,angle=45,fontsize=5cm, + width=\paperwidth,fontseries=b,scale=0.8, + xcoord=0,ycoord=0]{xwatermark}. +\end{xwverbatim} + +\subsection{Graphic watermarks\label{ssec:Picture-waterma}} +For graphic/picture watermarks, the user can issue, \eg, +\begin{xwverbatim} +\usepackage[ + printwatermark,page=2, + picfile={.../graphicsdir/pic-file},picfilex=eps, + picbb=116 619 242 751,picscale=3,align=center,angle=0, + xcoord=0,ycoord=0 + ]{xwatermark}. +\end{xwverbatim} +For graphic and picture watermarks, you need the \stya{picfile} (the graphic filename, with its full path but without its extension), \stya{picfilex} (the picture filename extension without the dot), \stya{picbb} (the picture bounding box), and \stya{picscale} (the picture scale). Admissible file extensions are \stya{eps}, \stya{pdf}, \stya{png} and \stya{jpeg}; the latter three, but not the first, may be used in the case of \pdfTeX. The file extension should be passed without the dot. +If the file extension is not passed to package, the package selects it automatically based on whether \pdfTeX mode running or not (normal extensions are \stya{eps} for dvi mode and \stya{pdf} for \pdfTeX mode). If you have the graphic file in both \stya{eps} and \stya{pdf} formats, then you don't have to bother about submitting the file extension to the package: it will automatically select the appropriate file extension, depending on the mode (\pdfTeX or dvi) in which it is running. + +\subsection{The \XWM macro} +The global boolean option \stya{printwatermark=true} (or \stya{=false}) and the one that specifies the pages to receive the watermark(s) (\eg, \stya{evenpages} and \stya{allpages}) should be set when loading the package, \eg, +\begin{xwverbatim} +\usepackage[printwatermark,evenpages]{xwatermark}, +\end{xwverbatim} +or in the \dclass options list: +\begin{xwverbatim} +\documentclass[a4paper,12pt,printwatermark]{article} + +\usepackage[evenpages]{xwatermark}. +\end{xwverbatim} + +The remaining options can be set dynamically using the \wmsetup macro. These other options can be set for each page, as on the pages of the accompanying file of examples (\stya{xwatermark-examples.tex}). The \wmsetup macro can be used as in +\begin{xwverbatim} +\watermarksetup{fontfamily=bch,color=gray!25,textmark=DRAFT, + angle=45,scale=0.8,xcoord=0,ycoord=0 +}. +\end{xwverbatim} + +The option \stya{printwatermark} should not appear in \wmsetup but in the statement \usepackxwm or in the \dclass options list. + +However, the options \stya{allpages}, \stya{oddpages}, \stya{evenpages}, \etc, which specify watermark pages, can appear in \wmsetup. This implies that the instructions that specify watermark pages may be issued and superseded dynamically (page by page or chapter by chapter). For small documents, this feature may be unnecessary, but will be useful in large documents (such as a report or book), in which the watermark may change from chapter to chapter. + +When you want the watermark on only one page of the document, you can conveniently use the \wmsetup macro with the page option \stya{page=desired page} in the preamble of your document after issuing +\begin{xwverbatim} +\usepackage[printwatermark]{xwatermark}. +\end{xwverbatim} +In this way, you don't have to bother with locating in the source file the spot that corresponds to the page on which you want the watermark to appear. + +\subsection{Options without values} +If you follow an option key with an equality sign but without a value, as in, \eg, +\begin{xwverbatim} +\watermarksetup{|color(red)fontfamily={}|color(blue),color=gray!25,|color(red)textmark={}|color(blue), + angle=45,scale=0.8,xcoord=0,ycoord=0 +}, +\end{xwverbatim} +then there will be no problem but the outcome may be unpredictable, depending on the key that has no value. In the above example, no watermark will be printed (not even the default mark, which is \stya{DRAFT}) because the entry \stya{textmark=} is valid and implies that no watermark should be printed. The absence of fontfamily in \stya{fontfamily=} will compel \texorlatex to use an arbitrary fontfamily that isn't the default (the default fontfamily is \stya{phv} if the key \stya{fontfamily} is not passed, and \stya{cmr} otherwise). + +\subsection{Emptying the watermarks of some pages} + +If you issue any of the statements +\begin{xwverbatim} +allpages=true, evenpages=true, oddpages=true, pages=x-x, +page=x +\end{xwverbatim} +together with \stya{printwatermark=true} but you don't want the mark on any particular page, you can simply set \cmda{\watermarksetup\{textmark=\}} or, to the same effect, \cmda{\watermarksetup\{textmark=\{\}\}} on that page. In the case of picture watermarks, you will set \cmda{\watermarksetup\{picfile=\{\}\}}. These both imply that the watermark for that page is empty. This can be useful when transiting from text watermarks to picture watermarks or vice versa. Some examples are available in \stya{xwatermark-examples.tex}, the example source file that shipped with this package. + +\subsection{The usefulness of the \stya{\bf white} color} +If you set \stya{allpages=true} or \stya{evenpages=true} or \stya{oddpages=true} together with \stya{printwatermark=true} but you don't want the mark on any particular page, you can simply enter \stya{color=white} in the \wmsetup on that page. This applies only to text watermarks, as such a declaration has no effect on picture watermarks. This may be convenient in circumstances where you may change your mind as to whether to place a watermark on a particular page or not. In this way you don't have to set \cmda{\watermarksetup\{textmark=\}} or remove (or comment out) the \wmsetup command for that (or indeed any) page. + +\section{Other aspects of package architecture and use} + +\subsection{\DCL options} +The package is set to inherit the \dclass options, if the options apply to the package. Therefore, some of the package options can be passed to the package via the \dclass options list. This is perhaps most appropriate in the case of the options \stya{printwatermark}. However, package options supersede those passed via the \dclass. For example, the option \stya{printwatermark=true} in the \dclass options list can normally be superseded by the option \stya{printwatermark=false} in loading the \stya{xwatermark} package, \eg, as in +\begin{xwverbatim} +\usepackage[printwatermark=false]{xwatermark}, +\end{xwverbatim} +and vice versa. + +If you don't need the watermark on any page of your document, simply replace the \stya{printwatermark(=true)} option in \cmdb{\usepackage} or \dclass with the choice \stya{printwatermark=false}. If you have specified \stya{printwatermark(=true)} in the \dclass options list but you still don't need the watermark on any page of your document, then you would have to enter \stya{printwatermark=false} when loading the package. + +\subsection{The size of the watermark} +In the case of text watermarks, the size of the watermark is controlled by three parameters, namely, \stya{fontsize}, \stya{fontseries} and \stya{scale}. All can be set dynamically. Their default values are \stya{5cm}, \stya{b} and \stya{1}, respectively. For picture watermarks, the size is determined by \stya{picscale}. + +\subsection{The coordinates of the watermark} +The watermark coordinates (specified by \stya{xcoord} and \stya{ycoord}) have their origin at the center of the page and are with respect to the geometric center of the watermark. The default unit is \stya{millimeter}, but this can be changed on any page by issuing +\begin{xwverbatim} +\watermarksetup{coordunit=|color(red)unit of length|color(blue)}. +\end{xwverbatim} +Acceptable units of length include \styb{mm} (millimeter), \styb{cm} (centimeter), \styb{in} (inch), \styb{pt}~(point), \styb{bp} (big point), \styb{dd} (didot), \styb{ex} (height of small \styb{x}), \styb{pc} (pica), \styb{cc}~(cicero), \styb{em}~(width of capital \styb{M}). The unit of coordinates can also be changed by simply submitting the unit to the package with other options at each call, as in +\begin{xwverbatim} +\watermarksetup{|color(red)coordunit=pc,|color(blue)fontfamily=cmss,angle=90, + scale=1.0,textmark=-Official-,color=red!75!green!50, + xcoord=-10,ycoord=10 +}. +\end{xwverbatim} + +\subsubsection{Wrong location of the watermark} +If you discover that the watermark is wrongly positioned on the page(s) of your document, the chances are that you have submitted wrong coordinates (values of \stya{xcoord} and \stya{ycoord}) to the package or the markwidth (\stya{width}) is not optimal or both reasons. The package does not take responsibility for this and will normally not warn you in this respect. Since the output file provides a direct and simple indication of the occurrence of this error, no attempt has been made in the package to warn users in this regard. If you do not specify the keys \stya{xcoord} and/or \stya{ycoord} at all in the call to the package, their immediate past values will be used by the package. On the other hand, if you list these keys without their values in the call to the package, their default values (\stya{xcoord=0} and \stya{ycoord=0}, which yield the center of paper) will be assumed by the package. The default value of the markwidth is \cmda{\paperheight}. + +When the \styb{geometry} package is loaded together with \styb{xwatermark}, page layout scale changes by the \styb{geometry} package may result in the watermarks being positioned wrongly. See section~\ref{sec:Xwatermark:Geometry} for further details. + +\subsection{Choice of \stya{\bf grayness}} +The grayness applies to only text watermarks and is chosen according to the scheme of the \styb{xcolor} package. The color gray is represented as \stya{gray!x}, where \stya{x} is the grayness in percentage---normally from 1 to 100. In the previous versions of the package, the \stya{grayness} was a package option associated with the color \stya{gray}; this is no longer the case. + +\subsection{Breaking the watermark into lines} +It is possible to break text watermarks into lines, as in the following examples: +\begin{xwverbatim} +\watermarksetup{fontfamily=ptm,angle=45,scale=.7, + textmark=|color(red){Directorate\\[.25ex]Only},align=center|color(blue),color=green, + xcoord=0,ycoord=0 +} + +\watermarksetup{fontfamily=ptm,angle=45,scale=.8, + textmark=|color(red){Control\\[.25ex]Version},align=left|color(blue), + color=green,xcoord=0,ycoord=0 +}. +\end{xwverbatim} +More complex examples are given in the file \stya{xwatermark-examples.tex}. + +\subsubsection{The alignment of the watermark} +The alignment of the watermark is controlled by the key \stya{align}, which may be set to \stya{center}, \stya{left}, \stya{right} or \stya{justified}. The default is \stya{center}. This is particularly useful for putting arbitrary texts (that are not necessarily watermarks) on pages of documents. Examples include the watermarks on the pages of this document. The code for the watermarks on page~\pageref{page:one} is given in section~\ref{sec:colorbox}. + +\subsection{Locating the page center} +In case you need to locate the paper/page center for placing the watermark or some other material at any position on the page, a two-line grid can be placed on the page background with the key \stya{showcenter}, which may be issued (dynamically for each page) with the \wmsetup macro as follows: +\begin{xwverbatim} +\watermarksetup{|color(red)showcenter|color(blue)} |color(black)or + +\watermarksetup{|color(red)showcenter=true|color(blue)} |color(black)or + +\watermarksetup{|color(red)showcenter|color(blue),fontfamily=ptm,angle=60, + scale=.7,textmark=Confidential!,color=brown!25!yellow!75, + coordunit=cc,xcoord=0,ycoord=0 +}. +\end{xwverbatim} + +An example is given in the example file (\stya{xwatermark-examples.tex}). If after issuing this command to get a centered grid on a page, you no longer require the grid on the following pages, you simply issue another +\begin{xwverbatim} +\watermarksetup{|color(red)showcenter=false|color(blue)} |color(black)or + +\watermarksetup{|color(red)showcenter=false|color(blue),fontfamily=panr,angle=60, + scale=.7,textmark=Confidential!,color=brown!25!yellow!75, + coordunit=cc,xcoord=0,ycoord=0 +}. +\end{xwverbatim} + +\subsection{Active characters}\label{sec:Active-charact} +Active characters (\ie, those of category 13) can normally be used as values of the \stya{textmark} key in the \usepackxwm statement and in the \wmsetup macro. However, such values cannot be passed via the \dclass. The \styb{xkvltxp} patch package can be used to obviate this problem---as suggested in the \styb{xkeyval} package documentation. That is, the following should work: + +\begin{xwverbatim} +\RequirePackage{xkvltxp} +\documentclass[textmark={My watermark,\\designed~ + by \textsc{Johnson}}]{class-type} +\begin{document} +... +\end{document} +\end{xwverbatim} + +To pass active characters and expandable commands as values of \stya{textmark} to the \stya{xwatermark} package, it is necessary to first load the \styb{xkvltxp} package as above, or as follows: + +\begin{xwverbatim} +\documentclass{class-type} +\usepackage{xkvltxp} +\usepackage[printwatermark,% + textmark=\textsc{Johnson's~Text}]{xwatermark} +\begin{document} +... +\end{document} +\end{xwverbatim} + +The use of the \styb{xkvltxp} package can be sidestepped completely by passing active characters not through \dclass and \usepackxwm but instead via the \wmsetup macro, as in + +\begin{xwverbatim} +\documentclass{class-type} +\usepackage[printwatermark]{xwatermark} +\watermarksetup{allpages,textmark={M\"uller's~Text}} +\begin{document} +... +\end{document} +\end{xwverbatim} + +In fact, in this way even expandable commands can be passed to the package, as follows: + +\begin{xwverbatim} +\documentclass{class-type} +\usepackage[printwatermark]{xwatermark} +\newcommand*\temparg{Fran\c coise M\"uller's\endgraf Text} +\watermarksetup{allpages,textmark=\temparg} +\begin{document} +... +\end{document} +\end{xwverbatim} + +The accompanying file \stya{xwatermark-examples.tex} contains some complex examples. + +In plain \nTeX the only active character is the tie character \raisebox{-1ex}{\ \textcolor{teal}{$\widetilde{}$}\ } (that is, \cmdb{\nobreakspace}). However, some packages do make some other characters active. For example, after issuing the command \cmdb{\MakeShortVerb\{\string\x\}}, the packages \styb{doc} and \styb{shortvrb} make the character \styb{x} active. The user can use such active characters in values of the \stya{textmark} key without locally changing their catcode to 11 (\ie, letters). In the case of \cmdb{\MakeShortVerb\{\string\x\}}, you can issue \cmdb{\DeleteShortVerb\{\string\x\}} to revert to normal use of character \styb{x}. As another example, the option \styb{turkish} of the \styb{babel} package uses the equal sign as active shorthand character. + +\section{The \XWCB and \XWMP macros}\label{sec:colorbox} +\lletter{T}{o make} it easier for users to create paragraph boxes and color boxes of texts and watermarks, the \stya{xwatermark} package provides the macros \cmda{\xwcolorbox} and \cmda{\xwminipage}. The macro \cmda{\xwcolorbox} calls the macro \cmda{\xwminipage}. The \cmda{\xwminipage} macro is a \styb{minipage} environment that may be used for framing watermarks. Like the \wmsetup macro, these two macros are set with key-value lists as follows: +\begin{xwverbatim} +\xwminipage{key=value list} +\xwcolorbox{key=value list}. +\end{xwverbatim} + +The \stya{textcolor} in \cmda{\xwminipage} is the color of the text. In the case of \cmda{\xwcolorbox}, two color values are expected: \stya{textcolor} and \stya{fillcolor}. Texts with commas need to be enclosed in braces when submitted to these macros. The default values of the options of these macros are described in section~\ref{sec:LocalOptions}. + +These macros can call one/each other iteratively, \eg, +\begin{xwverbatim} +\watermarksetup{fontfamily=txtt,fontseries=m,color=red, + align=center,scale=0.7,angle=0,xcoord=0,ycoord=0, + textmark={% + \xwminipage{width=\paperwidth, + text={% + \xwminipage{width=\paperwidth,align=left, + textcolor=magenta,text={\TeX\\[.1ex] \LaTeX} + } + \\[1ex] + \xwminipage{width=\paperwidth,align=center, + textcolor=green,text={\TeX\\[.1ex] \LaTeX} + } + \\[1ex] + \xwminipage{width=\paperwidth,align=right, + textcolor=orange,text={\TeX\\[.1ex] \LaTeX} +}}}}} +\end{xwverbatim} +which is one of the examples in the file \stya{xwatermark-examples.tex}. + +The left and right watermarks on page~\pageref{page:one} were produced with the following settings: +\begin{xwverbatim} +\watermarksetup{fontfamily=phv,fontsize=11pt, + fontseries=m,align=center,height=\paperheight, + width=\paperheight,angle=90,scale=1,xcoord=0,ycoord=-1, + textmark={% + \xwcolorbox{fillcolor=gray!55,width=\paperheight, + align=center,framesep=5pt,framerule=2pt, + framecolor=white, + text={\color{white}\framebox[2cm][c]{% + \phantom{Hello}}\hspace{1cm}\color{black} + \TC{red}{\textbullet}\hspace{1cm}The marks % + on these pages were placed effortlessly % + by using the \TC{blue}{xwatermark} package + \hspace{1cm}\TC{red}{\textbullet}\hspace{1cm} + \color{white}\framebox[2cm][c]{\phantom{Hello}} + \rotatebox[origin=c]{90}{% + \makebox[1.4cm][c]{\phantom{Hello}}} + } + } + \\[17.2cm] + \xwcolorbox{framesep=5pt,framerule=2pt, + fillcolor=gray!55,framecolor=white, + align=center,width=\paperheight, + text={% + \color{white}\framebox[2cm][c]{\phantom{Hello}} + \hspace{1cm}\color{black}\TC{red}{\textbullet} + \hspace{4.3cm}User manual for the % + \TC{blue}{xwatermark} package\hspace{4.3cm} + \TC{red}{\textbullet}\hspace{1cm} + \color{white}\framebox[2cm][c]{\phantom{Hello}} + \rotatebox[origin=c]{90}{% + \makebox[1.4cm][c]{\phantom{Hello}}} + } + } + } +} +\end{xwverbatim} + +\subsection{The \YWCB macro}\label{sec:ywcolormacro} +This macro has the same syntax and options as the \cmda{\xwcolorbox} macro except that the resulting \styb{colorbox} is centered by using the \styb{center} environment and the markup box \cmdb{\makebox[0pt][c]\{\}}. It is intended for producing \styb{colorbox}es such as the one for the abstract on \pageref{page:one}. The abstract was produced with the following settings: +\begin{xwverbatim} +\ywcolorbox{framesep=5pt,framerule=2pt,framecolor=red!55, + align=justified,fillcolor=gray!25,width=\hsize, + text={% + \centering\xwcolorbox{align=center,fillcolor=white, + width=.5\hsize,text={\bfseries Abstract}}\\[1ex] + The \stya{xwatermark} package enables the user ... + } +} +\end{xwverbatim} +Notice here that the macro \cmda{\ywcolorbox} calls the macro \cmda{\xwcolorbox} with its (\cmda{\ywcolorbox}'s) \stya{framesep} and \stya{framerule}. + +Users may also like to consider the possible use of the \cmdb{\fcolorbox} macro of the \styb{xcolor} package in setting the textmarks. + +\section{Using \stya{\bf xwatermark} with the \styb{\bf geometry} package} +\label{sec:Xwatermark:Geometry} +\lletter{S}{ome users} have reported an apparent ``conflict'' between the \styb{geometry} package and \stya{xwatermark}, which according to them makes it rather unpleasant to properly position the watermarks. There is actually what, for want of a better term, I may refer to as a ``mismatch'' between \styb{geometry} and \stya{xwatermark} but certainly not a conflict. The problem emanates from the \styb{geometry} package because it changes the scale, ratio, magnification, and other native dimensions of the paper to get the needed layout right all the time. The only layout parameter that the \styb{geometry} package may retain is the paper center, which, unfortunately, does not always coincide with the text center. In fact, even the paperwidth and paperheight can be changed by the user of the \styb{geometry} package. + +Reconciling the \stya{xwatermark} package with the \styb{geometry} package at the very low level requires more effort than I can afford now. The interim solution is that the user should set his/her watermarks before loading the \styb{geometry} package, or use the \styb{geometry} package with the option \styb{pass} in the preliminary runs (when setting the watermarks). The \styb{pass} option is available from version~4.2 of the \styb{geometry} package. It disables auto-layout and all of the \styb{geometry} settings except \styb{verbose} and \styb{showframe}. It can be used to determine the page layout of the \dclass and layouts created by other packages and manual settings. The user can also employ the option \styb{showframe} of the \styb{geometry} package to view how the scaling factors used by the \styb{geometry} package might change native layout dimensions. The option \styb{reset} of the \styb{geometry} package is also useful in this regard. + +The \styb{geometry} package saves native \texorlatex dimensions and switches in the macro \cmdb{\Gm@dorg} before processing \styb{geometry} package options. This macro is called by \styb{geometry} when the options \styb{pass} and \styb{reset} are passed to it. Reconciling the two packages (\stya{xwatermark} and \styb{geometry}) at a high level will involve simply calling this macro within \stya{xwatermark} whenever \stya{xwatermark} detects that the \styb{geometry} package has been loaded by the user. This is what has been done in the \stya{xwatermark} package: the package has a boolean option called \stya{dgeometry} (meaning ``disable geometry''), which, if true, invokes the command \cmdb{\Gm@dorg} of the \styb{geometry} package to disable \styb{geometry} package settings and enforce native paper layout dimensions. First the \stya{xwatermark} package detects at the very last moment of the document preamble (just before \cmdb{\begin\{document\}}) if the \styb{geometry} package has been loaded by the user. If yes, and if the user has set \stya{dgeometry=true} in the call to \stya{xwatermark}, then \stya{xwatermark} issues the command \cmdb{\geometry\{pass\}}, which, as mentioned earlier, calls \cmdb{\Gm@dorg}. + +After the effects of the \styb{geometry} package are re-introduced (\ie, after setting \styb{pass=false}), it might still be necessary to fine-tune the positions of the watermarks. + +Because the \styb{geometry} package stipulates that the command \cmdb{\Gm@dorg} can be issued only in the document preamble, the switch \stya{dgeometry} can appear only in \usepackxwm, as in, \eg, +\begin{xwverbatim} +\usepackage[printwatermark,allpages,dgeometry]{xwatermark}, +\end{xwverbatim} +but it matters not which of the two packages (\styb{geometry} and \stya{xwatermark}) is loaded first. To call \cmdb{\Gm@dorg}, the \stya{xwatermark} package uses the hook \cmdb{\AtEndPreamble} from the \styb{etoolbox} package~\cite{PLehman2008}. The native \nLaTeX hook \cmdb{\AtBeginDocument} is inapplicable in this case. + +The user should also remember that he/she can set his/her own margins without using the \styb{geometry} package, although many users find the \styb{geometry} package more convenient. + +\section{Support for Unicode and UTF encodings} +\lletter{T}{he} \stya{xwatermark} package can be used with any font encoding, provided the \stya{fontfamily} is properly declared before use. For example, with the following declarations on \XeTeX, Rembrandt Wolpert (\url{wolpert@uark.edu}) obtained some +.pdf+ outputs that he is willing to share with other users: +\begin{xwverbatim} +\newfontfamily{\chinese}{STFangsong} % SinoType FangSong + +\newcommand{\chtext}[1]{{\chinese \XeTeXlinebreaklocale% + "jp" \XeTeXlinebreakskip=0pt plus 1pt #1}} + +\watermarksetup{fontsize=5cm,align=center, + color=red!75!blue!25,angle=90,xcoord=-65,ycoord=-38, + scale=.49,textmark={=\fbox{\color{red!65}\chtext{% + |color(red)watermark in Chinese or Japanese script|color(blue)}}=} +} + +\newfontfamily{\Gara}{Garamond Premier Pro} + +\watermarksetup{fontsize=5cm,scale=.46,align=center, + angle=90,color=red!75!blue!25,xcoord=-72,ycoord=-38, + textmark={=\fbox{\color{red!65}\Gara The different% + ligature}=\\[.35ex]} +}. +\end{xwverbatim} + +It doesn't matter what the user declares as a \stya{fontfamily} provided he/she declares it before using it and provided the declaration is valid. It is thus possible to mix scripts in one watermark (\eg, Latin, Chinese, Korean, Japanese, Arabic, Russian scripts, you name it). Unicode and UTF encodings and their recent \nTeX implementations are described in, \eg,~\cite{VEijkhout2008}. + +\section{Further examples of use of \stya{\bf xwatermark} package} +\lletter{T}{he file} \stya{xwatermark-examples.tex}, a source file of examples of use of the \stya{xwatermark} package, together with its \stya{pdf} version, are provided with this guide in the \stya{xwatermark} bundle. + +\section{Future extension} +\lletter{C}{urrently the package} cannot put more than one watermark on the same page in a simple manner. To be able to do so, some tricks are necessary, as was done with the watermarks on the pages of this document. To position more than one mark on the same page, complicated tricks may be necessary, but are often possible. Markup boxes (especially zero-width boxes) can be handy in this respect, but the user should note the displeasure that unintended spaces can cause in boxes. It will be useful to relieve the user of such complications. This is an obvious track for extension of the package. One possible way to tackling this challenge is to accumulate the watermarks for each page before calling the shipout hooks, or loop over the watermarks (meant for the same page) within the shipout hooks. + +The user should note the real meanings of saved-box commands (such as \cmdb{\newsavebox}, \cmdb{\savebox}, and \cmdb{\usebox}) before using them. The are actually bins and not all declarations made outside the bins may be visible inside them. + +There is also the issue with the \styb{geometry} package mentioned in section~\ref{sec:Xwatermark:Geometry}. + +\section{Epilogue} +\lletter{B}{ug reports} and suggestions for further improvement and extension of the package are very much welcome. + +\section{Acknowledgement} +I thank Joseph Wright (\url{joseph.wright@morningstar2.co.uk}) for his time in helping me resolve some of the challenges I encountered in coding this package---and for his continued support. + +\begingroup +\normalcolor +\bibfont +\bibliographystyle{abbrv} +\bibliography{xwatermark-guide} +\endgroup + +\appendix +\section{Package options}\label{sec:PackageOptions} +\lletter{W}{e categorize} the package options into global and local. Global options are those set either in \dclass or in \usepackxwm or with the macro \wmsetup, while local options are those set with the macros \cmda{\xwminipage}, \cmda{\xwcolorbox} and \cmda{\ywcolorbox}. + +\subsection{Global options} +The global package options are listed and described in table~\vref{tab:GlobalOptions}. + +\extrarowheight=2pt +\arrayrulecolor{yellow} +\begin{tabularx}{\linewidth}{|m{3cm}|m{2.5cm}|X|} +\caption{Global options of the package\label{tab:GlobalOptions}}\\\hline +\rowcolor{pink} +\bfseries Option&\bfseries Default&\bfseries Meaning\\\hline +\endfirsthead +\hline +\multicolumn{3}{|l|}{\emph{Continued from last page}}\\\hline +\bfseries Option&\bfseries Default&\bfseries Meaning\\\hline +\endhead +\multicolumn{3}{|r|}{\emph{Continued on next page}}\\\hline +\endfoot +\hline +\endlastfoot ++printwatermark+ & +true+ & Global boolean switch that determines whether watermark should be printed or not. This option can be passed to package as either \stya{true} or \stya{false} and can appear in the \dclass options list or \cmdb{\usepackage}. If for any reason you don't the watermark printed in any run, you can enter \stya{printwatermark=false}. If the option \styb{draft} or \styb{final} appears in the \dclass or \cmdb{\usepackage}, it won't affect the printing or otherwise of the watermark. The printing of the watermark is determined by the option \stya{printwatermark}.\\\hline ++allpages+, +evenpages+, +oddpages+, +pages+,~+page+ & & These determine the pages on which the watermarks are to be printed. The options \stya{allpages}, \stya{evenpages}, \stya{oddpages} are boolean keys, while \stya{pages} and \stya{page} require values, \eg, \stya{pages=x-x} and \stya{page=x}. If the package is loaded and none of these options is passed to it, the default watermark (DRAFT) will be printed on the first page of the document and a warning message logged in the transcript file.\\\hline ++textmark+ & DRAFT & The text watermark.\\\hline ++angle+ & $45^\circ$ & The orientation of the watermark (text and/or picture). \\\hline ++scale+ & 1 & The scale of the text watermark.\\\hline ++grayness+ & 0.8 & The grayness of the text watermark. This is no longer available as an option since the grayness of the gray color can be set as a percentage (\eg, +color=gray!25+).\\\hline ++color+ & +gray+ & The color of the text watermark.\\\hline ++fontfamily+ & +cmss+ & The fontfamily of the text watermark.\\\hline ++fontsize+ & 5cm& The fontsize of the text watermark. If for some reason you need other fontsizes (\eg, 10pt, 11pt or 12pt for printing text watermarks in +\normalfont+), you will need to submit them as values of \stya{fontsize}.\\\hline ++fontseries+ & +b+ & The font series of the text watermark. If you need normal document text, put \stya{fontseries=m}, which implies medium weight and width. Package users who have asked about other font series should please refer to~\cite[\S 7.9]{MittelbachGoossens2004}.\\\hline ++xcoord+ & 0 & x-coordinate of watermark (with reference to the center of paper and not the text center).\\\hline ++ycoord+ & 0 & y-coordinate of watermark (coinciding with center of paper). Both \stya{xcoord} and \stya{ycoord} should be submitted without units, since the unit is set separately by \stya{coordunit}.\\\hline ++coordunit+ & +mm+ & The unit for x- and y-coordinates. \\\hline ++align+ & +center+ & Alignment of the watermark (the key can assume the value \stya{center}, \stya{left}, \stya{right} or \stya{justified}). Any other alignment value is inadmissible and thus rejected by the package with a fatal error.\\\hline ++width+ &+\paperheight+ & Width of \textbf{text} watermarks only; doesn't apply to graphic watermarks. For some design reasons we set +\paperheight+ as the default value of markwidth instead of markheight.\\\hline ++height+ & +\paperwidth+ & Height of text watermark.\\\hline ++picscale+ & 1 & Scale of picture watermark.\\\hline ++picbb+ & 0 0 100 100& The bounding box (dvi mode) or viewport (pdf mode) of the picture watermark.\\\hline ++picfile+ & & The filename of picture watermark. This, with its full path, must be submitted when including picture watermark.\\\hline ++picfilex+ & eps/pdf & The filename extension of the picture watermark. Admissible extensions are \stya{eps}, \stya{pdf}, \stya{png} and \stya{jpeg}; the latter three may be used in the case of \pdfTeX. The file extension should be passed without the dot. If the option is not passed to package, \stya{xwatermark} selects \stya{eps} (in dvi mode) or \stya{pdf} (in \pdfTeX mode). \\\hline ++showcenter+ & & Boolean that indicates if the center of the paper should be shown with a cross (and circle).\\\hline ++dgeometry+ & +false+ & The package option that determines whether the page layout settings by the \styb{geometry} package should be disabled so that the watermarks can be set more readily by \stya{xwatermark}.\\ +\end{tabularx} + +\subsection{Local options}\label{sec:LocalOptions} +Local package options are those associated with the macros \cmda{\xwminipage}, \cmda{\xwcolorbox} and \cmda{\ywcolorbox}. They are described in table~\ref{tab:LocalOptions}. + +\begin{tabularx}{\linewidth}{|m{3cm}|m{2.5cm}|X|} +%\begin{longtable}{|m{3cm}|m{2.5cm}|m{\hsize-7cm}|} +\caption{Local options of the package\label{tab:LocalOptions}}\\\hline +\rowcolor{pink} +\bfseries Option&\bfseries Default&\bfseries Meaning\\\hline +\endfirsthead +\hline +\multicolumn{3}{|l|}{\emph{Continued from last page}}\\\hline +\bfseries Option&\bfseries Default&\bfseries Meaning\\\hline +\endhead +\multicolumn{3}{|r|}{\emph{Continued on next page}}\\\hline +\endfoot +\hline +\endlastfoot +\multicolumn{3}{|>{\columncolor{gray!25}}c|}{\bf\cmda{\xwminipage} macro}\\\hline ++width+ & +\paperwidth+ & Width of the boxedminipage.\\\hline ++textcolor+ & +black+ & Color of text inside boxedminipage.\\\hline ++framecolor+ & +white+ & Color of frame of boxedminipage.\\\hline ++text+ & No text passed & Text that goes inside the boxedminipage.\\\hline ++align+ & +center+ & Alignment of the text inside the boxedminipage of \cmda{\xwminipage} (expected values are \stya{center}, \stya{left}, \stya{right} and \stya{justified}).\\\hline ++framesep+ & +3pt+ & +\fboxsep+ of the boxedminipage.\\\hline ++framerule+ & +0.4pt+ & +\fboxrule+ of the boxedminipage.\\\hline +\multicolumn{3}{|>{\columncolor{gray!25}}c|}{\bf\cmda{\xwcolorbox} macro}\\\hline ++width+ & +\paperwidth+ & Width of the colorbox.\\\hline ++textcolor+ & +black+ & Color of text inside colorbox.\\\hline ++framecolor+ & +white+ & Color of frame of colorbox.\\\hline ++text+ & No text passed & Text that goes inside the colorbox.\\\hline ++align+ & +center+ & Alignment of the text inside the colorbox of \cmda{\xwcolorbox} (expected values are \stya{center}, \stya{left}, \stya{right} and \stya{justified}).\\\hline ++framesep+ & +3pt+ & +\fboxsep+ of the colorbox.\\\hline ++framerule+ & +0.4pt+ & +\fboxrule+ of the colorbox.\\\hline +\multicolumn{3}{|>{\columncolor{gray!25}}c|}{\bf\cmda{\ywcolorbox} macro}\\\hline +\multicolumn{3}{|m{\hsize-1.5cm}|}{% +The options of the macro \cmda{\ywcolorbox} are the same as those of the related macro \cmda{\xwcolorbox}. Refer to section~\ref{sec:ywcolormacro} for the syntax of this macro. +}\\ +\end{tabularx} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.cfg b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.cfg new file mode 100644 index 00000000000..c38c07d94db --- /dev/null +++ b/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.cfg @@ -0,0 +1,212 @@ +%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% +% This is file xwatermark-guide.cfg, the configuration file for % +% the files xwatermark-guide.tex and xwatermark-examples.tex, % +% version 1.3. % +% % +% (c) Ahmed Musa 2009 (a.musa@rocketmail.com) % +%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% +\ProvidesFile{xwatermark-guide.cfg}% + [2009/10/20 v1.3 Configuration file for xwatermark-guide.tex] +\NeedsTeXFormat{LaTeX2e} +\usepackage{xkvltxp} +\usepackage[left=3cm,right=3cm]{geometry} +\usepackage[scaled=0.9]{helvet} +\usepackage{lettrine} +\usepackage{lipsum} +\usepackage{fancyhdr} +\usepackage{shortvrb,fancyvrb} +\usepackage{lastpage} +\usepackage{xspace} +\usepackage{parskip} +\usepackage{ltxnew} +\usepackage{varioref} +\usepackage{multicol} +\usepackage{array} +\usepackage{colortbl} +\usepackage{yfonts} +\usepackage{amsmath,amssymb} +\usepackage{pifont} +\usepackage[multiple]{footmisc} +\usepackage{bigfoot} +\DeclareNewFootnote[plain]{default} +\DeclareNewFootnote[plain]{B}[arabic] +\MakeSortedPerPage{footnoteB} +\usepackage[allpages,dgeometry]{xwatermark} +\usepackage{url} +\usepackage{ltablex} +\keepXColumns +\usepackage{hyperref} +\hypersetup{colorlinks=true,linkcolor=red,pdfpagemode=UseThumbs, + implicit=true,breaklinks=true,pagebackref=true,backref=true, + bookmarks=true,bookmarksnumbered=true,hyperfootnotes=true,debug=true, + naturalnames=false,citecolor=purple,pdfview=FitH,pdfstartview=FitH} +\usepackage{doipubmed} +\makeatletter +\renewcommand\section{\@startsection% + {section}{1}{0mm}{-\baselineskip}{.5\baselineskip}% + {\normalfont\normalsize\bfseries\large}} +\renewcommand\subsection{\@startsection% + {subsection}{2}{0mm}{-\baselineskip}{.5\baselineskip}% + {\normalfont\normalsize\bfseries\itshape}} +\renewcommand\subsubsection{\@startsection% + {subsubsection}{3}{0mm}{-\baselineskip}{.5\baselineskip}% + {\normalfont\normalsize\itshape}} +\renewcommand\@seccntformat[1]{% + \fboxrule.5pt\fboxsep3pt\fcolorbox{red!65}{yellow!25}{% + \upshape\expandafter\csname the#1\endcsname}\kern1em% +} +\makeatother +\new\let\TC\textcolor +\xglobal\definecolorset{rgb}{x}{1}{green,0.00,0.50,0.00;% + magenta,0.50,0.00,0.50;blue,0.50,0.00,1.00;purple,0.50,0.00,0.25} +\colorlet{xyellow2}{brown!25!yellow!75} +\colorlet{xyellow3}{magenta!10!yellow!85} +\date{\TC{purple}{\today}\vadjust{\kern2ex\hrule}} +\renewcommand*\reftextcurrent{on this page} +\newcommand*\nTeX{\TeX\xspace} +\newcommand*\nLaTeX{\LaTeX\xspace} +\newcommand*\La{\leavevmode L\raise.42ex\hbox{\footnotesize\kern-.45em A}} +\newcommand*\texorlatex{\mbox{(\La\kern-.20em)\kern-.15em\TeX}\xspace} +\newcommand*\Xe{\leavevmode X\raise.45em\hbox{\rotatebox{180}{E}}\xspace} +\def\XeTeX{\mbox{\Xe\kern-.45em\TeX}\xspace} +\def\XeLaTeX{\mbox{\Xe\kern-.45em(\La\kern-.45em)\kern-.15em\TeX}\xspace} +\def\pdfTeX{pdf\TeX\xspace} +\renewcommand{\LettrineFontHook}{\bfseries\gothfamily\color{red}} +\renewcommand{\LettrineTextFont}{\sffamily\scshape} +\def\lettrineops{lines=2,lhang=0.1,loversize=0.1,lraise=0.1,% + nindent=0pt,findent=0.1em} +\def\lletter{\begingroup\edef\1{\endgroup\noexpand\lettrine[\lettrineops]}\1} +\def\bibfont{\normalfont\small} +\newcommand*\helv{\fontfamily{phv}\selectfont\color{xpurple1}} +\def\eg{e.g.\xspace} +\def\ie{i.e.\xspace} +\def\etc{etc.\xspace} +\newcommand*\email[1]{\href{mailto:#1}{#1}} +\newrobustcmd*\stya[1]{\TC{xgreen1}{\texttt{#1}}\xspace} +\newrobustcmd*\styb[1]{\TC{teal}{\texttt{#1}}\xspace} +\newrobustcmd*\cmda[1]{\escapechar=92\TC{xgreen1}{\ttfamily\string#1}\xspace} +\newrobustcmd*\cmdb[1]{\escapechar=92\TC{teal}{\texttt{\string#1}}\xspace} +\newrobustcmd*\usepackxwm{\cmda{\usepackage\{xwatermark\}}} +\newrobustcmd*\dclass{\cmdb{\documentclass}} +\newrobustcmd*\wmsetup{\cmda{\watermarksetup}} +\newrobustcmd*\xcopyright[2]{#1\TC{#2}{\textsuperscript{\copyright}}\xspace} +\newrobustcmd*\XWM{\stya{\bf\textbackslash watermarksetup}\xspace} +\newrobustcmd*\DCL{\stya{\bf\textbackslash documentclass}\xspace} +\newrobustcmd*\XWCB{\stya{\bf\textbackslash xwcolorbox}\xspace} +\newrobustcmd*\YWCB{\stya{\bf\textbackslash ywcolorbox}\xspace} +\newrobustcmd*\XWMP{\stya{\bf\textbackslash xwminipage}\xspace} +\newcommand*\xmaketitle[1][plain]{\maketitle\thispagestyle{#1}\pagestyle{#1}} +\CustomVerbatimEnvironment{xwverbatim}{Verbatim}{numbers=left, + numberblanklines=false,firstnumber=last,frame=single,rulecolor=\color{xyellow2}, + framerule=2pt,framesep=2pt, fillcolor=\color{violet!55},formatcom=\color{blue}, + xrightmargin=0pc,commandchars=\|\(\),commentchar=\#} +\renewcommand\textfraction{0.05} +\renewcommand\topfraction{0.95} +\renewcommand\bottomfraction{0.95} +\abovedisplayskip=6pt plus3pt minus1pt +\belowdisplayskip=6pt plus3pt minus1pt +\abovedisplayshortskip=0pt plus3pt minus0pt +\belowdisplayshortskip=4pt plus3pt minus0pt +\belowcaptionskip=6pt plus3pt minus1pt +\abovecaptionskip=6pt plus3pt minus1pt +\setcounter{totalnumber}{5} +\fancyhf{} +\fancyhfoffset[R,L]{\marginparsep+\marginparwidth} +\lhead{\helv The \texttt{\TC{blue}{xwatermark}} Package} +\rhead{\helv Page~\thepage~of~\pageref*{LastPage}} +\renew\def\headrule{\color{blue}\hrule height1pt width\headwidth\relax + \vspace{2pt}\hrule height1pt width\headwidth\vspace{-2pt}} +\renew\def\footrule{\color{green}\hrule height1pt width\headwidth\relax + \vspace{2pt}\hrule height1pt width\headwidth\vspace{2pt}} +\new\long\def\xtempa{% + \xwcolorbox{fillcolor=gray!55,width=\paperheight,align=center, + framesep=5pt,framerule=2pt,framecolor=white,% + text={\color{white}\framebox[2cm][c]{\phantom{Hello}}\hspace{1cm}\color{black}% + \TC{red}{\textbullet}\hspace{1cm}The marks on these pages were placed effortlessly + by using the \TC{blue}{xwatermark} package\hspace{1cm}% + \TC{red}{\textbullet}\hspace{1cm}\color{white}\framebox[2cm][c]{\phantom{Hello}}% + \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}% + }}\\[0cm]% + \rotatebox[origin=c]{-90}{\raisebox{-13.8cm}[0cm][0cm]{% + \hspace*{-1.2mm}% + \xwcolorbox{framesep=5pt,framerule=2pt,fillcolor=yellow!75, + framecolor=white,align=center,width=.81\paperwidth,% + text={% + \color{white}\framebox[2cm][c]{\phantom{Hello}}\hspace{1cm}\color{black}% + \TC{red}{\textbullet}% + \hspace{1cm}Page~\thepage~of~\pageref*{LastPage}\hspace{1cm}% + \TC{red}{\textbullet}\hspace{1cm}% + \color{white}\framebox[2cm][c]{\phantom{Hello}}% + \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}% + }}}}\\[0cm]% + \rotatebox[origin=c]{-90}{\raisebox{13.6cm}[0cm][0cm]{% + \hspace*{-.12mm}% + \makebox[0cm][r]{% + \xwcolorbox{framesep=5pt,framerule=2pt,fillcolor=yellow!55,framecolor=white, + align=justified,width=.81\paperwidth,% + text={\normalfont\small\\[\baselineskip]\color{xblue1}% + Copyright (c) 2009 Ahmed Musa \TC{red}{\textbullet}~% + This work may be distributed and/or modified for non-commercial purposes only. + The LPPL maintenance status of this software is \emph{author-maintained}. + This software is provided `as it is,' without warranty of any kind, either + expressed or implied, including, but not limited to, the implied warranties + of merchantability and fitness for a particular purpose. + }}}}}% + \\[0cm]% + \xwcolorbox{framesep=5pt,framerule=2pt,fillcolor=gray!55,framecolor=white, + align=center,width=\paperheight,% + text={% + \color{white}\framebox[2cm][c]{\phantom{Hello}}\hspace{1cm}\color{black}% + \TC{red}{\textbullet}% + \hspace{4.3cm}User manual for the \TC{blue}{xwatermark} package\hspace{4.3cm}% + \TC{red}{\textbullet}\hspace{1cm}% + \color{white}\framebox[2cm][c]{\phantom{Hello}}% + \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}} + }} +}% +\new\long\def\xtempb{% + \centering\xwcolorbox{align=center,fillcolor=white,width=.5\hsize, + text={\bfseries Abstract}}\\[1ex] + The \stya{xwatermark} package enables the user to effortlessly put customized text and graphic watermarks on select pages of documents at desired positions and orientations. The features of the individual watermarks are specified by means of user-friendly key-value interfaces. +} +\new\long\def\xtempc{% + \xwcolorbox{fillcolor=teal,width=\paperheight,align=center, + framesep=5pt,framerule=2pt,framecolor=magenta, + text={\color{white}\framebox[2cm][t]{\phantom{Hello}}% + \hspace{1cm}\color{orange!85!red!55}% + \TC{red}{$\blacktriangleright$}\hspace{1cm}The \texttt{\TC{white}{xwatermark}}~ + package\hspace{1cm}\TC{red}{$\blacktriangleleft$}\hspace{1cm}\color{white}% + \framebox[2cm][t]{\phantom{Hello}}% + \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}% + }}\\[0cm]% + \rotatebox[origin=c]{-90}{\raisebox{-14.35cm}[0cm][0cm]{% + \hspace*{-1.2mm}% + \xwcolorbox{framesep=5pt,framerule=2pt,fillcolor=red!75,framecolor=white, + align=center,width=.81\paperwidth,% + text={a.musa@rocketmail.com},textcolor=white}}}% + \\[0cm]% + \rotatebox[origin=c]{-90}{\raisebox{14.34cm}[0cm][0cm]{% + \makebox[0cm][r]{% + \xwcolorbox{framesep=5pt,framerule=2pt,fillcolor=red!55,framecolor=white, + align=center,width=.81\paperwidth,textcolor=white, + text={Copyright (c) 2009 Ahmed Musa}% + }}}}\\[0cm]% + \xwcolorbox{framesep=5pt,framerule=2pt,fillcolor=teal,framecolor=magenta, + align=center,width=\paperheight,text={% + \color{white}\framebox[2cm][t]{\phantom{Hello}}\hspace{1cm}\color{orange!85!red!55}% + \TC{red}{$\blacktriangleright$}\hspace{2.1cm}Page~\thepage~of~\pageref*{LastPage}% + \hspace{2cm}\TC{red}{$\blacktriangleleft$}\hspace{1cm}% + \color{white}\framebox[2.1cm][t]{\phantom{Hello}}% + \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}% + }}% +} +\newcommand\xtempd{% + \xwcolorbox{framesep=5pt,framerule=2pt,framecolor=blue!35, + align=center,width=\paperheight,textcolor=magenta!60!blue!25, + text={Hello world,}} + \\[.25ex]% + \xwcolorbox{framesep=5pt,framerule=2pt,framecolor=white, + fillcolor=brown!55,align=center,width=\paperheight, + textcolor=red!45,text={We're here}}% +} +\endinput \ No newline at end of file -- cgit v1.2.3