Difference between revisions of "Command/placelist"

From ConTeXt wiki
(Description)
 
(4 intermediate revisions by one other user not shown)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>placelist</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 21: Line 24:
  
 
== Description ==
 
== Description ==
Outputs the named list at the current location, using a format previously defined by {{cmd|setuplist}}
+
Outputs the named list at the current location. The format of the list can be customised by {{cmd|setuplist}}
 +
 
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
<context source=yes mode=mkiv text="This produces:">
 +
\setuphead[section][number=no]
 +
 
 +
\starttext
 +
 
 +
% \placelist[section]
 +
 
 +
\startchapter[title=Foo Chapter]
 +
    \startsection[title={Beta}]  First Section \stopsection
 +
    \startsection[title={Alpha}] Second Section \stopsection
 +
\stopchapter
 +
\break
 +
\placelist[section][criterium=all,order=title]
 +
 
 +
\stoptext
 +
</context>
 +
 
 +
In the second use of \placelist, note the use of the 'order' attribute to sort the list, and the use of 'criterium' to control which part of the list is used.
  
 
== See also ==
 
== See also ==

Latest revision as of 16:54, 12 November 2019

\placelist

Syntax (autogenerated)

\placelist[...,...][...=...,...]
[...,...]list
...=...,...inherits from \setuplist


Syntax

\placelist[...,...,...][...,...=...,...]
[...,...,...] name
[...,...=...,...] see \setuplist


Description

Outputs the named list at the current location. The format of the list can be customised by \setuplist


Example

\setuphead[section][number=no]

\starttext

% \placelist[section]

\startchapter[title=Foo Chapter]
     \startsection[title={Beta}]  First Section \stopsection
     \startsection[title={Alpha}] Second Section \stopsection
\stopchapter
\break
\placelist[section][criterium=all,order=title]

\stoptext

This produces:

In the second use of \placelist, note the use of the 'order' attribute to sort the list, and the use of 'criterium' to control which part of the list is used.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: