Am 20.10.2010 um 20:32 schrieb Herbert Voss:
in my example I have set the numbers in the margin. In fact of using the twoside layout I get the numbers only for odd pages in the margin. Is this also possible for the even pages, just like "header 1.2" instead of "1.2 header"?
Herbert
\definepapersize[DE][width=10cm,height=12cm] \setuppapersize [DE][DE] \setuplayout[width=8cm,height=10cm] \setuparranging[doublesided] \setuppagenumbering[alternative=doublesided] % \setupheads[alternative=margin,align=outer] \setupheads[command=\MyHeadCMD]
\def\MyHeadCMD#1#2% {\ininnermargin{#1} \inframed[width=broad,align=inner,frame=off,offset=none]{#2}}
\starttext \chapter{Foo} \section{A long title} \input knuth \section{A long title} \section{A long title} \input knuth \chapter{Bar} \section{A long title} \input knuth \section{A long title} \input knuth \section{A long title} \input knuth \section{A long title} \input knuth \stoptext
Perhaps there is an easier solution, but the above should work too. Regards Andreas