summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.cfg
blob: 163a26271299e94d1331ca7d70d76dba12d73fd1 (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
%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
% 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{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