Changes

Jump to navigation Jump to search
1,359 bytes added ,  01:39, 26 November 2011
no edit summary
In principle TeXExec should do this automatically.
 
== Tables of contents (and other lists) via project structures ==
 
As of November 25, 2011, ConTeXt [[MkIV]] supports the generation of lists via [[Project structure]]. Thus, given a product (possibly within some project), and given two or more components in that product with its own sections (chapters, sections, etc) or floats (figures, tables, etc); then each component can have its own list of contents independent of the other. This is done by setting ''criterium=component''. For example, create three files, one product and two components (slightly modified version of a sample posted by Hans):
 
<texcode>
\startproduct example-1-product
 
\definecombinedlist[summary][chapter]
\setupcombinedlist[summary][criterium=component]
\component example-1-component-a
\component example-1-component-b
\stopproduct
\startcomponent example-1-component-a
\starttitle[title=Contents]
\placesummary
\stoptitle
\startchapter[title=Ward]
\input ward
\stopchapter
\stopcomponent
\startcomponent example-1-component-b
\setupheadnumber[chapter][-1]
\starttitle[title=Contents]
\placesummary
\stoptitle
 
\startchapter[title=Zapf]
\input zapf
\stopchapter
\stopcomponent
</texcode>
 
Processing the component file will give you a separate table of contents for each component.
67

edits

Navigation menu