Changes

Jump to navigation Jump to search
add example with title
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>startenumeration</syntax>
== [[Help:Reference|Syntax]] ==
== 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
== Example ==\samplefile{tufte}<!-- Please fill in an example if you can --/context>
== See also ==
<!* {{cmd|defineenumeration}} for creating new kinds of numbered objects.* {{cmd|setupenumerations}} for setting up looks and behaviour.* {{cmd|enumeration}} for single-- something like paragraph numbered objects.* {{cmd|gotostartenumeration}} for multiple-->paragraph numbered objects.
== Help from ConTeXt-Mailinglist/Forum ==

Navigation menu