summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xwatermark/xwatermark-examples.cfg
blob: 8ff82f424704c25dd6c9704486baad6ab76fe649 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
% This is file xwatermark-examples.cfg, version 1.5.1                        %
%                                                                            %
% Copyright (c) 2009-2011 Ahmed Musa (a.musa@rocketmail.com).                %
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%

\ProvidesFile{xwatermark-examples.cfg}
  [2011/07/30 v1.5.1 Configuration file for xwatermark-examples.tex (AM)]
\NeedsTeXFormat{LaTeX2e}
\makeatletter
\@ifundefined{ver@catoptions.sty}{%
  \csname @\ifx\documentclass\@twoclasseserror
    first\else second\fi oftwo\endcsname
  \usepackage\RequirePackage{catoptions}%
}{}
\AtBeginDocument{\hypersetup{pdfstartview=Fit,colorlinks}}

\cptloadpackages{%
  xcolor|dvipsnames,table,hyperref;
  geometry|left=3cm,right=3cm,top=2.5cm,bottom=2.5cm,
    includeheadfoot;
  lipsum;
  miscdef2;
  amsmath;
  amssymb;
  ltxtools;
  xwatermark|printwatermark;
  hyperref|verbose=false,pdfpagemode=UseThumbs,
    pdfview=FitB,pdfstartview=FitB;
}
\WrapQuotes
\newprovidedcommands{%
  \newdef\new@def,\renewdef\renew@def,\robustdef\robust@def,
  \robustredef\robust@redef,\providedef\LTS@providedef,
  \providerobustdef\LTS@providerobustdef
}
\newdef\hspce{\hspace{1cm}}
\nameabbrev\lppl{\LaTeX\ Project Public License}[LPPL]
\providerobustdef*\eg{%
  \CurrIfnextchar.{e.\,g\sspace}{e.\,g.\@\sspace}%
}
\providerobustdef*\ie{%
  \CurrIfnextchar.{i.\,e\sspace}{i.\,e.\@\sspace}%
}
\shelllet\tcl=\textcolor
\providerobustdef*\xcopyright#1{%
  \unskip\tcl{#1}{\textsuperscript{\copyright}}%
}
\robustdef*\xxcopyright{%
  \mbox{\textcopyright~\lower.7\p@\hbox{\uppercase
  \expandafter{\romannumeral\year}}}\sspace
}
\robustdef*\colorbullet#1{\tcl{#1}{\textbullet}\sspace}
\providerobustdef*\pkg{%
  \CurrIfnextchar'%
    {\@firstoftwo{\@tempswatrue\xwm@pkg}}
    {\@tempswafalse\xwm@pkg}%
}
\robustdef*\xwm@pkg#1{%
  \tcl{ForestGreen}{\texttt{#1}}\if@tempswa\@space package\fi
}
\providerobustdef*\email{\hyper@normalise\xwm@email}
\robustdef*\xwm@email#1{\href{mailto:#1}{#1}}
\providedef*\impnote{\emph{Important note}:\space}
\AfterStartOfDocument{%
  \def\thefootnote{\fnsymbol{footnote}}%
}

\fancypagenos[
  showonpageone     = false,
  coordunit         = pc,
  showheadrule      = false,
  showfootrule      = false,
  x-position        = 0,
  y-position        = -.5\textwidth,
  scale             = 2.5,
  angle             = 0,
  hfoffset-left     = .9,
  hfoffset-right    = .9,
  style             = Page \thepage~of~\lastdocpage,
  header-left       = \tcl{blue}{\today},
  header-right      = Ahmed Musa,
  footer-center     = \pkg'{xwatermark},
  header-center     = \textsf{\tcl{purple}{Demonstration document}}
]

\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}

\csndef*{watermark-2}{%
  % The macro \xxx below is an unlikely example definition,
  % but it provides a test of xwatermark schemes:
  \def\xxx##1{##1}%
  \xwmcolorbox[fillcolor=gray!55,width=.982\paperheight,
    textalign=center,framesep=5pt,framerule=2pt,
    outerframecolor=blue,innerframecolor=white]{%
    \color{white}\framebox[2cm][c]{\phantom{Hello}}%
    \hspce\color{black}\tcl{red}{\textbullet}%
    \hspce The marks on these pages were
    placed effortlessly by using the \pkg'{xwatermark}
    \hspce\tcl{red}{\textbullet}\hspce\color{white}%
    \framebox[2cm][c]{\phantom{Hello}}%
    \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}%
  }\\[0cm]%
  \rotatebox[origin=c]{-90}{\raisebox{-13.55cm}[0cm][0cm]{%
  \hspace*{-.1mm}%
    \xwmcolorbox[framesep=5pt,framerule=2pt,fillcolor=yellow!75,
      outerframecolor=ForestGreen,innerframecolor=white,
      textalign=center,width=.715\paperwidth]{%
      \color{white}\framebox[2cm][c]{\phantom{Hello}}\hspce
      \color{black}\tcl{red}{\textbullet}%
      \hspce Page~\thepage~of~\pageref*{xwmlastpage}\hspce
      \tcl{red}{\textbullet}\hspce
      \color{white}\framebox[2cm][c]{\phantom{Hello}}%
      \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}%
  }}}\\[0cm]%
    \rotatebox[origin=c]{-90}{\raisebox{12.35cm}[0cm][0cm]
      {\makebox[0cm][r]{%
      \xwmcolorbox[framesep=5pt,framerule=2pt,fillcolor=yellow!55,
        outerframecolor=ForestGreen,innerframecolor=white,
        textalign=justified,width=.715\paperwidth]{%
          \normalfont\small\color{blue}\vspace*{-1ex}%
          \begin{center}\colorbullet{red}\hspace{.25cm}%
          \tcl{Purple}{LICENSE}%
          \hspace{.25cm}\colorbullet{red}\end{center}\relax
          This work (\ie, all the files in the \pkg'{xwatermark}
          manifest) may be distributed and/or modified under the
          conditions of the \lppl, either version~1.3 of this
          license or any later version. The \lppl maintenance
          status of this software is \quoted{author-maintained}.
          This software is provided \quoted{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]%
  \xwmcolorbox[framesep=5pt,framerule=2pt,fillcolor=gray!55,
    outerframecolor=blue,innerframecolor=white,
    textalign=center,width=.982\paperheight]{%
      \color{white}\framebox[2cm][c]{\phantom{Hello}}%
      \hspce\color{black}\tcl{red}{\textbullet}%
      \hspace{4.3cm}User manual for the \pkg'{xwatermark}
      \hspace{4.3cm}\tcl{red}{\textbullet}\hspce
      \color{white}\framebox[2cm][c]{\phantom{Hello}}%
      \rotatebox[origin=c]{90}{\makebox[1.4cm][c]
      {\phantom{Hello}}}%
  }%
}
\newcommand*\scaleb[1]{\scalebox{2.5}{#1}}
\newcommand*\tmptexbox{%
  \fboxrule4pt\fbox{\scaleb\TeX}\\[0ex]\fbox{\scaleb\LaTeX}%
}
\csndef*{watermark-3}{%
  \xwmcolorbox[width=.8\paperwidth,framerule=4pt,framebox,
    framesep=4pt,innerframecolor=Green,outerframecolor=blue]{%
    \xwmminipage[width=.7\paperwidth,textalign=left,
      framerule=4pt,framecolor=magenta,textcolor=red,framebox]
      {\tmptexbox}\\[0ex]%
    \xwmminipage[width=.7\paperwidth,textalign=center,
      textcolor=blue,framerule=4pt,framecolor=black,framebox]
      {\tmptexbox}\\[0ex]%
    \xwmminipage[width=.7\paperwidth,textalign=right,
      framecolor=ProcessBlue,textcolor=orange,framerule=4pt,
      framebox]{\tmptexbox}%
  }%
}

\csndef*{watermark-4}{%
  \xwmcolorbox[fillcolor=teal,width=.983\paperheight,
    textalign=center,framesep=5pt,framerule=2pt,
    outerframecolor=purple,innerframecolor=magenta]{%
    \color{white}\framebox[2cm][t]{\phantom{Hello}}%
    \hspce\color{orange!85!red!55}%
    \tcl{red}{$\blacktriangleright$}\hspce The~
    \texttt{\tcl{white}{xwatermark}}~
    package\hspce\tcl{red}{$\blacktriangleleft$}%
    \hspce\color{white}\framebox[2cm][t]{\phantom{Hello}}%
    \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}%
  }\\[0cm]%
  \rotatebox[origin=c]{-90}{\raisebox{-13.7cm}[0cm][0cm]{%
    \hspace*{-.1mm}%
    \xwmcolorbox[framesep=5pt,framerule=2pt,
      fillcolor=green!75!blue!50,outerframecolor=brown,
      innerframecolor=white,textalign=center,width=.713\paperwidth,
      textcolor=white]{a.musa@rocketmail.com}}%
  }\\[0cm]%
    \rotatebox[origin=c]{-90}{\raisebox{13.5cm}[0cm][0cm]{%
      \makebox[0cm][r]{%
      \xwmcolorbox[framesep=5pt,framerule=2pt,
        fillcolor=green!75!blue!50,outerframecolor=brown,
        innerframecolor=white,textalign=center,width=.713\paperwidth,
        textcolor=white]{\xxcopyright Ahmed Musa}%
  }}}\\[0cm]%
  \xwmcolorbox[framesep=5pt,framerule=2pt,fillcolor=teal,
    outerframecolor=purple,innerframecolor=magenta,textalign=center,
    width=.983\paperheight]{\color{white}\framebox[2cm][t]
    {\phantom{Hello}}\hspce\color{orange!85!red!55}%
    \tcl{red}{$\blacktriangleright$}\hspace{2.1cm}%
    Page~\thepage~of~\pageref*{xwmlastpage}%
    \hspace{2cm}\tcl{red}{$\blacktriangleleft$}\hspce
    \color{white}\framebox[2.1cm][t]{\phantom{Hello}}%
    \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}%
  }%
}
\csndef*{watermark-5}{%
  \xwmcolorbox[framesep=5pt,framerule=4pt,innerframecolor=green,
  outerframecolor=red,textalign=center,width=.7\paperheight,
  textcolor=blue]{\scalebox{5}{Hello world,}}\\[.25ex]%
  \xwmcolorbox[framesep=5pt,framerule=4pt,innerframecolor=white,
  outerframecolor=blue,fillcolor=brown!55,textalign=center,
  width=.7\paperheight,textcolor=red]{\scalebox{5}{We're here!}}%
}
\csndef*{watermark-6}{%
  \xwmminipage[width=\hsize,framerule=2pt,framebox,framecolor=green,
    height=2cm,depth=2cm]{%
    \xwmminipage[width=\hsize,textalign=center,textcolor=magenta,
    framebox]{\fbox{\TeX}\\[0ex]\fbox{\LaTeX}}%
  }%
}

\csndef*{watermark-7}{%
  \begin{center}%
  \color{Yellow}%
  \fboxrule4\p@
  \centering\fbox{%
    \begin{minipage}[c]{\textwidth}%
      \xwmstrut{2cm}\z@
      \color{ProcessBlue}\centering
      \fboxrule3\p@\vss
      \fbox{%
        \begin{minipage}[c]{.5\hsize}%
          \xwmstrut{1.3cm}\z@
          \fboxrule4\p@\vss
          \centering\color{LimeGreen}%
          \fbox{\tcl{red}{\scalebox{2}{xwatermark}}}%
          \xwmstrut\z@{1cm}%
        \end{minipage}%
      }%
      \xwmstrut\z@{2cm}%
    \end{minipage}%
  }
  \end{center}%
}

\endinput