Changes

Jump to navigation Jump to search
no edit summary
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>definecombinedlist</syntax>
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd"syntax> <tr> <td colspan="2" class="cmd">\definecombinedlist<span class="first" >[...]</span><span class="second" >[...,...,...]</span><span class="third" style="color:red;">[...,...=...,...]</span></td> </tr> <tr valign="top" class="first"> <td class="cmd">[...]</td> <td>name </td> </tr> <tr valign="top" class="second"> <td class="cmd">[...,...,...]</td> <td>list </td> </tr> <tr valign="top" class="third"> <td class="cmd">[...,...=...,...]</td> <td>see [[Command/setupcombinedlist|\setupcombinedlist]] </td> </tr></tablesyntax
== Description ==
The command [[{{cmd:placecontent|\placecontentdefinecombinedlist|[mylist]] is available after definition with [[}} creates the command {{cmd:definecombinedlist|\definecombinedlist]]placemylist|link=no}}.  
This command and [[{{cmd:definelist|\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.
</texcode>
Now there are two lists of chapters and sections and these will be combined in a table of contents with the command [[{{cmd:definecombinedlist|\definecombinedlist]]}}.
<texcode>
</texcode>
Now two commands are available: [[{{cmd:placecontent|\placecontent]] }} and [[{{cmd:completecontent|\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:
* f = reserved for interactive purposes
Lists are set up with: [[{{cmd:setuplist|\setuplist]] }} and [[{{cmd:setupcombinedlist|\setupcombinedlist]]}}.
If you want to change the layout of the generated table of contents you’ll have to remember that it is a list.
This will result in a somewhat different layout than the default one.
Lists are called up and placed with [[{{cmd:placelist|\placelist]]}}.
So if you want a table of content you type:
A page break will occur after section 2.2 and 8.5 and sub section 12.3.3.
In some cases you want to be able to write your own text in an automatically generated list. This is done with [[{{cmd:writetolist|\writetolist]] }} and [[{{cmd:writebetweenlist|\writebetweenlist]]}}
For example if you want to make a remark in your table of contents after a section titled Hotels in Hasselt you can type:
== See also ==
<!-- something like [[{{cmd:goto|\goto]] }} --> * {{cmd|setupcombinedlist}}* {{cmd|definelist}}* {{cmd|setuplist}}* [[Table of Contents]]
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:Command/Lists|definecombinedlist]]

Navigation menu