Difference between revisions of "Command/setupenumerations"
< Command
Jump to navigation
Jump to search
m (Category Numbered objects) |
(Add example, description) |
||
Line 11: | Line 11: | ||
<tr valign="top" class="first"> | <tr valign="top" class="first"> | ||
<td class="cmd">[...,...,...]</td> | <td class="cmd">[...,...,...]</td> | ||
− | <td>name </td> | + | <td>name of an enumeration (defined with {{cmd|defineenumeration}})</td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
<td class="cmd">[...,...=...,...]</td> | <td class="cmd">[...,...=...,...]</td> | ||
− | <td>see | + | <td>see {{cmd|setupdescriptions}} </td> |
</tr> | </tr> | ||
</table> | </table> | ||
Line 21: | Line 21: | ||
== Description == | == Description == | ||
+ | Set up the appearance and behaviour of an enumeration. Enumeration environments are actually special description environments, so the keys are described at {{cmd|setupdescriptions}}. | ||
== Example == | == Example == | ||
− | < | + | <context> |
+ | \defineenumeration[Potato] | ||
+ | |||
+ | \Potato | ||
+ | |||
+ | One potato \par | ||
+ | |||
+ | \setupenumerations[Potato][location=left] | ||
+ | % In mkiv one would use `alternative=left`. | ||
+ | |||
+ | \Potato | ||
+ | |||
+ | Two potato \par | ||
+ | |||
+ | </context> | ||
== See also == | == See also == |
Revision as of 14:34, 24 April 2012
\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
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: