From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/375 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Bug in \defineenumeration Date: Fri, 02 Apr 1999 11:24:41 +0000 (/etc/localtime) Sender: owner-ntg-context@let.uu.nl Message-ID: <14084.43257.962632.878200@localhost> References: <000901be7c43$0ca44da0$0c01a8c1@worf.login-bv.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391240 23594 80.91.224.250 (23 Oct 2002 16:40:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:40:40 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: pragma@wxs.nl Xref: main.gmane.org gmane.comp.tex.context:375 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:375 >>>>> "Hans" == Hans Hagen writes: Hans> Taco Hoekwater wrote: >> This is ok I think, but i'm not certain (I get an error related >> to numbers, but it might be something completely different). Hans> Getthe latest from www.pragma-ade.nl. A few days ago I Hans> added a feature (cross linking enumerations was already Hans> supported, but I added global cross linking). Sorry, but it is not OK. \doornummeren[definition][tekst=Definition] \steldoornummerenin[definition] % some more here [plaats=aanelkaar,kopletter=kap, paragraafnummer=ja,wijze=perdeel] \startdefinition .... \stopdefinition This tries to evaluate the counter \@@ddDEFINITION@@ddnummer when typesetting (as well as \@@ddDEFINITIONlinks etc. etc.). >> Anyway, I'm going home: done enough for today. I am using the >> \defineenumeration to handle scientific enunciations, btw. This >> obviously has not been done before, and it is quite likely that >> there will be new/more bugs/feature requests to report soon. Hans> Let's hope this code is rather ok. We use Hans> enumerations/descriptions a lot, and in general the code is Hans> ok (like most old context stuff). Looking forward to Hans> tantilizing feature requests. \doornummeren[][plaats=aanelkaar,breedte=passend] This is too literal in it's interpretation of 'fitting'. I'd like at least one space between the number and the first char of the following paragraph. \doornummeren[][wijze=perdeel,paragraafnummer=ja] Does not give the desired result, which is: Theorem 2.1 % 1st global theorem, in paragraph 2 Theorem 3.2 % 2st global theorem, in paragraph 3 etc. Instead I get: Theorem 1 % 1st global theorem, in paragraph 2 Theorem 2 % 2st global theorem, in paragraph 3 \doornummeren[theorem][tekst=Theorem] \doornummeren[lemma][theorem][tekst=Lemma] \steldoornummerenin[...][wijze=perparagraaf,paragraafnummer=ja] Only works out OK if the first thing I encounter is indeed a theorem: Theorem 2.1 % 1st theorem, in paragraph 2 Lemma 2.2 % 1st lemma, in paragraph 2 Otherwise, I'll get: Lemma 1 % 1st lemma, in paragraph 2 Theorem 2.2 % 1st theorem, in paragraph 2 Hans> What are enunciations? What problems do you expect? The kap Hans> is among the most troublesome concerning attributes. Theorems, propositions, corollaries etc. Problems as above. Hans> Hans Hans> ----------------------------------------------------------------- Hans> Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | Hans> The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | Hans> www.pragma-ade.nl Hans> ----------------------------------------------------------------- -- Taco Hoekwater taco.hoekwater@wkap.nl Kluwer Academic Publishers -- Pre Press -- Achterom 119, 3311 KB Dordrecht, The Netherlands tel. 31-78-6392550 ---------------------------------------------------------------------