summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/xwatermark/xwatermark-guide.cfg
blob: 30840505db3861aac90fed9441f8f6fb1d8a4ece (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
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%
% This is file xwatermark-guide.cfg, version 1.5.2a                          %
%                                                                            %
% Copyright (c) 2009-2012 Ahmed Musa (amusa22@gmail.com).                    %
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++%

\ProvidesFile{xwatermark-guide.cfg}
  [2012/02/01 v1.5.2a Configuration file for xwatermark-guide.tex (AM)]
\NeedsTeXFormat{LaTeX2e}
\makeatletter
\ltsloadpackages{%
  xwatermark|printwatermark;
  array;
  colortbl;
%  ltablex;
  multido;
}
%\keepXColumns
\providerobust@def*\colorbullet#1{\textcolor{#1}{\textbullet}\sspace}
\new@def*\whline{%
  \noalign{\global\let\savedarw\arrayrulewidth
    \gdef\arrayrulewidth{1pt}}%
  \hline
  \noalign{\global\let\arrayrulewidth\savedarw}%
}
\newcolumntype{I}{!{\color{red}\vrule width 1pt}}
\newcolumntype{W}{>{\hspace{0pt}\arraybackslash}m{\colthree}}
\newcolumntype{M}{>{\rightskip-.4cm}m{\dimexpr\coltotal+.5cm}}

\amltxoptions{%
  geometryoptions      = {left=3cm,right=3cm,top=2.5cm,%
                          bottom=2.5cm,includeheadfoot},
  reviewdocument        = false,
  parindent             = false,
  tableofcontents       = false,
  frontpagestyle        = empty,
  pretitleskip          = 0ex,
  posttitleskip         = 1ex,
  presuptitleskip       = .15\paperheight,
  postsuptitleskip      = 0ex,
  presubtitleskip       = 0ex,
  postsubtitleskip      = 0ex,
  postauthorskip        = 1cm,
  natbiboptions         = {numbers,sort&compress},
  cmdcolor              = xmagenta1,
  stylecolor            = xgreen1,
  specialcolor          = teal,
  sectionheadcolor      = blue
}
\AtBeginDocument{%
  \hypersetup{pdfstartview=Fit,pdfview=FitB,colorlinks}%
}
\AfterStartOfDocument{%
  \let\footnote\ltsfootnote
}
\robust@def*\otherchars{\quoted{other} characters\sspace}
\newdef*\impnote{\emph{Important note}:\space}
\let\sectionbreak\medbreak
\newletcs\mccolor\makemaccolor
\newletcs\pucolor\makepurple

\ifamd@subsidfile\else\ltsafterfi

\usepackage[persistent,useincluput]{ltxtools-incluput}

\fancypagenos[%
  showonpageone     = false,
  showpagenumbers   = true,
  showheadrule      = true,
  showfootrule      = false,
  yposition         = -.44\paperheight,
  xposition         = 0,
  scale             = 1,
  angle             = 0,
  left-header       = {The \textcolor{macrocolor}{xwatermark} package},
  style             = {\textsc{Page~\thepage~of~\pageref{xwmlastpage}}},
  right-header      = \ttcl{black}{\today}
]

\newwatermark'
[page=1,fontfamily=phv,fontsize=11pt,fontseries=m,align=center,
  coordunit=pc,width=.975\paperwidth,angle=0,scale=1,xpos=-.62,ypos=31.65]{%
  \xwmcolorbox[framesep=5pt,framerule=2pt,fillcolor=white,
    outerframecolor=purple,innerframecolor=brown,textalign=justified,
    width=.975\paperwidth]{%
    \normalfont\small\color{black}\vspace*{-1ex}%
    \parbox{.95\paperwidth}{%
      \begin{center}\colorbullet{red}\hspace{1cm}\licensename\hspace{1cm}%
      \colorbullet{red}\end{center}\vspace*{1ex}%
      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. \CopyrightYear\vspace*{1ex}%
    }%
  }%
}

\def\colorseriescycle{20}
\definecolorseries{C}{cmyk}{last}{white}[cmyk]{1,0,0,0}
\resetcolorseries[10]{C}
\definecolorseries{M}{cmyk}{last}{white}[cmyk]{0,1,0,0}
\resetcolorseries[10]{M}
\definecolorseries{Y}{cmyk}{last}{white}[cmyk]{0,0,1,0}
\resetcolorseries[10]{Y}
\definecolorseries{K}{cmyk}{last}{white}[cmyk]{0,0,0,1}
\resetcolorseries[10]{K}
\definecolorseries{L}{rgb}{step}{yellow!50}[cmyk]{0.1,0.1,0.3}
\resetcolorseries[10]{L}

\newwatermark'[page=1,coordunit=pc,ypos=25,scale=.5]{%
  \begingroup
  \fboxsep=2mm\relax
  \def\elt#1{%
    \vbox{%
      \hbox{%
        \normalfont
        \fboxsep=2mm\relax
        \hfil
        \detokenize\expandafter
          {\expandafter0\expandafter.\number#1}%
        \hfil\vrule height1ex depth.25ex width0pt
      }%
    }%
  }%
  \multido{\ncolr=0+1}{10}{\colorbox{C!![\ncolr]}{\elt{\ncolr}}}\\
  \multido{\ncolr=0+1}{10}{\colorbox{M!![\ncolr]}{\elt{\ncolr}}}\\
  \multido{\ncolr=0+1}{10}{\colorbox{Y!![\ncolr]}{\elt{\ncolr}}}\\
  \multido{\ncolr=0+1}{10}{\colorbox{K!![\ncolr]}{\elt{\ncolr}}}\\
  \multido{\ncolr=0+1}{10}{\colorbox{L!![\ncolr]}{\elt{\ncolr}}}%
  \endgroup
}
\newwatermark[page=1,coordunit=pc,ypos=25]{%
  \begingroup
  \fboxsep=2mm\relax
  \@tempcnta\z@pt
  \ltstfor xwatermark\dofor{%
    \csn@def{d@\number\@tempcnta}{%
      \vbox{\hbox to\dimexpr\paperwidth/13\relax
        {\hfil\detokenize{#1}\hfil
        \vrule height1.8ex depth.6ex width0pt}%
      }%
    }%
    \advance\@tempcnta\@ne
  }%
  \def\elt{\usename{d@\ncolr}}%
  \multido{\ncolr=0+1}{10}{\colorbox{C!![\ncolr]}{\elt}}\\
  \multido{\ncolr=0+1}{10}{\colorbox{M!![\ncolr]}{\elt}}\\
  \multido{\ncolr=0+1}{10}{\colorbox{Y!![\ncolr]}{\elt}}\\
  \multido{\ncolr=0+1}{10}{\colorbox{K!![\ncolr]}{\elt}}\\
  \multido{\ncolr=0+1}{10}{\colorbox{L!![\ncolr]}{\elt}}%
  \endgroup
}
\ltsfi

\endinput