Open main menu

Changes

1,777 bytes added ,  09:38, 19 November 2021
Created page with "Documentation for \item"
<cd:commandgroup name="item" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\item</tt> is used for itemization items
</cd:shortdesc>
<cd:variants>
<cd:command category="structure" file="strc-itm.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-itemgroup.xml" level="document" name="item" scope="itemgroup" variantnumber="1">
<cd:arguments>
<cd:keywords list="yes" optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:reference"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>Used in itemizations. Starts an ordinary item.</cd:description>
<cd:examples><cd:example title=""><context source="yes">
Here is one list:
\startitemize
\item First item
\stopitemize

Here is another list:
\startitemize[n]
\item First item (numbered list)
\stopitemize
</context></cd:example><cd:example title="Item list of a special shape"><context source="yes">
\setuppapersize[A6,landscape]

\define[1]\ItemCommand
{\hangindent=1.5in
\freezeparagraphproperties % needs a fairly new ConTeXt (mid-2021)
\simplealignedbox{1.5in}{flushleft}{#1\hss--- }
\ignorespaces}

\setupitemize[command=\ItemCommand]

\starttext
\startitemize
\item{Ward} \input ward

\input ward

\item{Knuth} \input knuth
\stopitemize
\stoptext
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="strc-itm.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
<cd:commandref name="startitemize"></cd:commandref>
<cd:commandref name="setupitemize"></cd:commandref>
<cd:wikipage page="Enumerations"></cd:wikipage></cd:seealso>
</cd:commandgroup>