summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xwatermark/xwatermark-examples.cfg
blob: 7644422fc9b9be5d16fdf213ec86356030b678c2 (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
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
% This is file xwatermark-examples.cfg, version 1.5.2a                       %
%                                                                            %
% Copyright (c) 2009-2012 Ahmed2Musa (a.musa@rocketmail.com).                %
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%

\ProvidesFile{xwatermark-examples.cfg}
  [2012/02/01 v1.5.2a Configuration file for xwatermark-examples.tex (AM)]
\NeedsTeXFormat{LaTeX2e}
\makeatletter

\@ifundefined{ver@ltxtools-base1.sty}{%
  \csname @\ifx\documentclass\@twoclasseserror
    first\else second\fi oftwo\endcsname
  \usepackage\RequirePackage{ltxtools-base1}%
}{}
\AtBeginDocument{\hypersetup{pdfstartview=Fit,colorlinks}}

\ltsloadpackages{%
  xcolor|dvipsnames,table,hyperref;
  geometry|left=3cm,right=3cm,top=2.5cm,bottom=2.5cm,includeheadfoot;
  lipsum;
  amsmath;
  amssymb;
  ltxtools-doc;
  xwatermark|printwatermark;
  hyperref|verbose=false,pdfpagemode=UseThumbs,
    pdfview=FitB,pdfstartview=FitB;
}
\WrapQuotes
\new@def\hspce{\hspace{1cm}}
\nameabbrev\lppl{\LaTeX\ Project Public License}[LPPL]
\providerobust@def*\eg{%
  \ifnextcharTF.{e.\,g\sspace}{e.\,g.\@\sspace}%
}
\providerobust@def*\ie{%
  \ifnextcharTF.{i.\,e\sspace}{i.\,e.\@\sspace}%
}
\shelllet\ttcl=\textcolor
\providerobust@def*\xcopyright#1{%
  \unskip\ttcl{#1}{\textsuperscript{\copyright}}%
}
\robust@def*\xxcopyright{%
  \mbox{\textcopyright~\lower.7\p@\hbox{\uppercase
  \expandafter{\romannumeral\year}}}\sspace
}
\robust@def*\colorbullet#1{\ttcl{#1}{\textbullet}\sspace}
\providerobust@def*\pkg{%
  \ifnextcharTF'%
    {\@firstoftwo{\def\xwm@pkgsw{00}\xwm@pkg}}
    {\def\xwm@pkgsw{01}\xwm@pkg}%
}
\robust@def*\xwm@pkg#1{%
  \def\do##1{\ttcl{ForestGreen}{\texttt{##1}}}%
  \ltsprintcommalist{#1}\do
  \if\xwm@pkgsw\@space package\ifnum\maxindrisnr>\@ne s\fi\fi
}
\providerobust@def*\email{\hyper@normalise\xwm@email}
\robust@def*\xwm@email#1{\href{mailto:#1}{#1}}
\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       = \ttcl{blue}{\today},
  header-right      = Ahmed Musa,
  footer-center     = \pkg'{xwatermark},
  header-center     = \textsf{\ttcl{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}

\csn@def{watermark-2}{%
  % The macro \aaa below is an unlikely example definition,
  % but it provides a test of xwatermark schemes:
  \def\aaa##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}\ttcl{red}{\textbullet}%
    \hspce The marks on these pages were
    placed effortlessly by using the \pkg'{xwatermark}
    \hspce\ttcl{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}\ttcl{red}{\textbullet}%
      \hspce Page~\thepage~of~\pageref*{xwmlastpage}\hspce
      \ttcl{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}%
          \ttcl{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}\ttcl{red}{\textbullet}%
      \hspace{4.3cm}User manual for the \pkg'{xwatermark}
      \hspace{4.3cm}\ttcl{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}%
}
\csn@def{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}%
  }%
}

\csn@def{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}%
    \ttcl{red}{$\blacktriangleright$}\hspce The~
    \texttt{\ttcl{white}{xwatermark}}~
    package\hspce\ttcl{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}%
    \ttcl{red}{$\blacktriangleright$}\hspace{2.1cm}%
    Page~\thepage~of~\pageref*{xwmlastpage}%
    \hspace{2cm}\ttcl{red}{$\blacktriangleleft$}\hspce
    \color{white}\framebox[2.1cm][t]{\phantom{Hello}}%
    \rotatebox[origin=c]{90}{\makebox[1.4cm][c]{\phantom{Hello}}}%
  }%
}
\csn@def{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!}}%
}
\csn@def{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}}%
  }%
}

\csn@def{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{\ttcl{red}{\scalebox{2}{xwatermark}}}%
          \xwmstrut\z@{1cm}%
        \end{minipage}%
      }%
      \xwmstrut\z@{2cm}%
    \end{minipage}%
  }
  \end{center}%
}

\endinput