\setupsectionblock and \setupbackgrounds page-break problem
Folks, I want \startfrontmatter to trigger a background image, but I can only get this to appear if I use page=yes (see example below). However, I don’t want any page break between the front-matter and body-matter. If I use page=no (as in the line commented out) this page break disappears — but so does the background image! How can I get the background behind the page where the front-matter text appears, but with no page break before the body-matter? Robin \setupexternalfigures[location=default] \definelayer[frontbackground] \setlayer[frontbackground]{% \externalfigure[mill.png] [width=\paperwidth,height=\paperheight] } \unexpanded\def\frontpartbefore{ \setupbackgrounds[page] [background=frontbackground] } \setupsectionblock[frontpart][page=yes,before=\frontpartbefore] %\setupsectionblock[frontpart][page=no,before=\frontpartbefore] \setupsectionblock[bodypart][page=no] \starttext \startfrontmatter Should be on a first page \stopfrontmatter \startbodymatter Should follow frontmatter with no page break \stopbodymatter \stoptext
Robin.Kirkham@csiro.au mailto:Robin.Kirkham@csiro.au 28. Februar 2016 um 14:49 Folks,
I want \startfrontmatter to trigger a background image, but I can only get this to appear if I use page=yes (see example below).
However, I don’t want any page break between the front-matter and body-matter. If I use page=no (as in the line commented out) this page break disappears — but so does the background image!
How can I get the background behind the page where the front-matter text appears, but with no page break before the body-matter? Set the page background outside of the sectionblock.
\setupexternalfigures[location=default] \definelayer[frontbackground] \setupbackgrounds[page][background=frontbackground] \startsectionblockenvironment[frontpart] \setlayer[frontbackground]{\externalfigure[mill][width=\paperwidth,height=\paperheight]} \stopsectionblockenvironment \setupsectionblock[frontpart][page=no] \setupsectionblock[bodypart][page=no] \starttext \startfrontmatter Should be on a first page \stopfrontmatter \startbodymatter Should follow frontmatter with no page break \stopbodymatter \stoptext Wolfgang
participants (2)
-
Robin.Kirkham@csiro.au
-
Wolfgang Schuster