ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Antos <xantos@informatics.muni.cz>
Subject: Enumeration numbering broken
Date: Wed, 13 Jul 2005 18:06:47 +0200	[thread overview]
Message-ID: <20050713160647.GA3439@erik.fi.muni.cz> (raw)


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

             reply	other threads:[~2005-07-13 16:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13 16:06 David Antos [this message]
2005-07-14  9:11 ` Taco Hoekwater
2005-07-14 11:47   ` David Antos
2005-07-20 19:49     ` Hans Hagen
2005-07-20 20:39       ` David Antos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050713160647.GA3439@erik.fi.muni.cz \
    --to=xantos@informatics.muni.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).