![pdflatex 和 xelatex 之间的异常](https://linux22.com/image/340971/pdflatex%20%E5%92%8C%20xelatex%20%E4%B9%8B%E9%97%B4%E7%9A%84%E5%BC%82%E5%B8%B8.png)
如果我对下面的文件运行 pdflatex 两次,整个背景都会变色,如果我运行 xelatex 两次,只有 1/4 的页面会变色。有人能解释一下为什么吗?
\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}