Difference between revisions of "Command/setupcombinedlist"

From Wiki
Jump to navigation Jump to search
(add MkIV list parameter and example)
(3 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
<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.
  
 
== 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]]

Revision as of 01:14, 27 April 2020

\setupcombinedlist

Syntax (autogenerated)

\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


Description

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

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: