setupheads[sectionnumber=no] (and retrocompatibility issue)
![](https://secure.gravatar.com/avatar/02a476cdfdfea19af9c2be1be1571d7d.jpg?s=120&d=mm&r=g)
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. Thanks in advance for the attention. Cheers -- Marco
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/02a476cdfdfea19af9c2be1be1571d7d.jpg?s=120&d=mm&r=g)
Wolfgang Schuster
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
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 01.02.2012 um 18:31 schrieb Marco Pessotto:
Wolfgang Schuster
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
participants (2)
-
Marco Pessotto
-
Wolfgang Schuster