On Tue, Jun 5, 2012 at 2:00 PM, Henning Hraban Ramm <hra...@fiee.net> wrote: > Sorry for coming back again and again, but I’m still stuck, and my deadline > is overdue. > > * I need full-page pictures on defined pages in the middle of a chapter. > > * I don’t care if I must define "on page x" or "on the next right page after > the current paragraph". > > - The only way for full-page pictures (i.e. bleeding over the page) that I > know of is layers. > - The only way to interrupt a story with full-page content that I know of is > postponing. > (makeups were a dead end so far - maybe they can help to get to a right page > withput using \page[right]) > > While each works for itself, I can’t get layers working within postponing. > > And when that works, I need to wrap it in a macro, since I alway need to > define and postpone three sequential pages. > > > Without postponing, this works: > > --- *** --- > \setuppagenumbering[alternative=doublesided] > \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)] > %\definemakeup[rightpage][page=right] > > \def\DoublePic#1{ > %\startmakeup[rightpage] % error! > \page[right] > > \resetlayer[bg] > \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]} > \setupbackgrounds[page][background=bg] > \strut > > %\stopmakeup > > % empty back of the first picture, since it’s printed on transparent > paper > %\startmakeup[rightpage] % error! > \page[right] > > > \resetlayer[bg] > > \setlayer[bg]{\externalfigure[#1-hg][height=\dimexpr(\paperheight+6mm)]} > \setupbackgrounds[page][background=bg] > \strut > > %\stopmakeup > \page > } > > \starttext > > \input tufte > > \DoublePic{koe} > > > \input knuth > > \stoptext > > --- *** --- > > This doesn’t: > > --- *** --- > \setuppagenumbering[alternative=doublesided] > \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)] > > \def\DoublePicAt#1#2{ > \startpostponing[#2] > \page[right] % tried also makeups... > > > \resetlayer[bg] > \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]} > \setupbackgrounds[page][background=bg] > \strut > > \page[right] > \setuppagenumber[state=start] > > \resetlayer[bg] > > \setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]} > > \setupbackgrounds[page][background=bg] > \strut > \page > \stoppostponing > } > > \starttext > > \DoublePicAt{hacker}{5} > > > \dorecurse{30}{ > \section{Knuth \recurselevel} > \input knuth > } > > \stoptext > > --- *** --- > > Can you show me a way to use layers within postponing, please? A first step --- still quite similar to your macro. Hope it helps just for now.
\setuppagenumbering[alternative=doublesided] \definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)] \def\DoublePicAt#1#2{ %\startpostponing[#2] \page[right] % tried also makeups... \resetlayer[bg] \setlayer[bg]{\externalfigure[#1][height=\dimexpr(\paperheight+6mm)]} \setupbackgrounds[page][background=bg] \strut \page[right] \setuppagenumber[state=start] \resetlayer[bg] \setlayer[bg]{\externalfigure[#1-back][height=\dimexpr(\paperheight+6mm)]} \setupbackgrounds[page][background=bg] \strut \page %\stoppostponing } \starttext \startpostponing[5] \DoublePicAt{hacker}{5} \stoppostponing \dorecurse{30}{ \section{Knuth \recurselevel} \input knuth } \stoptext -- luigi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________