From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31783 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Header number separator Date: Tue, 7 Nov 2006 16:42:58 -0500 (EST) Message-ID: References: <2e8813a0611071143w27eb11c0we1bae7cf4fdf612b@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 1162935820 10774 80.91.229.2 (7 Nov 2006 21:43:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2006 21:43:40 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 07 22:43:35 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 1GhYj6-0001Lz-C4 for gctc-ntg-context-518@m.gmane.org; Tue, 07 Nov 2006 22:43:24 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 298E21FE60; Tue, 7 Nov 2006 22:43:23 +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 02304-02; Tue, 7 Nov 2006 22:43:11 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6831E1FE51; Tue, 7 Nov 2006 22:43:11 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5EF861FE53 for ; Tue, 7 Nov 2006 22:43:08 +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 02191-05 for ; Tue, 7 Nov 2006 22:43:00 +0100 (CET) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with SMTP id AF6871FE4E for ; Tue, 7 Nov 2006 22:42:59 +0100 (CET) Original-Received: FROM aditya.annarb01.mi.comcast.net (c-68-40-50-205.hsd1.mi.comcast.net [68.40.50.205]) BY tombraider.mr.itd.umich.edu ID 4550FDE1.7690D.20997 ; 7 Nov 2006 16:42:57 -0500 Original-To: mailing list for ConTeXt users In-Reply-To: <2e8813a0611071143w27eb11c0we1bae7cf4fdf612b@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:31783 Archived-At: On Tue, 7 Nov 2006, Jeff Smith wrote: > Hi, > > Some time ago I had a query on the list about roman numbering in > headers. Once I got my answer, I asked something else relatively > unrelated but in the same thread. It's probably bad etiquette, so I > figure that is why it has remained unheeded. I'd like to submit my > second query again. > > I have a problem with the separator in header numbers. I want to > use a different separator between chapter and section numbers (-), than between > section and subsection numbers (.). > > So, assuming I'm using roman numerals for chapters, I'd like numering > of sections to be I-1, I-2, I-3, etc., of subsections to be I-1.1, > I-1.2, I-2.1, I-2.2, I-2.3, etc. > > Is there a way to achieve what I want to do? Yes, as long as you do not want to refer to your sections :) The separator seems to be broken while refering anyways. \setupsection[section-2][bodypartconversion=Romannumerals] \setuphead [subsection] [numbercommand=\mysubsectionnumber] \setuphead[section][separator=-] \unprotect \def\mysubsectionnumber#1% {\@@shortsectionnumber{section-2}-% \@@shortsectionnumber{section-3}.% \@@shortsectionnumber{section-4}} \protect \starttext \chapter{Test} \section[sec]{section test} \subsection[sub]{test} The separator is not honored in \in Section[sec] and in \in subsection[sub]. \stoptext