Difference between revisions of "Command/enumeration"
< Command
Jump to navigation
Jump to search
(Category: Numbered objects) |
|||
Line 18: | Line 18: | ||
== Description == | == Description == | ||
+ | The next paragraph is an item of type ''enumeration''. The ''enumeration'' type is previously defined and set up using {{cmd|defineenumeration}} and {{cmd|setupenumerations}}. Enumerations have a wide variety of uses; remarks, questions and answers, and theorems are probably the most common ones. When an enumeration is defined, sub- and subsubenumerations are automatically available. | ||
+ | == Example == | ||
+ | <context source=yes text"This gives:"> | ||
+ | % Define enumerated intermezzos | ||
+ | \defineenumeration[intermz][text=Intermezzo, location=left] | ||
+ | |||
+ | \starttext | ||
+ | |||
+ | \intermz | ||
+ | This is the first paragraph. It is part of the intermezzo. It is a reasonably longish paragraph. | ||
+ | |||
+ | This is the second paragraph. It is not part of the intermezzo. | ||
− | + | \subintermz | |
− | < | + | This is a sub-intermezzo. |
+ | |||
+ | \stoptext | ||
+ | </context> | ||
== See also == | == See also == | ||
− | + | * {{cmd|defineenumeration}} for more about enumerations. | |
+ | * {{cmd|setupenumerations}} for setting up looks and behaviour. | ||
+ | * {{cmd|startenumeration}} for multiple-paragraph objects. | ||
== Help from ConTeXt-Mailinglist/Forum == | == Help from ConTeXt-Mailinglist/Forum == |
Revision as of 15:00, 24 April 2012
\enumeration
Syntax
\enumeration... | |
... | text |
Description
The next paragraph is an item of type enumeration. The enumeration type is previously defined and set up using \defineenumeration and \setupenumerations. Enumerations have a wide variety of uses; remarks, questions and answers, and theorems are probably the most common ones. When an enumeration is defined, sub- and subsubenumerations are automatically available.
Example
% Define enumerated intermezzos \defineenumeration[intermz][text=Intermezzo, location=left] \starttext \intermz This is the first paragraph. It is part of the intermezzo. It is a reasonably longish paragraph. This is the second paragraph. It is not part of the intermezzo. \subintermz This is a sub-intermezzo. \stoptext
See also
- \defineenumeration for more about enumerations.
- \setupenumerations for setting up looks and behaviour.
- \startenumeration for multiple-paragraph objects.
Help from ConTeXt-Mailinglist/Forum
All issues with: