Difference between revisions of "Command/setupenumerations"
< Command
Jump to navigation
Jump to search
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|") |
|||
(10 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>setupenumerations</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 11: | Line 14: | ||
<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 24: | ||
== 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 source=yes text="This gives:"> |
+ | \defineenumeration[Potato] | ||
+ | |||
+ | \Potato | ||
+ | One potato | ||
+ | |||
+ | \setupenumerations[Potato][location=left] | ||
+ | % In mkiv one would use `alternative=left`. | ||
+ | |||
+ | \Potato | ||
+ | Two potato | ||
+ | |||
+ | </context> | ||
+ | |||
+ | 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) | ||
+ | |||
+ | <context source=yes text="This gives:"> | ||
+ | \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 | ||
+ | </context> | ||
== See also == | == See also == | ||
− | + | * {{cmd|defineenumeration}} for creating new kinds of numbered objects. | |
+ | * {{cmd|setupenumerations}} for setting up looks and behaviour. | ||
+ | * {{cmd|enumeration}} for single-paragraph numbered objects. | ||
+ | * {{cmd|startenumeration}} for multiple-paragraph numbered objects. | ||
− | == ConTeXt-Forum == | + | == Help from ConTeXt-Mailinglist/Forum == |
+ | All issues with: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Numbered objects|setupenumerations]] |
Latest revision as of 13:45, 18 November 2019
\setupenumerations
Syntax (autogenerated)
\setupenumerations[...,...][...=...,...] | |
[...,...] | name |
...=...,... | inherits from \setupenumeration |
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
- \defineenumeration for creating new kinds of numbered objects.
- \setupenumerations for setting up looks and behaviour.
- \enumeration for single-paragraph numbered objects.
- \startenumeration for multiple-paragraph numbered objects.
Help from ConTeXt-Mailinglist/Forum
All issues with: