Am 19.05.10 18:21, schrieb Otared Kavian:
Dear all,
I need to have a special layout, in which a number (which is not a page number nor a section number or such) is printed in big size on the right when the pagenumber is even (that is on a leftpage) and printed on the left when the pagenumber is odd (that is a rightpage). With the help of examples gleaned here and there in the manuals, I came up with the following minimal example:
[...]
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