From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/54887 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Help watned for numbered descriptions Date: Mon, 30 Nov 2009 17:49:44 +0100 Message-ID: <4B13F7A8.5000203@wxs.nl> References: <5A20AD1B-4034-4FA5-A7C2-0EECA669D3C6@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1259599808 1727 80.91.229.12 (30 Nov 2009 16:50:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2009 16:50:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 30 17:50:01 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NF9Rl-0005Q5-Ao for gctc-ntg-context-518@m.gmane.org; Mon, 30 Nov 2009 17:49:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E8D83C9B66; Mon, 30 Nov 2009 17:46:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yGsvGB0v3Lvi; Mon, 30 Nov 2009 17:46:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 470F6C9B7A; Mon, 30 Nov 2009 17:46:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 20CFEC9B7A for ; Mon, 30 Nov 2009 17:46:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id p1oOvbTQ92lT for ; Mon, 30 Nov 2009 17:46:42 +0100 (CET) Original-Received: from mail.solcon.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by balder.ntg.nl (Postfix) with ESMTP id D6464C9B66 for ; Mon, 30 Nov 2009 17:46:42 +0100 (CET) X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.100; Original-Received: from [10.100.1.100] (unverified [10.100.1.100]) by controller-9 (SurgeMail 4.2a3) with ESMTP id 8645-1713362 for ; Mon, 30 Nov 2009 17:48:31 +0100 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <5A20AD1B-4034-4FA5-A7C2-0EECA669D3C6@gmail.com> X-Authenticated-User: hagen@controller-9 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:54887 Archived-At: 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 e= ach 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 i= s indeed at least a section, in section 1, I would like to have something l= ike > = > 1.1 Definition. Here is the text of the definition in slanted style. > =85 some text=85 > 1.2 Lemma. Here is the text of the lemma in slanted style. > =85some text=85 > 1.3 Theorem. Here is the text of the theorem in slanted style. > =85some text=85 > 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. > =85 some text=85 > 2. Lemma. Here is the text of the lemma in slanted style. > =85some text=85 > 3. Theorem. Here is the text of the theorem in slanted style. > =85some text=85 > 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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________