Command/setupenumerations

From Wiki
< Command
Revision as of 09:00, 7 October 2014 by Willi (talk | contribs) (Added an example MKIV with using before and after keys.)
Jump to navigation Jump to search

\setupenumerations

Syntax

\setupenumerations[...,...,...][...,...=...,...]
[...,...,...] name of an enumeration (defined with \defineenumeration)
[...,...=...,...] see \setupdescriptions


Description

Set up the appearance and behaviour of an enumeration. Enumeration environments are actually special description environments, so the keys are described at \setupdescriptions.

Example

\defineenumeration[Potato]

\Potato 
One potato

\setupenumerations[Potato][location=left]
% In mkiv one would use `alternative=left`.

\Potato 
Two potato

This gives:

The before and after keys control the spacing around enumerations. It you want to achieve something similar to the itemize-option "packed" then use: (MKIV example)

\defineenumeration[Packed]

\setupenumerations
   [Packed]
   [text=,
    headstyle=normal,
    alternative=left,
    distance=0pt,
    width=13pt,
    stopper=\high{o},
    before=\blank[small]},
    after={\blank[small]},
    inbetween=]


\Packed
   First issue

\Packed
   Second issue

This gives:

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: