Difference between revisions of "Command/ startitemgroup"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \start<i>itemgroup</i> ... \stop<i>itemgroup</i>") |
|||
Line 4: | Line 4: | ||
<cd:shortdesc> | <cd:shortdesc> | ||
<!-- 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> | + | The instances of <tt>\start<i>itemgroup</i> ... \stop<i>itemgroup</i></tt> typeset a list of items. |
</cd:shortdesc> | </cd:shortdesc> | ||
<cd:sequence> | <cd:sequence> | ||
Line 27: | Line 27: | ||
</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}}. | |
</cd:description> | </cd:description> | ||
<cd:examples> | <cd:examples> | ||
− | < | + | <cd:example title="Various bullet style demonstration"> |
− | <cd:example title=""> | + | <context source="yes" text="Gives:"> |
+ | \def\T#1{% | ||
+ | \startitemize[#1,joinedup] | ||
+ | \item This is a bullet of type #1. | ||
+ | \stopitemize | ||
+ | } | ||
+ | |||
+ | \dorecurse{9}{\T\recurselevel} | ||
+ | </context> | ||
+ | </cd:example> | ||
+ | |||
+ | <cd:example title="Altering numbering text"> | ||
+ | <context source="yes" text="Gives:"> | ||
+ | \startitemize[n][left=(,right=),stopper=.,distance=2em,] | ||
+ | \item Item 1. | ||
+ | \item Item 2. | ||
+ | \stopitemize | ||
+ | </context> | ||
+ | </cd:example> | ||
+ | |||
+ | <cd:example title="Altering vertical space after \head"> | ||
+ | <context source="yes" text="Gives:"> | ||
+ | \setupitemize[headstyle=bold,afterhead={\blank[medium]}] | ||
+ | |||
+ | \startitemize | ||
+ | \starthead{Ward} | ||
+ | \input ward | ||
+ | \stophead | ||
+ | \startitem | ||
+ | \input weisman | ||
+ | \stopitem | ||
+ | \stopitemize | ||
+ | </context> | ||
</cd:example> | </cd:example> | ||
− | |||
</cd:examples> | </cd:examples> | ||
<cd:notes> | <cd:notes> | ||
Line 54: | Line 85: | ||
<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="Indentation"/> | ||
</cd:seealso> | </cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Revision as of 11:57, 21 August 2020
Contents
\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: