On Tue, Jun 5, 2012 at 6:08 PM, luigi scarso
On Tue, Jun 5, 2012 at 6:01 PM, Henning Hraban Ramm
wrote: Am 2012-06-05 um 14:42 schrieb luigi scarso:
Another one
\setuppagenumbering[alternative=doublesided]
\definelayer[bg][x=0mm,y=-3mm,width=\dimexpr(\paperwidth+3mm),height=\dimexpr(\paperheight+6mm)]
\unexpanded\def\DoDoublePicAt#1{ \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 }
\def\DoublePicAt#1#2{ \startpostponing[#2] \DoDoublePicAt{#1} \stoppostponing }
\starttext \DoublePicAt{hacker}{5}
\dorecurse{30}{ \section{Knuth \recurselevel} \input knuth }
\stoptext
Thank you again, but, did you test that? I get:
) Runaway argument? \dorecur\section{\ETC.r} \stoppostponing
! File ended while scanning use of \buff_gobble. Uhm I've tested but maybe I've made a wrong cut and paste. Re-check now. Ah, it 's a side effect of the previous code
-- luigi