%% %% This is file `test_draftwatermark4.tex', %% generated with the docstrip utility. %% %% The original source files were: %% %% draftwatermark.dtx (with options: `samplecode-dynamic') %% \documentclass{article} \usepackage[named]{xcolor} \usepackage[T1]{fontenc} \usepackage[color=red, fontsize=32pt]{draftwatermark} \usepackage{mathptmx} \usepackage{lipsum} \title{Sample document for the draftwatermark package} \author{} \DraftwatermarkOptions{% angle=0, text={\ifodd\thepage ODD\else EVEN\fi}, hpos={\ifodd\thepage \dimexpr\paperwidth-5mm\else 5mm\fi}, vpos=5mm, vanchor=t, hanchor={\ifodd\thepage r\else l\fi} } \begin{document} \maketitle \section{One} \lipsum[1-3] \section{Two} \lipsum[4-6] \end{document} %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z %% Digits \0\1\2\3\4\5\6\7\8\9 %% Exclamation \! Double quote \" Hash (number) \# %% Dollar \$ Percent \% Ampersand \& %% Acute accent \' Left paren \( Right paren \) %% Asterisk \* Plus \+ Comma \, %% Minus \- Point \. Solidus \/ %% Colon \: Semicolon \; Less than \< %% Equals \= Greater than \> Question mark \? %% Commercial at \@ Left bracket \[ Backslash \\ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \endinput %% %% End of file `test_draftwatermark4.tex'.