Sometimes a discussion on a figure spills over several pages and I want to insert a copy of the figure on every even numbered page while the discusses continues.
There was a closely related question on this (inserting an image after every page) but there the required effect was to set a picture in the preample and insert it on every even numbered page throughout the document. Whereas I want to do this insertion on demand and for different figures, i.e. I need a macro which tells which figure to include on even numbered pages until I issue another macro saying that the insertion now must end.
My MWE follows but there I only expressed what I am after. I don't have the faintest idea about how to proceed.
Any suggestions?
\documentclass[12pt]{amsbook}
\usepackage{mwe,lipsum}
\begin{document}
\includegraphics[width=0.5\textwidth]{example-image-a}
%
% Now I want "example-image-a", or a re-scaled smaller version, to be inserted at the beginning of every even numbered page until the end of \lipsum or until I say so.
%
%
\lipsum[1-18]
%
\includegraphics[width=0.5\textwidth]{example-image-b}
%
% Now I want "example-image-b", or a re-scaled smaller version, to be inserted at the beginning of every even numbered page until the end of \lipsum or until I say so.
%
%
\lipsum
%
\end{document}
\renewcommand{\OddPicture}{} \renewcommand{\EvenPicture}{}whenever you want to stop the figures. This is in my eample. Of course you could define\newcommand{\StopFigures}{\renewcommand{\OddPicture}{} \renewcommand{\EvenPicture}{}}. – Apr 14 '18 at 17:13\StopPicturesfor that purpose. – Apr 14 '18 at 22:41\StopPicturesa bit earlier. – Apr 15 '18 at 12:57