Command/setupitemgroup

From ConTeXt wiki
Jump to navigationJump to search

\setupitemgroup

Syntax

\setupitemgroup[...][...,...][...,...][...=...,...]
[...]name
[...,...]each number
[...,...]intro random continue packed autointro broad text before after nowhite margin inmargin atmargin intext loose fit nofit paragraph joinedup serried stopper nostopper unpacked repeat norepeat reverse columns one two three four five six seven eight nine standard number*broad number*serried horizontal name
beforecommand
aftercommand
inbetweencommand
beforeheadcommand
afterheadcommand
lefttextcommand
righttextcommand
leftcommand
rightcommand
factornumber
stepdimension
widthdimension
distancedimension
marginyes no standard dimension
leftmarginyes no standard dimension
rightmarginyes no standard dimension
alignsee \setupalign
indentingsee \setupindenting
startnumber
symalignleft middle right flushleft center flushright
symbolname
nnumber
indentnextyes no auto
innercommand
commandcsname
itemsnumber
maxwidthdimension
itemalignleft right middle flushleft flushright inner outer
alignsymbolyes no
textdistancesmall medium big none space dimension
placestopperyes no
stylestyle command
colorcolor
headstylestyle command
headcolorcolor
marstylestyle command
marcolorcolor
symstylestyle command
symcolorcolor
gridsee \definegridsnapping
...=...,...inherits from \setupcounter


\setupitemgroup[...,...][...=...,...]
[...,...]name name:number
beforecommand
aftercommand
inbetweencommand
beforeheadcommand
afterheadcommand
lefttextcommand
righttextcommand
leftcommand
rightcommand
factornumber
stepdimension
widthdimension
distancedimension
optionintro random continue packed autointro broad text before after nowhite margin inmargin atmargin intext loose fit nofit paragraph joinedup serried stopper unpacked repeat norepeat reverse columns one two three four five six seven eight nine standard number*broad number*serried horizontal name
marginyes no standard dimension
leftmarginyes no standard dimension
rightmarginyes no standard dimension
alignsee \setupalign
indentingsee \setupindenting
startnumber
symalignleft middle right flushleft center flushright
symbolname
nnumber
indentnextyes no auto
innercommand
commandcsname
itemsnumber
maxwidthdimension
itemalignleft right middle flushleft flushright inner outer
alignsymbolyes no
textdistancesmall medium big none space dimension
placestopperyes no
stylestyle command
colorcolor
headstylestyle command
headcolorcolor
marstylestyle command
marcolorcolor
symstylestyle command
symcolorcolor
gridsee \definegridsnapping
...=...,...inherits from \setupcounter


\setupitemgroup[...,...][...,...][...=...,...]
[...,...]each number
[...,...]inherits from \setupitemgroup
...=...,...inherits from \setupitemgroup



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:
  • 3: keyword options
  • 4: key-value options
    \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 typeset items in two 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 enter a number e.g. n=5
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: