Changes

Jump to navigation Jump to search
27 bytes added ,  10:51, 27 June 2012
m
Get rid of some <cmd> tags; make example thinner
One important quirk. If you do not start the document with \{{cmd|completecontent}}, but use it later –for example after the introduction–, you should use:
<texcode>
\completecontent[criterium=all]
When \{{cmd|completecontent }} is at the end of the document you can use:
<texcode>
\completecontent[criterium=previous]
== Modifing the default Table of Contents ==
You can customize the appearance, number of shown levels and other attributes of predefined TOC. <span style="color:red; font-weight: bold;">Please note that the <code>level</code> parameter has recently (02/2010) no effect in [[Mark IV]]</span>, you may use <{{cmd>|placelist|[chapter,section]</cmd> }} (optionally adding <{{cmd>\|title|{Contents}</cmd> }} before) instead of <{{cmd>|setupcombinedlist|[content][level=2]</cmd>}}.
<context source="yes">
\setuppapersize[A5]
 
\setupcolors[state=start]
 
% turn off numbering of some levels
\setuphead[subsection][number=no]
\setuphead[subsubsection][number=no]
 
% TOC
% level=4, \subsubsubsections are not listed in TOC
% alternative=c, space to the page number is filled with dots
\setupcombinedlist[content][level=4,alternative=c] %\setuplist[chapter][width=5mm,style=bold]\setuplist[section][width=10mm,style=bold]
\setuplist[subsection][width=20mm]
 
% pagestyle=normal for changing the appearance of pagenumber
\setuplist[subsubsection][width=20mm,style=slanted,pagestyle=normal] 
\starttext
see setup for author/title/subtitle titling and author in ToC in [[Proceedings_style]].
You can write "everything" to the ToC or an other list (see below) using <{{cmd>|writetolist</cmd>}}.
== Several ToC's in different languages ==
== Creating other "Table of ..." ==
Generally all "Table (List) of ..." are defined with <{{cmd>|definelist</cmd> }} and <{{cmd>|setuplist</cmd>}}.You can "collect" several section levels in one list using <{{cmd>|definecombinedlist</cmd>}}, that's even explained in "ConTeXt, an excursion" (see [[Official_ConTeXt_Documentation]]).
To have some parts of your title texts ''not'' appear in the table of contents, use <{{cmd>|nolist</cmd> }} and have a look at [http://www.pragma-ade.com/general/magazines/mag-0001.pdf mag-0001.pdf].

Navigation menu