0

I'd like to get a background image on every page of a document, but I just get it on the first page with the following code!

\documentclass[11pt]{article}
\usepackage{fullpage, lipsum, tikz}

\begin{document}
\tikz[remember picture, overlay] \node[opacity=.1, inner sep=0pt] at(current page.center){\includegraphics[width=14cm, angle=45]{pic.png}};
\lipsum[1-20]
\end{document}
1

You can use eso-pic for that. (There are also specific watermark packages available but this might be one of the easiest ways to retain full control. Please note that I do not have pic.png so I replaced it by a generic picture. You may also want to use geometry instead of fullpage.)

\documentclass[11pt]{article} 
\usepackage{fullpage, lipsum, tikz}
\usepackage{eso-pic}
\AddToShipoutPictureBG{%
\begin{tikzpicture}[remember picture, overlay]
\node[opacity=.1, inner sep=0pt]
    at(current page.center){\includegraphics[width=14cm,
    angle=45]{example-image-duck}};
\end{tikzpicture}%
}
\begin{document}
\lipsum[1-20] 
\end{document}

enter image description here

| improve this answer | |
  • That's what I was looking for... thanks a lot! – Romeo Feb 7 at 19:40

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.