Command/definelist

From Wiki
Jump to navigation Jump to search


\definelist

Summary

The command \definelist defines lists like to used in ToCs.

Settings

\definelist[...][...][...=...,...]
[...]name
[...]list
...=...,...inherits from \setuplist

Description

After defining the list, use \writetolist or \writebetweenlist to add data to the list. Use \placelist or \completelist to place the list in the document.

Examples

Example 1

\setuppapersize[A7,landscape]
\definelist[Reprints][criterium=all,alternative=b]

\starttext
  \section{Sec 1}
  Just some filler material.
  \writetolist[Reprints]{1.}{List entry A}
  \subsection{Subsec 1}
  \writebetweenlist[Reprints][location=here]{\hrule}
  \writetolist[Reprints]{2.}{List entry B}

  \subject{Reprint list}
  \placelist[Reprints]
\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: