1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
\documentclass[showpagenos]{article}
\makeatletter
\usepackage[dvipsnames]{xcolor}
\usepackage{amsmath,amssymb}
\usepackage[printwatermark]{xwatermark}
\thispagestyle{empty}
\watermarkpaths*[.](/){{,/Graphics}}
% The user should replace 'comet1' and 'fant' with his/her image filenames.
\newwallpaper[
page=1,fontfamily=put,textcolor=BurntOrange,fontsize=1cm,textscale=2,
textalign=center,textangle=45,picangle=0,tilexoffset=0pt,%squaretiles
tileyoffset=0pt,picontoptext=false,boxalign=top-left,
picbb=20 21 590 400,picscale=2,picfile=comet1,tileno=8,
picfileext=eps
]{YES}
\newwallpaper[
page=2,fontfamily=put,textcolor=BurntOrange,fontsize=1cm,textscale=2,
textalign=center,textangle=45,picangle=45,tilexoffset=0pt,%squaretiles
tileyoffset=0pt,picontoptext=true,boxalign=top-left,
picbb=54 54 483 242,picscale=2,picfile=fant,tileno=4,
picfileext=eps, graphicsoptions={keepaspectratio,hiresbb}
]{\texttt{fant}}
\newwatermark[
pages=3-4,fontfamily=pbk,textcolor=gray!35,fontsize=12pt,fontseries=n,
textalign=center,textangle=90,textscale=1,textxpos=-.44\paperwidth,textypos=0,
width=\paperheight
]{%
\xwmcolorbox[framesep=5pt,framerule=2pt,fillcolor=teal,
innerframecolor=magenta,outerframecolor=green,
textalign=center,width=.995\paperheight]%
{%
\color{white}\framebox[2cm][t]{\phantom{Hello}}\hspace{1cm}%
\color{orange!85!red!55}\textcolor{red}{$\blacktriangleright$}%
\hspace{2.1cm}Page \thepage~of~\pageref{xwmlastpage}%
\hspace{2.1cm}\textcolor{red}{$\blacktriangleleft$}\hspace{1cm}%
\color{white}\framebox[2cm][t]{\phantom{Hello}}%
\xwmstrut{9mm}{6mm}%
}%
}
\begin{document}
xx
\newpage
yy
\newpage
zz
\newpage
ww
\end{document}
|