ConTEXt an excursion - Pragma ADE

ConTEXt an excursion - Pragma ADE ConTEXt an excursion - Pragma ADE

pragma.ade.nl
from pragma.ade.nl More from this publisher
29.05.2014 Views

Table of contents (lists) The command \placecontent is available after definition with: contents \definecombinedlist[.1.][..,.2.,..][..,..=..,..] This command and \definelist allows you to define your own lists necessary for structuring your documents. The use of this command and its related commands is illustrated for the table of contents. \definelist[chapter] \setuplist [chapter] [before=\blank, after=\blank, style=bold] index commands definitions colofon \definelist[section] \setuplist [section] [alternative=d] Now there are two lists of chapters and sections and these will be combined in a table of contents with the command \definecombinedlist. \definecombinedlist [contents] [chapter,section] [level=subsection] Now two commands are available: \placecontent and \completecontent. With the second command the title of the table of contents will be added to the table of contents itself. The layout of lists can be varied with the parameter alternative. exit search + go back – + 22 68

Table of contents (lists) Alternative a b c d e f Display number – title – page number number – title – spaces – page number number – title – dots – page number number – title – page number (continuing) reserved for interactive purposes reserved for interactive purposes contents index commands definitions colofon Table 22.1 Alternatives for displaying lists. Lists are set up with: \setuplist[..,...,..][..,..=..,..] \setupcombinedlist[...][..,..=..,..] If you want to change the layout of the generated table of contents you’ll have to remember that it is a list. \setupcombinedlist [content] [alternative=c, aligntitle=no, width=2.5cm] This will result in a somewhat different layout than the default one. Lists are called up and placed with: exit search + go back – + 22 69

Table of contents (lists)<br />

The comm<strong>an</strong>d \placecontent is available after definition with:<br />

contents<br />

\definecombinedlist[.1.][..,.2.,..][..,..=..,..]<br />

This comm<strong>an</strong>d <strong>an</strong>d \definelist allows you to define your own lists necessary for structuring<br />

your documents.<br />

The use of this comm<strong>an</strong>d <strong>an</strong>d its related comm<strong>an</strong>ds is illustrated for the table of contents.<br />

\definelist[chapter]<br />

\setuplist<br />

[chapter]<br />

[before=\bl<strong>an</strong>k,<br />

after=\bl<strong>an</strong>k,<br />

style=bold]<br />

index<br />

comm<strong>an</strong>ds<br />

definitions<br />

colofon<br />

\definelist[section]<br />

\setuplist<br />

[section]<br />

[alternative=d]<br />

Now there are two lists of chapters <strong>an</strong>d sections <strong>an</strong>d these will be combined in a table of<br />

contents with the comm<strong>an</strong>d \definecombinedlist.<br />

\definecombinedlist<br />

[contents]<br />

[chapter,section]<br />

[level=subsection]<br />

Now two comm<strong>an</strong>ds are available: \placecontent <strong>an</strong>d \completecontent. With the<br />

second comm<strong>an</strong>d the title of the table of contents will be added to the table of contents<br />

itself.<br />

The layout of lists c<strong>an</strong> be varied with the parameter alternative.<br />

exit<br />

search +<br />

go back<br />

– +<br />

22 68

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!