From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31811 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Header number separator Date: Thu, 9 Nov 2006 13:39:48 -0500 (EST) Message-ID: References: <2e8813a0611071143w27eb11c0we1bae7cf4fdf612b@mail.gmail.com> <2e8813a0611090854i59a71b36uc06372f310a98b9b@mail.gmail.com> 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 1163097617 18437 80.91.229.2 (9 Nov 2006 18:40:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Nov 2006 18:40:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 09 19:40:14 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 1GiEou-0001bD-A8 for gctc-ntg-context-518@m.gmane.org; Thu, 09 Nov 2006 19:40:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BAE571FE48; Thu, 9 Nov 2006 19:40:10 +0100 (CET) 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 06868-02; Thu, 9 Nov 2006 19:40:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 38EB21FE8C; Thu, 9 Nov 2006 19:40:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 127FC1FED9 for ; Thu, 9 Nov 2006 19:39:57 +0100 (CET) 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 06592-03-2 for ; Thu, 9 Nov 2006 19:39:49 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with SMTP id 964E01FE48 for ; Thu, 9 Nov 2006 19:39:48 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY hellskitchen.mr.itd.umich.edu ID 455375F2.6DF22.2252 ; 9 Nov 2006 13:39:46 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <2e8813a0611090854i59a71b36uc06372f310a98b9b@mail.gmail.com> 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:31811 Archived-At: On Thu, 9 Nov 2006, Jeff Smith wrote: > On 11/7/06, Aditya Mahajan wrote: > > >> I need this functionality for a project (IEEE conference style), so >> here is hack to get the feature. The referencing also works. >> >> Use with caution, can break existing macros. > > Wow, thanks a lot! This works as expected. In what situation can it > break existing macros? I intend to use that extensively but in a > fairly simple document (a thesis... yeah, another one in ConTeXt!). Is > there anything I should _not_ do? In principle, it should work fine for european languages. Lot of the trickery with numbers and number formats is present because ConTeXt also supports other languages like chinese and arabic. @@longsectionnumber is used a lot by the sectioning macros, and I do not completely understand what is happening here. My solution was based on trial and error and figuring out what works. Moreover, it changes a core feature of ConTeXt. I am associating separators with sectioning levels rather than with heads. Right now, in principle, you can have different separators for different heads at the same level. For example \setuphead[remark][section=section-4,separator=.] \setuphead[note][section=section-4,separator=-] With this change, this will no longer work. So, the macro is not backward compatible, and thus can break existing code. If you have only one head at each sectioning level, and do not plan to use Chinese or Arabic, it should work fine. Atleast for my simple, 5 page document, it works correctly :-) Aditya