ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* enumeration counters, way=bysection
@ 2010-11-25  8:54 Yury G. Kudryashov
  2010-11-25  9:03 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Yury G. Kudryashov @ 2010-11-25  8:54 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-11-25 14:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-25  8:54 enumeration counters, way=bysection Yury G. Kudryashov
2010-11-25  9:03 ` Wolfgang Schuster
2010-11-25 14:45   ` Yury G. Kudryashov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).