如果我对下面的文件运行 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}