ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Chapters without chapter number
@ 2012-10-04 17:18 Pavel Hanák
  2012-10-04 17:59 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Pavel Hanák @ 2012-10-04 17:18 UTC (permalink / raw)
  To: ntg-context

Hi all,

I would like to ask what is the best way to achieve this:

The title line of the chapter should be without the chapter number,
but the chapter number should be on all subsequent pages in the header.

I tried this:

\setuphead
  [chapter]
  [header=empty,
   number=no
  ]

\setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]
  
which makes the title of the chapter on the first page correctly without
the chapter number, but then I have no chapter number on subsequent
pages in the header. It looks like setting "number=no" in
\setuphead definition breaks my expected behaviour of marking.

So I tried:

\setuphead
  [chapter]
  [header=empty,
   sectionnumber=no
  ]

but id didn't work either.

So I ended by:

\def\MyChapterTitle#1#2{#2}%

\setuphead
  [chapter]
  [header=empty,
   command=\MyChapterTitle,
  ]

\setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]

which is working like expected, but I wonder, why I am not able to
achieve the result using keywords "number" or "sectionnumber".

Thanks.

Pavel

___________________________________________________________________________________
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] 2+ messages in thread

* Re: Chapters without chapter number
  2012-10-04 17:18 Chapters without chapter number Pavel Hanák
@ 2012-10-04 17:59 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-10-04 17:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 04.10.2012 um 19:18 schrieb Pavel Hanák <pavel@hanak.name>:

> Hi all,
> 
> I would like to ask what is the best way to achieve this:
> 
> The title line of the chapter should be without the chapter number,
> but the chapter number should be on all subsequent pages in the header.
> 
> I tried this:
> 
> \setuphead
>  [chapter]
>  [header=empty,
>   number=no
>  ]
> 
> \setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]
> 
> which makes the title of the chapter on the first page correctly without
> the chapter number, but then I have no chapter number on subsequent
> pages in the header. It looks like setting "number=no" in
> \setuphead definition breaks my expected behaviour of marking.
> 
> So I tried:
> 
> \setuphead
>  [chapter]
>  [header=empty,
>   sectionnumber=no
>  ]
> 
> but id didn't work either.
> 
> So I ended by:
> 
> \def\MyChapterTitle#1#2{#2}%
> 
> \setuphead
>  [chapter]
>  [header=empty,
>   command=\MyChapterTitle,
>  ]
> 
> \setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]
> 
> which is working like expected, but I wonder, why I am not able to
> achieve the result using keywords "number" or "section number".

MkIV:

\setupheadertexts[{\getmarking[chapternumber]. \getmarking[chapter]}]

\setuphead[chapter][sectionset=none]

\starttext

\chapter{Test}

\stoptext

Wolfgang
___________________________________________________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2012-10-04 17:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-04 17:18 Chapters without chapter number Pavel Hanák
2012-10-04 17:59 ` Wolfgang Schuster

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).