Difference between revisions of "Command/placelist"

From ConTeXt wiki
(Description)
(Example)
Line 23: Line 23:
 
Outputs the named list at the current location. The format of the list can be customised by {{cmd|setuplist}}
 
Outputs the named list at the current location. The format of the list can be customised by {{cmd|setuplist}}
  
== Example ==
+
<texcode>
<!-- Please fill in an example if you can -->
+
 
 +
\setuphead[section][number=no]
 +
 
 +
\starttext
 +
 
 +
\placelist[section]
 +
 
 +
\startchapter[title=foo]
 +
    \startsection[title={Beta}]  \input sapolsky \stopsection
 +
    \startsection[title={Alpha}] \input sapolsky \stopsection
 +
    \startsection[title={Gamma}] \input sapolsky \stopsection
 +
\stopchapter
 +
 
 +
% Output the list in a different order. Note also the use of 'criterium' to control which part of the list is used.
 +
\placelist[section][criterium=all,order=title]
 +
 
 +
\stoptext
 +
<\texcode>
  
 
== See also ==
 
== See also ==

Revision as of 20:40, 8 November 2019

\placelist

Syntax

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


Description

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

<texcode>

\setuphead[section][number=no]

\starttext

\placelist[section]

\startchapter[title=foo]

    \startsection[title={Beta}]  \input sapolsky \stopsection
    \startsection[title={Alpha}] \input sapolsky \stopsection
    \startsection[title={Gamma}] \input sapolsky \stopsection

\stopchapter

% Output the list in a different order. Note also the use of 'criterium' to control which part of the list is used. \placelist[section][criterium=all,order=title]

\stoptext <\texcode>

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: