I want to set the background color specifically for the page created for each "Part" section in my document (e.g. Part I xxx, Part II xxxx). I am using the book document class. Solutions for setting (and resetting) the background colour were not able to specifically color the page with Part I xxxx on it, but also coloured the page after that.
MWE:
\documentclass{book}
\usepackage{xcolor}
\begin{document}
First page
\cleardoublepage
\pagecolor{green}
\part{Example for pagecolor}
\pagecolor{white}
Last page
\end{document}
The "Part" page and the page following it are both colored green.