Difference between revisions of "Command/startenumeration"
< Command
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Forum == All issues with:") |
(add example with title) |
||
(10 intermediate revisions by 4 users not shown) | |||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>startenumeration</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 12: | Line 15: | ||
== Description == | == Description == | ||
+ | Multi-paragraph numbered objects, previously defined using {{cmd|defineenumeration}}. See {{cmd|defineenumeration}} for more elaborate info. | ||
+ | |||
+ | == Examples == | ||
+ | <context source=yes text="This gives:"> | ||
+ | \setupwhitespace[big] | ||
+ | \defineenumeration[theorem][text=Theorem, location=left] | ||
+ | % In mkiv we would write `alternative=left`. | ||
+ | |||
+ | \starttheorem | ||
+ | This theorem has multiple paragraphs. | ||
+ | |||
+ | We can prove this by counting them: we count more than one paragraph, quod erat demonstrandum. | ||
+ | \stoptheorem | ||
+ | |||
+ | \tex{theorem} can not contain multiple paragraphs: | ||
+ | |||
+ | \theorem | ||
+ | This theorem has multiple paragraphs. | ||
+ | |||
+ | We can prove this by counting them: we count more than one paragraph, quod erat demonstrandum. | ||
+ | |||
+ | </context> | ||
+ | |||
+ | It’s also possible to have titles: | ||
+ | |||
+ | <context source=yes> | ||
+ | \defineenumeration[Exercise][ | ||
+ | text=Exercise, | ||
+ | stopper={:}, | ||
+ | title=yes, % activate title | ||
+ | titleleft=, | ||
+ | titleright=, | ||
+ | way=bytext, % don’t restart numbering per chapter | ||
+ | margin=1em, % indenting | ||
+ | ] | ||
+ | \samplefile{knuth} | ||
+ | \startExercise[title={Something to do},reference=ex:something] | ||
+ | \samplefile{lorem} | ||
+ | \stopExercise | ||
− | + | \samplefile{tufte} | |
− | < | + | </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. | ||
− | == Help from ConTeXt-Forum == | + | == Help from ConTeXt-Mailinglist/Forum == |
All issues with: | All issues with: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Numbered objects|startenumeration]] |
Latest revision as of 19:48, 24 August 2021
\startenumeration
Syntax (autogenerated)
Syntax
\startenumeration ... \stopenumeration |
Description
Multi-paragraph numbered objects, previously defined using \defineenumeration. See \defineenumeration for more elaborate info.
Examples
\setupwhitespace[big] \defineenumeration[theorem][text=Theorem, location=left] % In mkiv we would write `alternative=left`. \starttheorem This theorem has multiple paragraphs. We can prove this by counting them: we count more than one paragraph, quod erat demonstrandum. \stoptheorem \tex{theorem} can not contain multiple paragraphs: \theorem This theorem has multiple paragraphs. We can prove this by counting them: we count more than one paragraph, quod erat demonstrandum.
This gives:
It’s also possible to have titles:
\defineenumeration[Exercise][ text=Exercise, stopper={:}, title=yes, % activate title titleleft=, titleright=, way=bytext, % don’t restart numbering per chapter margin=1em, % indenting ] \samplefile{knuth} \startExercise[title={Something to do},reference=ex:something] \samplefile{lorem} \stopExercise \samplefile{tufte}
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: