25 Nov
2010
25 Nov
'10
9:54 a.m.
Hi! I want to have the following (Theorems and Lemmas share the counter, way=bysection): Section 1. Foo Theorem 1.1 Bar Lemma 1.2 Baz Section 2. Foo Theorem 2.1 Bar Lemma 2.2 Baz The following used to work about a month or two ago. \setupenumerations[way=bysection] \newcounter\theorems \defineenumeration[thm] [text=Theorem,prefix=yes,prefixsegments=section,counter=theorems] \defineenumeration[lem] [text=Lemma,prefix=yes,prefixsegments=section,counter=theorems] \starttext \dorecurse{5}{ \section{Foo} \startthm Bar \stopthm \startlem Baz \stoplem } \stoptext Today the counter doesn't reset, i.e. I get Theorem 2.3, Lemma 2.4, Theorem 3.5 etc. How can I fix it?