%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% % This is file xwatermark-examples.tex, which demonstrates the use % % of the xwatermark package, version 1.4. % % % % (c) Ahmed Musa 2010 % %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++% \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{\textcolor{blue}{xwatermark}} \xcopyright{Package}{red}\\[1ex] \large Version 1.4\\[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]{\textcolor{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{\textcolor{orange!85}{@}}% \\[.25ex]\fboxsep=15pt\fboxrule=16pt\color{cyan}% \fbox{\textcolor{red!85}{Intel}\textcolor{orange!85}{BiZ}% \textcolor{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. The wonders of \textcolor{red}{\TeX}\bfseries{!}% }}}}% } \end{document} %%% End of file xwatermark-examples.tex %%%