I am trying to do this, basically my document has some floats, with captions,
that appear within the text, but occasionally, I want some special images to be
rendered across the full page (left and right). The text of the chapter should
appear on the pages before this and after it, but not on the page with these
images. And the page number/headings shouldn't appear. Ideally the caption just
is displayed bottom left, on the left-side / verso page.
Is there a simple way to achieve that?
I found and modified this code on-line, which it works well, but it isn't
flexible, in that my document might have 20 more such images, and this way that
its defined means a lot of redundant code used:
%%% Full-Page Graphics
\unprotect
\useexternalfigure [railroad] [P1976-48-33b] [
width=2\paperwidth,
height=\paperheight,
]
\newcount\railcount
\def\pickhalfrail_cmd{%
\setupclipping [nx=2,ny=1]%
\ifnum\railcount>0
\ifodd\pagenumber %% clip right half
\clip[x=2,y=1]
\else %% clip left half
\clip[x=1,y=1]
\fi{\externalfigure[railroad]}%
\global \advance \railcount \minusone
\fi%
}
\defineoverlay [pickhalfrail] [\pickhalfrail_cmd]
\setupbackgrounds [paper] [background=pickhalfrail]
\def\railbackgrounds{%
\pagebreak
\null
\pagebreak
\global\railcount=2
\page[imagetopagebreak]
\null
\page[imagetopagebreak]
\null
\page[imagetopagebreak]
\null
}
%% Adjust page style to hide text when images appear
\definepagebreak[imagetopagebreak][yes,header,footer]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________