I am using memoir and I have the showtrims setting activated which I want visible on my pages. I am trying to toggle shading of entire pages and so far I am not having any great success. I have looked around but not seen anything obvious that can help me but this is what I have managed to come up with:
\documentclass[showtrims, 10pt]{memoir}
\usepackage{lipsum}
\usepackage{eso-pic}
\stockaiv
\settrims{20mm}{20mm}
\trimFrame
\pagesmallroyalvo
\setbinding{4mm}
\settypeblocksize{*}{24.5pc}{1.618}
\setlrmargins{*}{*}{1.5}
\setulmarginsandblock{6pc}{7pc}{*}
\setmarginnotes{6pt}{6pc}{12pt}
\strictpagecheck
\setlength{\topskip}{1.6\topskip}
\checkandfixthelayout
\begin{document}
\lipsum[1-4]
\newpage
\AddToShipoutPictureBG{
\AtStockUpperLeft{
\colorbox{cyan}{\vspace* \stockheight \hspace \stockwidth}
}
}
\lipsum[1-4]
\AddToShipoutPictureBG{
\AtStockUpperLeft{
}
}
\newpage
\lipsum[1-4]
\end{document}
However there are two problems.
I can't seem to manage to fill out the page in the vertical direction. Only in te horizontal.
I don't seem to be able to turn it off by changing the ship out picture again.
What am I doing wrong? Or is there a better way of doing this?