Hi, Is it possible to create a Table of Content like the one shown in the attached image? Basically I need a few unnumbered entries at the top of the table (like abstract, acknowledgements, etc) with romannumeral-numbered page number, followed by numbered chapters with digits-numbered page number as normal. Thanks! Rio
Basically I need a few unnumbered entries at the top of the table (like abstract, acknowledgements, etc)
Rio, I handle this through using the unnumbered sectioning (\title, \subject..) and then a \definecombinedlist [content][title,chapter] Essentially you add "title" to the already predefined list or combindedlist "content". Read contextref for details. This then generates a TOC with \completecontent which includes the unnumbered sections/headers. Regarding the numbering, you might gleen that from the sample document here: http://wiki.contextgarden.net/Biochemistry_textbook It all kind of goes like this: \starttext \startfrontmatter \setuppagenumbering[conversion=romannumerals] \completecontent \stopfrontmatter \startbodymatter \setuppagenumbering[conversion=] \setuppagenumber[number=1] \title {Introduction} \dorecurse{5}{\input tufte\par} \chapter{Some Stuff} \dorecurse{5}{\input tufte\par} \stopbodymatter \stoptext best, Martin
Hi,
You could also use the \chapter command but in the front matter as it
has no number there (and do not increment the counter either).
Best regards.
-- Cédric
On Thu, Aug 12, 2010 at 03:08, Martin Althoff
Basically I need a few unnumbered entries at the top of the table (like abstract, acknowledgements, etc)
Rio,
I handle this through using the unnumbered sectioning (\title, \subject..) and then a
\definecombinedlist [content][title,chapter]
Essentially you add "title" to the already predefined list or combindedlist "content". Read contextref for details. This then generates a TOC with \completecontent which includes the unnumbered sections/headers.
Regarding the numbering, you might gleen that from the sample document here:
http://wiki.contextgarden.net/Biochemistry_textbook
It all kind of goes like this:
\starttext
\startfrontmatter \setuppagenumbering[conversion=romannumerals] \completecontent \stopfrontmatter
\startbodymatter \setuppagenumbering[conversion=] \setuppagenumber[number=1] \title {Introduction} \dorecurse{5}{\input tufte\par} \chapter{Some Stuff} \dorecurse{5}{\input tufte\par} \stopbodymatter \stoptext
best, Martin
___________________________________________________________________________________ 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 ___________________________________________________________________________________
Hi Martin, I tried this ------- \starttext \startfrontmatter \setuppagenumbering[conversion=romannumerals] \title{Title} \subject{Abstract} \subject{Acknowledgements} \definecombinedlist [content][title,subject,chapter] \completecontent \stopfrontmatter \startbodymatter \setuppagenumbering[conversion=] \setuppagenumber[number=1] \title {Introduction} \dorecurse{5}{\input tufte\par} \chapter{Some Stuff} \dorecurse{5}{\input tufte\par} \stopbodymatter \stoptext ------------ and it doesn't work. The title and subject parts never get into the generated TOC. Any idea why? Thanks very much! Rio On 2010-08-12, at 03:08, Martin Althoff wrote:
I handle this through using the unnumbered sectioning (\title, \subject..) and then a
\definecombinedlist [content][title,chapter]
participants (3)
-
Cedric Mauclair
-
Martin Althoff
-
Riobard