From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30621 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: listoffloats question Date: Fri, 1 Sep 2006 13:07:13 -0400 (EDT) Message-ID: References: <44F84E39.50506@mevis.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1157130470 21396 80.91.229.2 (1 Sep 2006 17:07:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Sep 2006 17:07:50 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 01 19:07:46 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GJCUQ-00037l-Hf for gctc-ntg-context-518@m.gmane.org; Fri, 01 Sep 2006 19:07:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E3AB81FE52; Fri, 1 Sep 2006 19:07:33 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 07440-05; Fri, 1 Sep 2006 19:07:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BF0631FD7B; Fri, 1 Sep 2006 19:07:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 868281FD7B for ; Fri, 1 Sep 2006 19:07:25 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10950-02 for ; Fri, 1 Sep 2006 19:07:20 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with SMTP id D658E1FCE4 for ; Fri, 1 Sep 2006 19:07:19 +0200 (CEST) Original-Received: FROM eecs4327u10.engin.umich.edu (eecs4327u10.engin.umich.edu [141.213.51.138]) BY hackers.mr.itd.umich.edu ID 44F868C6.235F3.29862 ; 1 Sep 2006 13:07:18 -0400 X-X-Sender: adityam@eecs4327u10.engin.umich.edu Original-To: mailing list for ConTeXt users In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30621 Archived-At: On Fri, 1 Sep 2006, nico wrote: > On Fri, 01 Sep 2006 17:14:01 +0200, richard rascher-friesenhausen > wrote: > >> Hello, >> >> in my scripts i use different kinds of figure, defined as floats cloned >> from the original ConTeXt figure: >> >> \definefloat[afigure][afigures][figure] >> \definefloat[bfigure][bfigures][figure] >> >> In my script environment i use different setups for figure, afigure and >> bfigure that are not shown here. >> Using cloning, all figures use the same counter, which is nice. > > Really? In which release the counter is the same? With your case, I have > here the figure numbers 1, 1, 1, 2, 2, 2. I confirm that with the latest beta, I get the same results. But looking at the definition of redodefinefloat this should work. \def\redodefinefloat[#1][#2][#3]% same label/number %[snip] \definenumber[#1][#3]% %[snip] This means that the number #1 and #3 should be coupled. A simple test confirms this \definenumber[one] \definenumber[two][one] \starttext one: \getnumber[one] \incrementnumber[two] one: \getnumber[one] two: \getnumber[two] \stoptext I do not understand why this should fail with definefloat. BTW, why is the definition of redodefinefloat repeated in the source? Aditya