Debian Codegraph @

texmf-dist/doc/latex/draftwatermark/test_draftwatermark-4.tex

raw
1 %%
2 %% This is file `test_draftwatermark-4.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% draftwatermark.dtx (with options: `samplecode-dynamic')
8 %%
9 \documentclass{article}
10 \usepackage[svgnames]{xcolor}
11 \usepackage[T1]{fontenc}
12 \usepackage[color=red, fontsize=32pt]{draftwatermark}
13 \usepackage{mathptmx}
14 \usepackage{lipsum}
15 \title{Sample document for the draftwatermark package}
16 \author{}
17
18 \DraftwatermarkOptions{%
19 angle=0,
20 text={\ifodd\thepage ODD\else EVEN\fi},
21 hpos={\ifodd\thepage \dimexpr\paperwidth-5mm\else 5mm\fi},
22 vpos=5mm,
23 vanchor=t,
24 hanchor={\ifodd\thepage r\else l\fi}
25 }
26
27 \begin{document}
28 \maketitle
29
30 \section{One}
31 \lipsum[1-3]
32
33 \section{Two}
34 \lipsum[4-6]
35
36 \end{document}
37 \endinput
38 %%
39 %% End of file `test_draftwatermark-4.tex'.