![](https://secure.gravatar.com/avatar/b79687264c3e06cba13b54d05b12a9f5.jpg?s=120&d=mm&r=g)
Am 15.11.2013 um 17:02 schrieb Thomas Möbius
Hi,
please have a look at the minimal example at the bottom. I am typesetting theorems and lemmata which are numbered consecutively within chapters in a book. I used the same code for a document written in mkii, and I thought I could just reuse it in mkiv. Obviously, there is something I am missing. Question: How do I get the same output when compiling the following code with 'context' as when compiled with 'texexec'.
When compiled with 'context', the chapter number is missing in the numbering of theorems. Lemmas are not numbered at all.
~~~snip~~~ \setupenumerations [title=yes, style=normal, list=all, before={\blank[big]}, after={\blank[big]}, location=serried,
Change “location=serried” to “alternative=serried”.
width=broad, distance=0.5em, headstyle=bold, titlestyle=bold, way=bychapter, conversion=numbers]
You have to change “conversion” to “numberconversion” but this isn’t necessary because numbers are the default conversion format. To have chapter numbers as part of the counter add “prefix=yes”.
\defineenumeration [theorem] [text=Theorem, listtext={Theorem }]
\defineenumeration [lemma] [text=Lemma, listtext={Lemma }, number=theorem]
To use the counter of another enumeration use “counter=theorem”, not “name=theorem”. Wolfgang