ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* header setting
@ 2010-10-20 18:32 Herbert Voss
  2010-10-20 19:17 ` Andreas Harder
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Voss @ 2010-10-20 18:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header setting
  2010-10-20 18:32 header setting Herbert Voss
@ 2010-10-20 19:17 ` Andreas Harder
  2010-10-20 19:42   ` Herbert Voss
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Harder @ 2010-10-20 19:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header setting
  2010-10-20 19:17 ` Andreas Harder
@ 2010-10-20 19:42   ` Herbert Voss
  2010-10-20 20:57     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Voss @ 2010-10-20 19:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: header setting
  2010-10-20 19:42   ` Herbert Voss
@ 2010-10-20 20:57     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-10-20 20:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-20 20:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-20 18:32 header setting Herbert Voss
2010-10-20 19:17 ` Andreas Harder
2010-10-20 19:42   ` Herbert Voss
2010-10-20 20:57     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).