From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/1040 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Generating a table of contents Date: Tue, 19 Oct 1999 09:19:39 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <380C299B.A6868921@wxs.nl> References: <19991019093420.A31541@mars.rcode.com.au> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391883 29311 80.91.224.250 (23 Oct 2002 16:51:23 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:51:23 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Tony Keating Xref: main.gmane.org gmane.comp.tex.context:1040 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:1040 Tony Keating wrote: > > I'm trying to generate a table of contents without much luck. I think the > problem is due to the fact that I'm using \subject's rather than \section's > (though I could be wrong). I'm setting up the contents list with: > > \definelist[subject] > \definelist[subsubject] > \definecombinedlist[contents][subject,subsubject] > > Then after the \starttext, I use > > \placecontents > > to get the table of contents. But I get nothing in the output. texexec shows > the following error: > > system : subject,subsubject not found/processed This is ok. Subjects, being the unnumbered alternatives, are not written to the utility file. COmpare the *.tuo files (two runs needed, but this is handled by texexec) of \starttext \subject{test} \stoptext and \definehead[subject][section] \setuphead[subject][number=no] \starttext \subject{test} \stoptext Now you can also say: \definehead[subject][section] \setuphead[subject][number=no] \starttext \placelist[subject] % or [chapter,subject,...] \subject{test} \stoptext or \starttext \definehead[subject][section] \setuphead[subject][number=no] \definecombinedlist[content][subject] \placecombinedlist[content] \subject{test} \stoptext If a list turns up, also depends on the settings of criterium or level. When you say \chapter {something} \placelist[subject][criterium=chapter] you will get the subjects per chapter. By default, combinedlists will generate lists for the current level, while an index is generated at the document level, but one can influence this (indexes per chapter or section or ... and so on). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl -----------------------------------------------------------------