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?


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to