3

How do I add watermark into document, but from second page. Or better, from, instance, from second page and to, for instance, 10th page of document?

egreg
  • 1,121,712
KernelPanic
  • 573
  • 1
  • 6
  • 16

2 Answers2

7

Here's one option using the background package; read the package documentation to see all the customization possibilities it offers:

\documentclass{article}
\usepackage[contents={}]{background}
\usepackage{lipsum}

\AddEverypageHook{
  \ifnum\value{page}=1\relax
  \else
  \backgroundsetup{contents={my text}}
  \fi
\BgMaterial
}
\begin{document}

\lipsum[1-30]

\end{document}

Use the

\backgroundsetup{}

command in the \else branch to place the desired material, at the desired location, with the specified attributes. enter image description here

Gonzalo Medina
  • 505,128
3

Similar to Gonzalo's answer, just using draftwatermark:

enter image description here

\documentclass{article}
\usepackage{draftwatermark,xcolor}
\usepackage{lipsum}

\SetWatermarkAngle{45}
\SetWatermarkColor{red!30}
\SetWatermarkScale{5}
\SetWatermarkText{%
  \ifnum\value{page}=1\relax% Nothing on page 1;
  \else DRAFT \fi}

\begin{document}

\lipsum[1-30]

\end{document}

For conditional printing of content, make sure you specify this condition as part of \SetWatermarkText.

Werner
  • 603,163