On 11/9/21 4:18 AM, jbf via ntg-context wrote:
I want a particular layer to repeat on recto pages only, but I don't want this to happen in frontmatter, only in bodymatter.
This is what I have done, just before the first chapter after \startbodymatter (but unsuccessfully; the layer repeats for every page at the moment. I must have omitted something).
Hi Julian, this is what you want: \startsectionblockenvironment[bodypart] \setupbackgrounds [rightpage] [background=butterfly] \stopsectionblockenvironment
\startbodymatter
\setupbackgrounds [rightpage] [background=butterfly]
\startchapter[title={Chapter title}] \definelayer[butterfly] [x=0mm, y=0mm,repeat=yes,width=\paperwidth, height=\paperheight] \setlayer[butterfly] [hoffset=.99\textwidth, voffset=1cm] {\externalfigure[bfly.jpg][width=1.5cm]} \setupbackgrounds[page][background=butterfly]
The last line adds backgrounds to every page. And without doublesided, there are not right and left pages. And you don’t need the \define and \setlayer after \startchapter. A complete sample would read: \setuppagenumbering[alternative=doublesided] \definelayer[butterfly][state=repeat] \setlayer[butterfly] [hoffset=.99\textwidth, voffset=1cm] {butterfly} \startsectionblockenvironment[bodypart] \setupbackgrounds [rightpage] [background=butterfly] \stopsectionblockenvironment \def\rubbish% {\dorecurse{2} {\chapter{Chapter} \dorecurse{25}{\input knuth}}} \starttext \startfrontmatter \rubbish \stopfrontmatter \startbodymatter \rubbish \stopbodymatter \startappendices \rubbish \stopappendices \startbackmatter \rubbish \stopbackmatter \stoptext I hope it helps, Pablo