ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* setupheads[sectionnumber=no] (and retrocompatibility issue)
@ 2012-02-01 11:36 Marco Pessotto
  2012-02-01 17:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Pessotto @ 2012-02-01 11:36 UTC (permalink / raw)
  To: ntg-context


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

___________________________________________________________________________________
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: setupheads[sectionnumber=no] (and retrocompatibility issue)
  2012-02-01 11:36 setupheads[sectionnumber=no] (and retrocompatibility issue) Marco Pessotto
@ 2012-02-01 17:03 ` Wolfgang Schuster
  2012-02-01 17:31   ` Marco Pessotto
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2012-02-01 17:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: setupheads[sectionnumber=no] (and retrocompatibility issue)
  2012-02-01 17:03 ` Wolfgang Schuster
@ 2012-02-01 17:31   ` Marco Pessotto
  2012-02-01 17:51     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Marco Pessotto @ 2012-02-01 17:31 UTC (permalink / raw)
  To: ntg-context

Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________

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

* Re: setupheads[sectionnumber=no] (and retrocompatibility issue)
  2012-02-01 17:31   ` Marco Pessotto
@ 2012-02-01 17:51     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2012-02-01 17:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 01.02.2012 um 18:31 schrieb Marco Pessotto:

> Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________


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

end of thread, other threads:[~2012-02-01 17:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01 11:36 setupheads[sectionnumber=no] (and retrocompatibility issue) Marco Pessotto
2012-02-01 17:03 ` Wolfgang Schuster
2012-02-01 17:31   ` Marco Pessotto
2012-02-01 17:51     ` 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).