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.

system > tex > error on line 4 in file /Users/hraban/Library/ texmf/tex/texmf-context/tex/context/base/cont-yes.mkiv: File ended while scanning use of \buff_gobble ...

 1     %D \module
 2     %D   [       file=cont-yes,
 3     %D        version=2012.06.01,
 4 >>  %D          title=\CONTEXT\ Miscellaneous Macros,
 5     %D       subtitle=Startup Stub,
 6     %D         author=Hans Hagen,
 7     %D           date=\currentdate,
 8     %D      copyright={PRAGMA ADE \& \CONTEXT\ Development Team}]
 9     %C
10     %C This module is part of the \CONTEXT\ macro||package and is
11     %C therefore copyrighted by \PRAGMA. See mreadme.pdf for
12     %C details.
13
14     % At some point I will reconsider the \starttext .. \stoptext

<inserted text>
                \par
l.4 }

}   context.finishjob()

\luat_start_lua_code_indeed ...ua \zerocount {#1}}

l.70 \stopluacode

?


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to