summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-watermark.html
blob: 1532fa3f50d7ebd74bfe67d7705c0292241ce6ca (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
<head>
<title>UK TeX FAQ -- question label watermark</title>
</head><body>
<h3>&#8216;Watermarks&#8217; on every page</h3>
<p/>It&#8217;s often useful to place some text (such as &#8216;DRAFT&#8217;) in the
background of every page of a document.  For LaTeX users, this can
be achieved with the <i>draftcopy</i> package.  This can deal with
many types of DVI processors (in the same way that the graphics
package does) and knows translations for the word &#8216;DRAFT&#8217; into a wide
range of languages (though you can choose your own word, too).
Unfortunately, however, the package relies on PostScript specials, and will
therefore fail if you are viewing your document with <i>xdvi</i>,
and won&#8217;t even compile if you&#8217;re using PDFLaTeX.  (PDFLaTeX
users need one of the other solutions below.)
<p/>The <i>wallpaper</i> package builds on <i>eso-pic</i> (see
below).  Apart from the single-image backdrops described above
(&#8220;wallpapers&#8221;, of course, to this package), the package provides
facilities for tiling images.  All its commands come in pairs: one for
&#8220;general&#8221; use, and one applying to the current page only.
<p/>The <i>draftwatermark</i> package uses the same author&#8217;s
<i>everypage</i> package to provide a simple interface for adding
textual (&#8216;DRAFT&#8217;-like) watermarks.
<p/>More elaborate watermarks may be achieved using the <i>eso-pic</i>
package, which in turn uses the package <i>everyshi</i>, or by
using <i>everypage</i>.  <i>Eso-pic</i> attaches a
<code>picture</code> environment to every page as it is shipped out;
you can put things into that environment.  The package provides
commands for placing things at certain useful points (like &#8220;text
upper left&#8221; or &#8220;text centre&#8221;) in the picture, but you&#8217;re at liberty
to do what you like.
<p/><i>Eso-pic</i> is, in turn, built upon the package
<i>atbegshi</i>.  That package has the capability to produce
watermarks <em>on top of</em> the other material on the page; this
doesn&#8217;t sound very &#8220;watermark-like&#8221;, but can be useful on pages
where the watermark would otherwise be hidden by graphics or the
like.  The <i>atbegshi</i> command that <i>eso-pic</i> uses is
<code>\</code><code>AtBeginShipoutUpperLeft</code>; <code>\</code><code>AtBeginShipoutUpperLeftForeground</code>
is what&#8217;s needed instead to place the material on top of the rest of
the content of the page.
<p/><i>Everypage</i> allows you to add &#8220;something&#8221; to every page, or
to a particular page; you therefore need to construct your own
apparatus for anything complicated.
<dl>
<dt><tt><i>atbegshi.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/oberdiek.zip">macros/latex/contrib/oberdiek</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/oberdiek/">browse the directory</a>); <a href="http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/atbegshi.html">catalogue entry</a>
<dt><tt><i>draftcopy.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/draftcopy.zip">macros/latex/contrib/draftcopy</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/draftcopy/">browse the directory</a>)
<dt><tt><i>draftwatermark.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/draftwatermark.zip">macros/latex/contrib/draftwatermark</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/draftwatermark/">browse the directory</a>)
<dt><tt><i>eso-pic.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/eso-pic.zip">macros/latex/contrib/eso-pic</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/eso-pic/">browse the directory</a>)
<dt><tt><i>everypage.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/everypage.zip">macros/latex/contrib/everypage</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/everypage/">browse the directory</a>)
<dt><tt><i>everyshi.sty</i></tt><dd>Distributed as part of <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/ms.zip">macros/latex/contrib/ms</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/ms/">browse the directory</a>); <a href="http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/everyshi.html">catalogue entry</a>
<dt><tt><i>wallpaper.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/wallpaper.zip">macros/latex/contrib/wallpaper</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/wallpaper/">browse the directory</a>)
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=watermark">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=watermark</a>
</body>