That was very useful.

Thanks again Wolfgang !



Mathieu





From: schuster.wolfgang@googlemail.com
Date: Thu, 26 May 2011 18:52:48 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] \definehead \setuphead new type included in a list such as TOC


Am 26.05.2011 um 18:15 schrieb Mathieu DUPONT:


Hi,

In the following example, I define 2 new heads, and I want them to :

1- inherits from Title (or Chapter would be fine)
2- show in the TOC
3- not be counted (CHAPTER should be 1)

Is there an option I can put into \setuphead[Abstract][] so it gets included in the TOC ?
That would be the easiest way of getting the three desired results.

Your own headings aren’t shown in the TOC because you use \completecontent
which lists only the default numbered headings (\part, \chapter etc.)

There are different solution:

1. Replace \completecontent with the following

  \title{Contents}
  \placelist[part,chapter,Abstract,Intro, section,...]

2. Redefine \completecontent (it’s explained in the big manual):

  \definecombinedlist[content][part,chapter,Abstract,Intro, section,...]

3. Create your own combinedlist:

  \definecombinedlist[mycontent][part,chapter,Abstract,Intro, section,...]

  \setupheadtext[mycontent=Contents]

  \starttext

  \completemycontent

  \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 ___________________________________________________________________________________