ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unnumbered chapters (title), numbered appendices
@ 2013-04-09 10:53 Alan BRASLAU
  2013-04-09 11:17 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Alan BRASLAU @ 2013-04-09 10:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I am having difficulties with the use of unnumbered chapters (\title)
as well as the use of appendices.

http://wiki.contextgarden.net/Titles#Unnumbered_titles_in_table_of_contents
gives a few recipes for the use of unnumbered titles and their inclusion in
the table of contents. Unfortunately, they do not work!

\definehead [intro] [chapter] \setuphead [intro] [number=no]
will increment the chapter number, as does 
\setuphead [title] [incrementnumber=yes,number=no]

trying "coupling=no" gives missing number errors (in the toc).

Furthermore, placing chapters into \frontmatter and \backmatter might not always be a solution.



In a document structured in *parts*, one might want to have an introduction
(and other "front matter") as well as conclusions (and other "back matter").
One needs a means of switching section blocks, for example, without resetting everything.
Maybe this can become an option in
\startfrontmatter [reset=no]
\startappendices [reset=no]
\startbackmatter [reset=no]
for example, or else:
\setupsectionblock [appendix] [resetnumber=no] % number=yes|no


Another route could be through the use of the *mysterious* structureresetset
\definestructureresetset [default] [0,0] [1] % do not reset parts and chapters
\setuphead [part,chapter] [sectionresetset=default]
coupled somehow to the section blocks.

Alan

___________________________________________________________________________________
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: Unnumbered chapters (title), numbered appendices
  2013-04-09 10:53 Unnumbered chapters (title), numbered appendices Alan BRASLAU
@ 2013-04-09 11:17 ` Wolfgang Schuster
  2013-04-09 11:57   ` Alan BRASLAU
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2013-04-09 11:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 09.04.2013 um 12:53 schrieb Alan BRASLAU <alan.braslau@cea.fr>:

> Hello,
> 
> I am having difficulties with the use of unnumbered chapters (\title)
> as well as the use of appendices.
> 
> http://wiki.contextgarden.net/Titles#Unnumbered_titles_in_table_of_contents
> gives a few recipes for the use of unnumbered titles and their inclusion in
> the table of contents. Unfortunately, they do not work!
> 
> \definehead [intro] [chapter] \setuphead [intro] [number=no]
> will increment the chapter number, as does 
> \setuphead [title] [incrementnumber=yes,number=no]
> 
> trying "coupling=no" gives missing number errors (in the toc).

Use

  \placelist[chapter,intro,section,…]

to flush a list with your intro heading or extend \completecontent with \intro:

  \definecombinedlist[content][chapter,intro,section,…]

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: Unnumbered chapters (title), numbered appendices
  2013-04-09 11:17 ` Wolfgang Schuster
@ 2013-04-09 11:57   ` Alan BRASLAU
  2013-04-09 21:22     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Alan BRASLAU @ 2013-04-09 11:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 9 Apr 2013 13:17:06 +0200
Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> Am 09.04.2013 um 12:53 schrieb Alan BRASLAU <alan.braslau@cea.fr>:
> 
> > Hello,
> > 
> > I am having difficulties with the use of unnumbered chapters (\title)
> > as well as the use of appendices.
> > 
> > http://wiki.contextgarden.net/Titles#Unnumbered_titles_in_table_of_contents
> > gives a few recipes for the use of unnumbered titles and their inclusion in
> > the table of contents. Unfortunately, they do not work!
> > 
> > \definehead [intro] [chapter] \setuphead [intro] [number=no]
> > will increment the chapter number, as does 
> > \setuphead [title] [incrementnumber=yes,number=no]
> > 
> > trying "coupling=no" gives missing number errors (in the toc).  
> 
> Use
> 
>   \placelist[chapter,intro,section,…]
> 
> to flush a list with your intro heading or extend \completecontent with \intro:
> 
>   \definecombinedlist[content][chapter,intro,section,…]


This is *not* the problem.

The use of such "unnumbered" sections will increment the *chapter* numbers,
even if they do not display numbers themselves (number=no).
Otherwise, they will not create a list and cannot be included in a toc.

Alan
___________________________________________________________________________________
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: Unnumbered chapters (title), numbered appendices
  2013-04-09 11:57   ` Alan BRASLAU
@ 2013-04-09 21:22     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2013-04-09 21:22 UTC (permalink / raw)
  To: Alan BRASLAU; +Cc: mailing list for ConTeXt users


Am 09.04.2013 um 13:57 schrieb Alan BRASLAU <alan.braslau@cea.fr>:

> On Tue, 9 Apr 2013 13:17:06 +0200
> Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
> 
>> Am 09.04.2013 um 12:53 schrieb Alan BRASLAU <alan.braslau@cea.fr>:
>> 
>>> Hello,
>>> 
>>> I am having difficulties with the use of unnumbered chapters (\title)
>>> as well as the use of appendices.
>>> 
>>> http://wiki.contextgarden.net/Titles#Unnumbered_titles_in_table_of_contents
>>> gives a few recipes for the use of unnumbered titles and their inclusion in
>>> the table of contents. Unfortunately, they do not work!
>>> 
>>> \definehead [intro] [chapter] \setuphead [intro] [number=no]
>>> will increment the chapter number, as does 
>>> \setuphead [title] [incrementnumber=yes,number=no]
>>> 
>>> trying "coupling=no" gives missing number errors (in the toc).  
>> 
>> Use
>> 
>>  \placelist[chapter,intro,section,…]
>> 
>> to flush a list with your intro heading or extend \completecontent with \intro:
>> 
>>  \definecombinedlist[content][chapter,intro,section,…]
> 
> 
> This is *not* the problem.
> 
> The use of such "unnumbered" sections will increment the *chapter* numbers,
> even if they do not display numbers themselves (number=no).
> Otherwise, they will not create a list and cannot be included in a toc.

To include a unnumbered section in the toc you have to add “incrementnumber=list”
to \setuphead and *not* “incrementnumber=yes” as you did.

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:[~2013-04-09 21:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-09 10:53 Unnumbered chapters (title), numbered appendices Alan BRASLAU
2013-04-09 11:17 ` Wolfgang Schuster
2013-04-09 11:57   ` Alan BRASLAU
2013-04-09 21:22     ` 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).