ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Help watned for numbered descriptions
Date: Mon, 30 Nov 2009 17:49:44 +0100	[thread overview]
Message-ID: <4B13F7A8.5000203@wxs.nl> (raw)
In-Reply-To: <5A20AD1B-4034-4FA5-A7C2-0EECA669D3C6@gmail.com>

Otared Kavian wrote:
> Hi all,
> 
> I need help for the following situation: in a maths paper I would like to have Definitions, Lemmas, Theorems, etc, numbered in a sequential way in each section if any, the numbers being set before the header, and also to be able to refer to them through cross references. For instance, when there is indeed at least a section, in section 1, I would like to have something like
> 
> 	1.1 Definition. Here is the text of the definition in slanted style.
> 	… some text…
> 	1.2 Lemma. Here is the text of the lemma  in slanted style.
> 	…some text…
> 	1.3 Theorem. Here is the text of the theorem  in slanted style.
> 	…some text…
> 	1.4 Corollary. Here is the text of the corollary  in slanted style.
> 
> And if there is no section at all:
> 
> 	1. Definition. Here is the text of the definition  in slanted style.
> 	… some text…
> 	2. Lemma. Here is the text of the lemma  in slanted style.
> 	…some text…
> 	3. Theorem. Here is the text of the theorem  in slanted style.
> 	…some text…
> 	4. Corollary. Here is the text of the corollary  in slanted style.
> 
> One way would be to define 4 descriptions or enumerations with 
> \definedescription or \defineenumeration
> but then I don't know how to have numbers incremented in a sequential way in all these descriptions. 
> Another issue with this approach would be that then if one wants to have for example a Conjecture or a Guess, one has to define a new description or enumeration.
> 
> Has anyone run into such a situation?

is quite trivial but there is an inheritance bug in mkiv so more later


-----------------------------------------------------------------
                                           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
-----------------------------------------------------------------
___________________________________________________________________________________
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	other threads:[~2009-11-30 16:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30 14:15 Otared Kavian
2009-11-30 16:49 ` Hans Hagen [this message]
2009-11-30 17:27 ` Aditya Mahajan
2009-11-30 18:34   ` Otared Kavian
2009-11-30 21:29     ` Hans Hagen
2009-12-01  5:10       ` Otared Kavian
2009-12-03 18:31       ` Otared Kavian

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=4B13F7A8.5000203@wxs.nl \
    --to=pragma@wxs.nl \
    --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).