Changes

Jump to navigation Jump to search
1,880 bytes added ,  20:08, 25 September 2020
Created page with "Documentation for \definelist"
<cd:commandgroup name="definelist" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\definelist</tt> defines lists like to used in ToCs.
</cd:shortdesc>
<cd:variants>
<cd:command category="structure" file="strc-lst.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-list.xml" level="style" name="definelist" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:keywords>
<cd:keywords optional="yes" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:list"></cd:constant>
</cd:keywords>
<cd:assignments list="yes" optional="yes" ordinal="3">
<cd:assignmentsdoc></cd:assignmentsdoc>
<cd:inherit name="setuplist"></cd:inherit>
</cd:assignments>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\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
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:commandref name="setuplist" originator="system"></cd:commandref>
<cd:source file="strc-lst.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
<cd:commandref name="writetolist"></cd:commandref>
<cd:commandref name="writebetweenlist"></cd:commandref>
<cd:commandref name="placelist"></cd:commandref></cd:seealso>
</cd:commandgroup>

Navigation menu