Difference between revisions of "Command/definelist"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \definelist")
 
 
Line 20: Line 20:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
+
<cd:description>After defining the list, use {{cmd|writetolist}} or {{cmd|writebetweenlist}} to add data to the list. Use {{cmd|placelist}} or {{cmd|completelist}} to place the list in the document.
 
</cd:description>
 
</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
Line 45: Line 45:
 
<cd:commandref name="writetolist"></cd:commandref>
 
<cd:commandref name="writetolist"></cd:commandref>
 
<cd:commandref name="writebetweenlist"></cd:commandref>
 
<cd:commandref name="writebetweenlist"></cd:commandref>
<cd:commandref name="placelist"></cd:commandref></cd:seealso>
+
<cd:commandref name="placelist"></cd:commandref>
 +
<cd:commandref name="completelist"></cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 20:13, 25 September 2020


\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: