summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide-1dot4.cfg
blob: c1bab2cf13fb3a2496ec4f873b2d0ff131514c46 (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
%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
% This is file xwatermark-guide.cfg, the configuration file for   %
% the files xwatermark-guide.tex and xwatermark-examples.tex,     %
% version 1.4.                                                    %
%                                                                 %
% (c) Ahmed Musa 2010 (a.musa@rocketmail.com)                     %
%+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
\ProvidesFile{xwatermark-guide.cfg}%
  [2010/01/10 v1.4 Configuration file for xwatermark-guide.tex (AM)]
\NeedsTeXFormat{LaTeX2e}
\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%
}
\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{\textcolor{purple}{\today}\vadjust{\kern2ex\hrule}}
\renewcommand*\reftextcurrent{on this page}
\newcommand*\nTeX{\TeX\xspace}
\newcommand*\nLaTeX{\LaTeX\xspace}
\def\La{\leavevmode L\raise.42ex\hbox{\footnotesize\kern-.35em A}}
\newcommand*\TeXorLaTeX{\hbox{(\/\La\kern-.15em\/)\kern-.1em\TeX}}
\newcommand*\TeXL{\TeXorLaTeX\xspace}
\newcommand*\Xe{\leavevmode X\kern-.125em\lower.5ex\hbox{\reflectbox{E}}}
\def\XeTeX{\mbox{\Xe\kern-.1667em\TeX}\xspace}
\def\XeLaTeX{\mbox{\Xe\kern-.15em\TeXorLaTeX}}
\def\pdfTeX{pdf\nTeX}
\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{\@ifnextchar.{e.g}{e.g.}\xspace}
\def\ie{\@ifnextchar.{i.e}{i.e.}\xspace}
\def\etc{\@ifnextchar.{etc}{etc.}\xspace}
\newcommand*\email[1]{\href{mailto:#1}{#1}}
\newrobustcmd*\stya[1]{\textcolor{xgreen1}{#1}\xspace}
\newrobustcmd*\styb[1]{\textcolor{teal}{#1}\xspace}
\newrobustcmd*\cmda[1]{\textcolor{xgreen1}{\textbackslash#1}\xspace}
\newrobustcmd*\cmdb[1]{\textcolor{teal}{\textbackslash#1}\xspace}
\newrobustcmd*\usepackxwm{\cmda{usepackage\{xwatermark\}}}
\newrobustcmd*\dclass{\cmdb{documentclass}}
\newrobustcmd*\wmsetup{\cmda{watermarksetup}}
\def\copyrightyear{\copyright~\uppercase\expandafter{\romannumeral\year}\xspace}
\def\colorbullet#1{\textcolor{#1}{\textbullet}\xspace}
\newrobustcmd*\xcopyright[2]{%
  \leavevmode#1\textcolor{#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]{\dimexpr\marginparsep+\marginparwidth\relax}
\lhead{\helv The \texttt{\textcolor{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}%
    \textcolor{red}{\textbullet}\hspace{1cm}The marks on these pages were placed effortlessly
    by using the \textcolor{blue}{xwatermark} package\hspace{1cm}%
    \textcolor{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*{-.1mm}%
    \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}%
        \textcolor{red}{\textbullet}%
        \hspace{1cm}Page~\thepage~of~\pageref*{LastPage}\hspace{1cm}%
        \textcolor{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.45cm}[0cm][0cm]{\makebox[0cm][r]{%
      \xwcolorbox{framesep=5pt,framerule=2pt,fillcolor=yellow!55,framecolor=white,
        align=justified,width=.81\paperwidth,%
        text={\normalfont\small\color{blue}\vspace*{-1ex}%
          \begin{center}\colorbullet{red}\copyrightyear Ahmed Musa \colorbullet{red}\end{center}%
          This work (i.e., all the files in the \stya{xwatermark} manifest) may be distributed and/or modified under the conditions of the \LaTeX\ Project Public License (LPPL), either version 1.3 of this license or any later version.
          The LPPL maintenance status of this software is `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}%
      \textcolor{red}{\textbullet}%
      \hspace{4.3cm}User manual for the \textcolor{blue}{xwatermark} package\hspace{4.3cm}%
      \textcolor{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}%
    \textcolor{red}{$\blacktriangleright$}\hspace{1cm}The~%
    \texttt{\textcolor{white}{xwatermark}}~%
    package\hspace{1cm}\textcolor{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*{-.1mm}%
    \xwcolorbox{framesep=5pt,framerule=2pt,fillcolor=red!75!blue!45,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=green!75!blue!50,framecolor=white,
        align=center,width=.81\paperwidth,textcolor=white,
        text={\copyrightyear 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}%
    \textcolor{red}{$\blacktriangleright$}\hspace{2.1cm}Page~\thepage~of~\pageref*{LastPage}%
    \hspace{2cm}\textcolor{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}}%
}
\makeatother
\endinput

%%% End of file xwatermark.cfg %%%