Changes

Jump to navigation Jump to search
187 bytes added ,  07:02, 3 December 2012
no edit summary
== Modifying the default Table of Contents ==
 
The default head that \completecontent places can be altered with
{{cmd|setupheadtext|[content=All my 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]}} (optionally adding {{cmd|title|{Contents}}} before) instead of {{cmd|setupcombinedlist|[content][level=2]}}.
\setupcolors[state=start]
 
% A new ToC title
\setupheadtext[content=All my contents]
% turn off numbering of some levels
% 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]
\completecontent
\stopcolor
\page[yes]
\section{First section}

Navigation menu