[NTG-context] header setting
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 ___ 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 ___
Re: [NTG-context] header setting
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 ___
Re: [NTG-context] header setting
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 ___ 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 ___
Re: [NTG-context] header setting
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 - ___ 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 ___