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