Command/setupitemgroup

From ConTeXt wiki
Jump to: navigation, search

\setupitemgroup

Syntax

\setupitemgroup[...][...][...,...,...][...,...=...,...]
[...] name
[...] number each
[...,...,...] standard broad serried packed unpacked stopper joinedup atmargin inmargin autointro loose repeat section paragraph intext random
margin no standard dimension
leftmargin no standard dimension
rightmargin no standard dimension
width dimension
distance dimension
factor number
items number
start number
before command
inbetween command
after command
left text
right text
beforehead command
afterhead command
headstyle normal bold slanted boldslanted type cap small... command
marstyle normal bold slanted boldslanted type cap small... command
symstyle normal bold slanted boldslanted type cap small... command
stopper text
prefix yes no
prefixsegments . text
n number
symbol number
align left right normal
itemalign left right flushleft flushright
indentnext yes no
textdistance none small medium big
style command

Description

\setupitemgroup[.1.][.2.][.3.][.4.]

1: name of the itemgroup to change (e.g. itemize for \startitemize). You

  get the same effect when using \setupitemize[.2.][.3.][.4.]

2: the level of the itemgroup. This example has a second level of itemization:

    \startitemize
        \item outer (level one)
        \startitemize 
            \item inner (level two)
        \stopitemize
    \stopitemize

3: keywords (from the manual - check and rewrite!)

keyword effect
standard default setup
n*broad extra horizontal white space after symbol
n*serried little horizontal white space after symbol
packed no whitespace between items
stopper punctuation after item separator
repeat repeat higher-level number at lower levels, to produce e.g. 1.a.4.
joinedup no white space before and after itemization
atmargin item separator at the margin
inmargin item separator in margin
autointro prevent a page break before the item list only when the last paragraph has only one or two lines
intro always prevent a page break before the item list
unpacked
loose
section
intext
columns

4: parameters

key values
after
afterhead
align
itemalign Alignment of the number (if n is used)
before
beforehead
distance
factor
headstyle (no effect in MkIV?)
inbetween command between items (e.g. spacing)
indentnext
items number of items when using \its
left
margin
marstyle (no effect in MkIV?)
n
prefix
yes prefix item numbers with current section number.
no no prefix
prefixconnector Separator between prefix segments. Default is a period.
right
start
stopper
symbol
symstyle (no effect in MkIV?) You can use style and color to setup the symbol style.
width

Example

\setuppapersize[A8]

% generates itemization like "Idea a:  text text .."
\setupitemize
   [1]       % level of itemization
   [broad]
   [margin=no,
    distance=5em,
    stopper=,
    left=Idea ,
    right=:]

\starttext

\startitemize[a]
  \item Text Text Text Text Text Text Text Text Text Text Text Text
  \item Text Text Text Text Text Text Text Text Text Text Text Text
\stopitemize
\stoptext

Head style

\starttext
  \startitemize[][headstyle=bold]
    \head Head 1

      \dorecurse{16}{some text }
    \head Head 2\par
      \dorecurse{10}{some other text }
  \stopitemize

  \startitemize[][headstyle=\em,afterhead={\blank[small]}]
    \head Head 3\par
      \dorecurse{10}{some closer text }

    \head Head 4\par
  \stopitemize
\stoptext

Gives:

See Also

Help from ConTeXt-Mailinglist/Forum

All issues with:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox