If I run pdflatex twice on the file below the entire background is colored, if I run xelatex twice only 1/4 of the page is colored. Anyone can explain why?
\documentclass{report}
\usepackage{xcolor}
\usepackage{background}
\backgroundsetup{scale=1,
angle=0,
opacity=1,
contents={\begin{tikzpicture}[remember picture,overlay]
\path [bottom color = red,middle color = red!30, top color = blue] (current page.south west) rectangle (current page.north east);
\end{tikzpicture}
}
}
\begin{document}
This is a test page!
\end{document}
remember picture. In general this is simply problematic. See e.g. http://tex.stackexchange.com/a/66037/2388. I ran in various occasions into problems when doing this and so I prefer to use eso-pic if I want to place tikzpictures in the background. – Ulrike Fischer Sep 16 '16 at 07:15