Hi,

i've got some questions on watermarks. At 
http://www.texnik.de/titlepage/background.phtml i found the folowing fine 
working "code". My Questions:
1) How can i use (this) text watermark on every page, without the first 
(title) page?
2) How can i reduce the text size? I changed "/mx (\the\textwidth) split 2 div 
72 add def" to "/mx (\the\textwidth) split 2 div 48 add def", /my dito 
without sucsess.
3) Is it possible to use a linebreak in my text?
4)Why did'nt i see the watermark in the dvi preview?

\AtBeginDocument{\special{!userdict begin
/split {(pt) search { 3 1 roll pop pop } if cvr} def
%%%%%%%%%%% Definitions %%%%%%%%%%%%%%
/font /Palatino-Roman findfont 110 scalefont def
/grayvalue .8 def           % 1 is white
/angle 50 def               % rotation for the text
/bgtext (Erstellt von Roland Schmitz) def   % background text
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
gsave font setfont 1000 1000 moveto
bgtext true charpath pathbbox grestore
3 -1 roll sub 3 1 roll sub neg
/breite exch def /hoehe exch def
/mx (\the\textwidth) split 2 div 72 add def
/my (\the\textheight) split 2 div 72 add def
/bop-hook { gsave grayvalue setgray font setfont
mx my translate angle rotate
breite -2 div hoehe -2 div moveto
bgtext show grestore
} def end
}}
%% Wasserzeichentext -Ende-

-- 
Thanx

Roland

Reply via email to