Difference between revisions of "Command/setupenumerations"

From Wiki
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 [[Command/definedescription|\definedescription]] </td>
+
     <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 ==
<!-- Please fill in an example if you can -->
+
<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

\defineenumeration

Help from ConTeXt-Mailinglist/Forum

All issues with: