I want to add color gradient in whole page as from top to bottom red color slowly becomes blue in a article in xelatex. class I tried thus
\documentclass{article}
\usepackage[dvipsnames]{xcolor}
\usepackage{background}
\usepackage{blindtext}
\backgroundsetup{
scale=1,
angle=0,
opacity=1,
contents={\begin{tikzpicture}[remember picture,overlay]
\path [left color =red,middle color = blue, right color = Blue] (current page.south west)rectangle (current page.north east);
\end{tikzpicture}}}
\begin{document}
ABC
\end{document}
I want to create this gradient through entire page
\begin{tikzpicture} ... \end{tikzpicture}
environment. The problem is caused byoverlay
but you don't needremember picture
so you can remove both.