I'd like to include a graphic as watermark in a document with the twoside option and asymmetric page margins adjusted with the geometry package. There's a plethora of packages that are suitable for the task, but with a few restrictions:

The xwatermark package is simple to use, but I can't specify options for even and odd pages at the same time, so either the watermark appears only on half of the pages or it's page-centered rather than text-centered.
With packages such as watermark, I can't exclude the watermark on specific pages, e.g. the title page and certain pages with diagrams.
Lastly, packages like atbegshi provide access to dvi internals, but I don't have the time to work it all out myself.

So my question is: what is the most elegant way to implement such a flexible watermark? If it is relevant, I'm currently using LaTeX with PSTricks on Windows 7, but may well switch to ConTeXt with PGF/TikZ on Linux in the future...

Thanks in advance.

  • 2
    If the watermark package otherwise works, why can't you use its \thiswatermark{} command to place an empty watermark on the pages you don't want to have watermarks on? – Alan Munn Feb 6 '11 at 18:28
  • @alan-munn as it turned out, I just messed up the \put command--now it works fine. And since its position is relative to the text area, I don't need to distinguish between even and odd pages... – pazathoth Feb 7 '11 at 15:38
  • I suggest closing this question then, since it was based on a miscoding rather than an actual problem with the packages mentioned. – Alan Munn Feb 7 '11 at 18:38
  • In xwatermark package use two separate calls to \newwatermark to specify different options for even and odd pages. A minimal example will be useful here. – Ahmed Musa Nov 10 '12 at 18:18

You could also go with tikz. Page 170 in the PGF & TIKZ manual shows an example.

\begin{tikzpicture}[remember picture,overlay]
\node [rotate=60,scale=10,text opacity=0.2]
at (current page.center) {Example};

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.