Difference between revisions of "Command/ startitemgroup"

From Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<?xml version='1.0'?>
 
<!-- this file was generated on 2020-08-20T09:05 -->
 
 
<cd:commandgroup generated="yes" name="itemgroup" type="environment" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup generated="yes" name="itemgroup" type="environment" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>
+
<cd:shortdesc>[[Category:Commands|Itemizations]]
 
<!-- a short command summary goes here -->
 
<!-- a short command summary goes here -->
 
The instances of  <tt>\start<i>itemgroup</i> ... \stop<i>itemgroup</i></tt> typeset a list of items.
 
The instances of  <tt>\start<i>itemgroup</i> ... \stop<i>itemgroup</i></tt> typeset a list of items.
Line 26: Line 24:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description>
+
<cd:description>The instance environments can be set up globally with e.g. {{cmd|setupitemize}}. For the arguments available to {{cmd|startitemize}} and {{cmd|setupitemize}}, see {{cmd|setupitemgroup}}.
The instance environments can be set up globally with e.g. {{cmd|setupitemize}}. For the arguments available to {{cmd|startitemize}} and {{cmd|setupitemize}}, see {{cmd|setupitemgroup}}.
 
 
</cd:description>
 
</cd:description>
<cd:examples>
+
<cd:examples><cd:example title="Various bullet style demonstration"><context source="yes" text="Gives:">
<cd:example title="Various bullet style demonstration">
 
<context source="yes" text="Gives:">
 
 
\def\T#1{%
 
\def\T#1{%
 
   \startitemize[#1,joinedup]
 
   \startitemize[#1,joinedup]
Line 40: Line 35:
 
\dorecurse{9}{\T\recurselevel}
 
\dorecurse{9}{\T\recurselevel}
 
</context>
 
</context>
</cd:example>
+
</cd:example><cd:example title="Altering numbering text"><context source="yes" text="Gives:">
 
 
<cd:example title="Altering numbering text">
 
<context source="yes" text="Gives:">
 
 
   \startitemize[n][left=(,right=),stopper=.,distance=2em,]
 
   \startitemize[n][left=(,right=),stopper=.,distance=2em,]
 
     \item Item 1.
 
     \item Item 1.
Line 49: Line 41:
 
   \stopitemize
 
   \stopitemize
 
</context>
 
</context>
</cd:example>
+
</cd:example><cd:example title="Altering vertical space after \head"><context source="yes" text="Gives:">
 +
\setupitemize[headstyle=bold,afterhead={\blank[medium]}]
  
<cd:example title="Altering vertical space after \head">
 
<context source="yes" text="Gives:">
 
\setupitemize[headstyle=bold,afterhead={\blank[medium]}]
 
 
 
\startitemize
 
\startitemize
 
   \starthead{Ward}
 
   \starthead{Ward}
Line 64: Line 53:
 
\stopitemize
 
\stopitemize
 
</context>
 
</context>
</cd:example>
+
</cd:example></cd:examples>
</cd:examples>
+
<cd:notes></cd:notes>
<cd:notes>
 
<!--  this is for special remarks that do not fit elsewhere, like discovered bugs in specific context versions
 
<cd:note author="..." date="...">
 
</cd:note>
 
-->
 
</cd:notes>
 
 
<cd:seealso>
 
<cd:seealso>
<!-- one or more of these:
 
<cd:commandref name="xx"></cd:commandref>
 
<cd:wikipage  page="xx"></cd:wikipage>
 
<cd:url        url="https://xx"></cd:url>
 
<cd:manual    pdf="xx"></cd:manual>
 
<cd:source    file="xx"></cd:source>
 
-->
 
 
<cd:commandref name="_setupitemgroup" originator="system"></cd:commandref>
 
<cd:commandref name="_setupitemgroup" originator="system"></cd:commandref>
 
<cd:commandref name="defineitemgroup" originator="system"></cd:commandref>
 
<cd:commandref name="defineitemgroup" originator="system"></cd:commandref>
 
<cd:commandref name="setupitemgroup" originator="system"></cd:commandref>
 
<cd:commandref name="setupitemgroup" originator="system"></cd:commandref>
<cd:source file="strc-itm.mkvi" originator="system"></cd:source>  
+
<cd:source file="strc-itm.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>  
+
<cd:wikipage originator="system" page="Category:Structure"></cd:wikipage>
<cd:wikipage   page="Enumerations"/>
+
<cd:wikipage page="Enumerations"></cd:wikipage>
<cd:wikipage   page="Indentation"/>
+
<cd:wikipage page="Indentation"></cd:wikipage></cd:seealso>
</cd:seealso>
 
 
</cd:commandgroup>
 
</cd:commandgroup>

Revision as of 16:09, 14 April 2024


\startitemgroup ... \stopitemgroup

Summary

The instances of \startitemgroup ... \stopitemgroup typeset a list of items.

Instances

\startitemize ... \stopitemize

Settings instance

\startITEMGROUP[...,...][...=...,...] ... \stopITEMGROUP
[...,...]inherits from \setupitemgroup
...=...,...inherits from \setupitemgroup

Description

The instance environments can be set up globally with e.g. \setupitemize. For the arguments available to \startitemize and \setupitemize, see \setupitemgroup.

Examples

Various bullet style demonstration

\def\T#1{%
  \startitemize[#1,joinedup]
    \item This is a bullet of type #1.
  \stopitemize
}

\dorecurse{9}{\T\recurselevel}

Gives:

Altering numbering text

  \startitemize[n][left=(,right=),stopper=.,distance=2em,]
    \item Item 1.
    \item Item 2.
  \stopitemize

Gives:

Altering vertical space after \head

\setupitemize[headstyle=bold,afterhead={\blank[medium]}]

\startitemize
  \starthead{Ward}
    \input ward
  \stophead
  \startitem
    \input weisman
  \stopitem
\stopitemize

Gives:

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: