Re: [NTG-context] setupheads[sectionnumber=no] (and retrocompatibility issue)

2012-02-01 Thread Wolfgang Schuster

Am 01.02.2012 um 12:36 schrieb Marco Pessotto:

 
 Hello there.
 
 See this minimal example.
 
 %% cut here
 \setupheads[sectionnumber=no]
 
 \starttext
 
 \placecontent
 
 \chapter{Chapter}
 
 \section{Section}
 
 \subsection{Subsection}
 
 \stoptext
 %% end
 
 With version: 2012.01.25 14:16 the numbers are there (and if I tweak the
 ToC listing I get a mess). With the current (2011.05.18 22:26)
 everything is fine.
 
 Using [number=no] with the beta the numbers disapper, while the current
 prints out the numer (and again a mess in the ToC).
 
 http://wiki.contextgarden.net/Reference/en/setupheads says that the
 right command is sectionnumber, but it's obviously outdated.

The reference pages (and also the other wiki pages) explain often the behaviors
of MkII but for MkIV the numbering mechanism has slightly changed.

There are different ways to disable numbering for the heading, for a whole
sectionblock you can disable them with \setupsectionblock[…][number=no]
and for individual heading you can use \setuphead[…][number=no] or
\setuphead[…][incrementnumber=no].

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
___


Re: [NTG-context] setupheads[sectionnumber=no] (and retrocompatibility issue)

2012-02-01 Thread Marco Pessotto
Wolfgang Schuster schuster.wolfg...@googlemail.com writes:

 Am 01.02.2012 um 12:36 schrieb Marco Pessotto:

 http://wiki.contextgarden.net/Reference/en/setupheads says that the
 right command is sectionnumber, but it's obviously outdated.

 The reference pages (and also the other wiki pages) explain often the
 behaviors of MkII but for MkIV the numbering mechanism has slightly
 changed.

 There are different ways to disable numbering for the heading, for a
 whole sectionblock you can disable them with
 \setupsectionblock[…][number=no] and for individual heading you can
 use \setuphead[…][number=no] or \setuphead[…][incrementnumber=no].

 Wolfgang

Thanks. I guess \setupheads[number=no,sectionnumber=no] won't harm in
any case (so the document will compile correctly on both the beta and
the current).

Cheers.

-- 
Marco

___
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] setupheads[sectionnumber=no] (and retrocompatibility issue)

2012-02-01 Thread Wolfgang Schuster

Am 01.02.2012 um 18:31 schrieb Marco Pessotto:

 Wolfgang Schuster schuster.wolfg...@googlemail.com writes:
 
 Am 01.02.2012 um 12:36 schrieb Marco Pessotto:
 
 http://wiki.contextgarden.net/Reference/en/setupheads says that the
 right command is sectionnumber, but it's obviously outdated.
 
 The reference pages (and also the other wiki pages) explain often the
 behaviors of MkII but for MkIV the numbering mechanism has slightly
 changed.
 
 There are different ways to disable numbering for the heading, for a
 whole sectionblock you can disable them with
 \setupsectionblock[…][number=no] and for individual heading you can
 use \setuphead[…][number=no] or \setuphead[…][incrementnumber=no].
 
 Wolfgang
 
 Thanks. I guess \setupheads[number=no,sectionnumber=no] won't harm in
 any case (so the document will compile correctly on both the beta and
 the current).

Or use only “incrementnumber=no” (or “incrementnumber=list” when you want
the the titles in the table of contents) which works with the old and new code.

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
___