3

i am trying to use a image in the 4 corners of every page, i have this code for one corner

\backgroundsetup{%
scale=1,
angle=0,
contents={\includegraphics[width=5cm]{example.jpg}},
position=current page.north east,
anchor=below left,
}

but with this i can just put an image on the top right corner, i cant find the instructions to put in the other corners, so i need help.

thank you

2
  • If your latex is fully up to date it is easier to use the new hook system and hook into shipout/background. It even include absolute positioning on the page
    – daleif
    Apr 18, 2021 at 7:17
  • This might be of help: tex.stackexchange.com/q/568846/158639
    – chsk
    Apr 18, 2021 at 7:26

1 Answer 1

3

Inspired by this link:put images report on every page at absolute position one solution is this one

\documentclass{article}
\usepackage{background}
\usepackage{graphicx}
\usepackage{lipsum}

\backgroundsetup{
    scale=1,
    angle=0,
    opacity=1,
    color=black,
    contents={\begin{tikzpicture}[remember picture, overlay]
            \node at ([xshift=-2cm,yshift=-2cm] current page.north east)
            {\includegraphics[width = 2cm]{lion.png}} %
            node at ([xshift=2cm,yshift=-2cm] current page.north west)
            {\includegraphics[width = 2cm]{lion.png}}% 
            node at ([xshift=-2cm,yshift=2cm] current page.south east)
            {\includegraphics[width = 2cm]{lion.png}}%
            node at ([xshift=2cm,yshift=2cm] current page.south west)
            {\includegraphics[width = 2cm]{lion.png}};
    \end{tikzpicture}}
}
\begin{document}
    
    \lipsum[1-7]
    
\end{document}

Result: enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .