Thanks Wolfgang!
Somehow I overlooked the two subtleties you are teaching me here:

> \definelayer[Number][width=\paperwidth,height=\paperheight,doublesided=yes]

in which the option doublesided=yes, helps and the options [odd] or [even] in 
\setlayer:
 
> \setlayer[Number][odd]
> \setlayer[Number][even]

I will wikify this later this weekend.

Best regards: OK

On 20 mai 2010, at 10:14, Wolfgang Schuster wrote:

> Good example!
> 
> 
> \setupcolors[state=start]
> 
> \setuppagenumbering[location=footer,alternative=doublesided]
> 
> \definelayer[Number][width=\paperwidth,height=\paperheight,doublesided=yes]
> 
> \define[1]\myNumber
>  {\setlayer[Number][odd]
>     [preset=righttop,voffset=45mm,hoffset=3mm]
>     {\offset[location=rt,rightoffset=-3mm]
>        {\tlap{\color[darkgreen]{\scale[height=30mm,width=22mm]{\ss#1}}}}}%
>   \setlayer[Number][even]
>     [preset=lefttop,voffset=45mm,hoffset=25mm]
>     {\offset[location=tl,leftoffset=-3mm]
>        {\tlap{\color[darkgreen]{\scale[height=30mm,width=22mm]{\ss#1}}}}}}
> 
> \setupbackgrounds[page][background=Number]
> 
> \starttext
> \dorecurse{4}{\myNumber{#1}\input knuth \page}
> \dorecurse{4}{\myNumber{#1}\dorecurse{6}{\input knuth }\page}
> \dorecurse{4}{\myNumber{#1}\dorecurse{3}{\input knuth }\page}
> \stoptext
> 
> Wolfgang


___________________________________________________________________________________
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