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
n number
symbol number
align left right normal
indentnext yes no
textdistance none small medium big

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. Say you have:
    \startitemize
    \item outer (level one)
    \startitemize 
    \item inner (level two)
    \stopitemize
    \stopitemize
   there are two levels of itemgroups.
3: keywords (from the manual - check and rewrite!)
   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
   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
(what are these?)
   unpacked: 
   loose:
   section:
   intext:
(not in list:)
   columns
4: parameters
   after 
   afterhead 
   align 
   before 
   beforehead 
   distance 
   factor 
   headstyle 
   inbetween 
   indentnext 
   items: number of items when using \its
   left 
   margin 
   marstyle 
   n
   right 
   start 
   stopper 
   symbol 
   symstyle 
   width 

comment

If you are looking for \setupitemize and wonder why it is not listed: \setupitemize (and \itemize...) is generated from \defineitemgroup.

Example

% 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
      Text Text Text Text Text Text Text Text Text Text 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
      Text Text Text Text Text Text Text Text Text Text Text Text
      Text Text Text Text Text Text Text Text Text Text
\stopitemize
\stoptext


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