我想在每一页的四个角使用一张图片,其中一个角有此代码
\backgroundsetup{%
scale=1,
angle=0,
contents={\includegraphics[width=5cm]{example.jpg}},
position=current page.north east,
anchor=below left,
}
但是有了这个,我只能在右上角放置一张图片,我找不到放置在其他角落的说明,所以我需要帮助。
谢谢
答案1
受到此链接的启发:将图像报告放在每一页的绝对位置一个解决方案就是这个
\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}