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] \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
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
Am 20.10.2010 21:17, schrieb Andreas Harder:
\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}}
yes, it works and I suppose that I do not need the offset setting. thanks Herbert
On 20-10-2010 9:42, Herbert Voss wrote:
Am 20.10.2010 21:17, schrieb Andreas Harder:
\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}}
yes, it works and I suppose that I do not need the offset setting.
you might want to play with offset=none | 0pt | 10pt | overlay strut=yes | no combinations to see what happens \showstruts helps with that ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Andreas Harder
-
Hans Hagen
-
Herbert Voss