Enumeration numbering broken
Hello, in the following example, I'm pretty sure that it should produce Lemmas and Theorems numbered continuously (i.e., one common counter for both of them) and moreover, the numbers should (due to bychapter) be preceded by chapter number. In ConTeXt 2005.06.27, the enumerations are counted separately and chapter number prefix is missing. Interestingly, if Lemma and Theorem blocks are swapped, they become really Theorem 1 and Lemma 2. The chapter number is still missing. Has the mechanism been changed or am I doing anything wrong? *** \defineenumeration [Theorem] [text=Theorem~, way=bychapter, inbetween=\noindent] \defineenumeration [Lemma] [Theorem] [text=Lemma~] \starttext \chapter{chapter} \startLemma This should be Lemma 1.1 \stopLemma \startTheorem This should be Theorem 1.2 \stopTheorem \stoptext *** Thanks, D.A. -- Many rewrites, a hard-drive crash, a laptop being stolen, a couple of corrupted filesystems and one broken screen later, here it is. -- Rusty Russel: Linux 2.4 Packet Filtering HOWTO
David Antos wrote:
Hello,
in the following example, I'm pretty sure that it should produce Lemmas and Theorems numbered continuously (i.e., one common counter for both of them) and moreover, the numbers should (due to bychapter) be preceded by chapter number. In ConTeXt 2005.06.27, the enumerations are counted separately and chapter number prefix is missing.
Interestingly, if Lemma and Theorem blocks are swapped, they become really Theorem 1 and Lemma 2. The chapter number is still missing.
Has the mechanism been changed or am I doing anything wrong?
I believe your example is right, and that there is a bug/unintended functionality change. There has been a rather large set of changes to code core-des.tex for the 2005.05.25 release, and that seems the likely cause of this change. I do not understand this bit of ConTeXt good enough to come up with a patch, sorry. Taco
On Thu, Jul 14, 2005 at 11:11:42AM +0200, Taco Hoekwater wrote:
in the following example, I'm pretty sure that it should produce Lemmas and Theorems numbered continuously (i.e., one common counter for both of them) There has been a rather large set of changes to code core-des.tex for the 2005.05.25 release, and that seems the likely cause of this change. I do not understand this bit of ConTeXt good enough to come up with a patch, sorry.
Hello, yes, I've upgraded from an older release (something like 2005.01.xx) and it worked before. Hans, could you please have a look? Thanks, D.A. -- Trust no man, not even your brother With hair one colour and beard another -- Ty Semaka (The Plaid Tongued Devils): never drown a cat
David Antos wrote:
On Thu, Jul 14, 2005 at 11:11:42AM +0200, Taco Hoekwater wrote:
in the following example, I'm pretty sure that it should produce Lemmas and Theorems numbered continuously (i.e., one common counter for both of them)
There has been a rather large set of changes to code core-des.tex for the 2005.05.25 release, and that seems the likely cause of this change. I do not understand this bit of ConTeXt good enough to come up with a patch, sorry.
Hello,
yes, I've upgraded from an older release (something like 2005.01.xx) and it worked before.
Hans, could you please have a look?
i found the cause ... (quick hack for your doc: set way=bychapter for both); when i cleaned up the code i let numbers inherit in the wrong way btw what exactly was you problem with inbetween? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Wed, Jul 20, 2005 at 09:49:54PM +0200, Hans Hagen wrote:
i found the cause ... (quick hack for your doc: set way=bychapter for both); when i cleaned up the code i let numbers inherit in the wrong way btw what exactly was you problem with inbetween?
Hello, no problem with inbetween; the inbetween setting was necessary just because I used paragraph indents (and no vertical space) and I wanted the Theorems to be Theorem x.y No indent is here and not Theorem x.y Paragraph indent here looks really ugly So my example was small, but not really minimal :-) Thanks, D.A. -- Jim Hacker: "You are the Cabinet Secretary. You must insist that we get papers circulated earlier." Sir Humphrey: "Alas, there are grave problems about circulating papers before they are written." -- Yes, Prime Minister
participants (3)
-
David Antos
-
Hans Hagen
-
Taco Hoekwater