Difference between revisions of "Command/setupcombinedlist"

From Wiki
Jump to navigation Jump to search
(add MkIV list parameter and example)
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>setupcombinedlist</syntax>
  
 
== [[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]]

Revision as of 17:23, 12 November 2019

\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


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


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: