Difference between revisions of "Command/setupcombinedlist"

From ConTeXt wiki
(add MkIV list parameter and example)
(Replace most contents)
 
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
+
<syntax>setupcombinedlist</syntax>
  <tr>
 
    <td colspan="2" class="cmd">\setupcombinedlist<span class="first" >[...]</span><span class="second" >[...,...=...,...]</span></td>
 
  </tr>
 
  <tr valign="top" class="first">
 
    <td class="cmd">[...]</td>
 
    <td>name </td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Command/keyword:level|level]]</td>
 
    <td>1 2 3 4 [[Command/value:section|section]] [[Command/value:current|current]] (MkII)</td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[[Command/keyword:list|list]]</td>
 
    <td>{[[Command/value:section|section]],[[Command/value:section|section]],…} (MkIV)</td>
 
  </tr>
 
  <tr valign="top" class="second">
 
    <td class="cmd">[...,...=...,...]</td>
 
    <td>see [[Command/setuplist|\setuplist]] </td>
 
  </tr>
 
</table>
 
 
 
  
 
== Description ==  
 
== Description ==  
  
 +
The most prominent and only predefined combined list is the table of contents.
  
 +
{{cmd|setupcombinedlist}} inherits from {{cmd|setuplist}}.
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
 
  
 
<texcode>
 
<texcode>
\setupcombinedlist[content][list={chapter,section,subsection}] % MkIV
+
\setupcombinedlist[content][list={chapter,section,subsection}]
\setupcombinedlist[content][level=3] % MkII
+
% same as
 +
\setupcontents[list={chapter,section,subsection}]
 
</texcode>
 
</texcode>
 +
 +
Beware, unnumbered headers ({{cmd|title}}, {{cmd|subject}} etc.) won't ever appear in a list!
  
 
== See also ==
 
== See also ==
 
<!-- something like {{cmd|goto}} -->
 
<!-- something like {{cmd|goto}} -->
  
 +
* {{cmd|definecombinedlist}}
 
* {{cmd|setuplist}}
 
* {{cmd|setuplist}}
 
* [[Table of Contents]]
 
* [[Table of Contents]]

Latest revision as of 19:47, 17 September 2019

\setupcombinedlist

Syntax

\setupcombinedlist[...][...=...,...]
[...]list
criteriumlocal intro reference sectionblock:reference all sectionblock:all text sectionblock:text current sectionblock:current here previous sectionblock:previous component section sectionblock:section
referencenumber
extrasname
ordercommand all title
alternativea b c d e f g left right top bottom command none interactive paragraph horizontal vertical name


\setupcombinedlist[...=...,...]
...=...,...inherits from \setupcombinedlist


Description

The most prominent and only predefined combined list is the table of contents.

\setupcombinedlist inherits from \setuplist.

Example

\setupcombinedlist[content][list={chapter,section,subsection}]
% same as
\setupcontents[list={chapter,section,subsection}]

Beware, unnumbered headers (\title, \subject etc.) won't ever appear in a list!

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: