0

Hello I was wanting to put word in all pages exactly like the one shown

Add watermark that overlays the images

Though the watermark works for me this one does not work for me (I ran the exact same code). Is there an alternative to write like this?

주성우
  • 133

1 Answers1

2

Sure! You can use eso-pic. \AddToShipoutPictureBG will add content to the BackGround to all pages, while \AddToShipoutPictureFG will do the same but in the ForeGround (starred version will limit it to the current page).

enter image description here

\documentclass{article}

\usepackage{xcolor,graphicx,eso-pic} \usepackage{lipsum}

\AddToShipoutPictureBG{% \AtPageCenter{% At center of page \scalebox{10}{% Size (scaled 10x) \rotatebox{45}{% Angle \makebox[0pt]{% Centered horizontally \color{red!50}% Colour DRAFT% }% }% }% }% }

\begin{document}

\lipsum[1-2]

\begin{figure}[!ht] \centering \includegraphics[width=3cm]{example-image} \end{figure}

\lipsum[1-2]

\end{document}

Here's the same with \AddToShipoutPictureFG:

enter image description here

Werner
  • 603,163