Does there exist a way to only print the main text in the document on every second page while running some other code on the other pages? What I want is something that runs like in the below example:
\documentclass{memoir}
\usepackage{lipsum}
\begin{document}
\begin{atevenpages}
The content of this environment is supposed to be printed on even-numbered pages. On the other hand, even-numbered pages are supposed to contain none of the main text.
\end{atevenpages}
This is the main text, which is only to appear on odd-numbered pages.
\lipsum[1-22]
\end{document}