From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28925 Path: news.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: sectionnumber conversion redux Date: Wed, 28 Jun 2006 09:26:22 +0200 Message-ID: <44A22F1E.3060402@elvenkind.com> References: 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 1151479924 17334 80.91.229.2 (28 Jun 2006 07:32:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Jun 2006 07:32:04 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 28 09:32:01 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 1FvUWJ-0002c7-JP for gctc-ntg-context-518@m.gmane.org; Wed, 28 Jun 2006 09:31:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A67A812889; Wed, 28 Jun 2006 09:31:31 +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 18509-02; Wed, 28 Jun 2006 09:31:31 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 61ADB12884; Wed, 28 Jun 2006 09:26:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C941312884 for ; Wed, 28 Jun 2006 09:26:26 +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 16768-07-2 for ; Wed, 28 Jun 2006 09:26:24 +0200 (CEST) Original-Received: from post-22.mail.nl.demon.net (post-22.mail.nl.demon.net [194.159.73.192]) by ronja.ntg.nl (Postfix) with SMTP id 974C012871 for ; Wed, 28 Jun 2006 09:26:24 +0200 (CEST) Original-Received: from boo.demon.nl ([82.161.175.147]:53163 helo=[192.168.1.3]) by post-22.mail.nl.demon.net with esmtp (Exim 4.51) id 1FvURL-00042S-GZ for ntg-context@ntg.nl; Wed, 28 Jun 2006 07:26:23 +0000 User-Agent: Mozilla Thunderbird 1.0.6-7.6.20060mdk (X11/20050322) X-Accept-Language: en-us, en 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:28925 Archived-At: Idris Samawi Hamid wrote: > I sent this a week ago, still awaiting help :-) Sorry, missed it. This fixes the page numbers in the headers \setupsection [section-1][conversion=Romannumerals] I do not (yet) know how to fix the TOC. > Idris > > On Tue, 20 Jun 2006 19:20:58 -0600, Idris Samawi Hamid > wrote: > > Dear fellow gangsters, > > Consider the following test file; partnumber=on. I would like partnumber > to be converted to capital roman numerals while the page numeral remains > as an Arabic numeral. Viz., instead of > > 1--1, 1--2 etc. > > in the TOC and pagenumbers I would like > > I--1, I--2 etc. > > in the TOC and pagenumbers. Is there a command like > > \setupsectionnumbering[conversion=Romannumerals]? Then I would say, > > \setuppartnumbering[conversion=Romannumerals] > > The test file is below. > > Best > Idris > > =======================part-test.tex================== > % output=pdf interface=en > > \def\PartTitle#1{\noheaderandfooterlines > \vbox{\blank[force,7\bodyfontsize] > \switchtobodyfont[14.4pt] > \midaligned{\cgd #1} > }} > > \setuphead[part][number=no, > ownnumber=yes, > style=\itd, > textcommand=\PartTitle, > placehead=yes] > > \setupsection [section2] > [appendixconversion=Character, % Watch the capital > previousnumber=no] > > %\setuppagenumbering[way=bytext,partnumber=no] > %\setupcombinedlist[content][partnumber=no] > > \starttext > > \startbodymatter > > \placecontent > > \part{I}{Body} > > \chapter{The Body Stuff} > > \stopbodymatter > > \startappendices > > \setupheadnumber[part][+] > > \part{II}{Appendices} > > \chapter{Appendix} > > \stopappendices > > \stoptext > > ====================================================== >