From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38261 Path: news.gmane.org!not-for-mail From: Saji Hameed Newsgroups: gmane.comp.tex.context Subject: Re: page numbers in Table of Contents, mismatch Date: Tue, 25 Dec 2007 09:04:52 +0900 Message-ID: References: <20071218170612.GA8581@apcc21.net> <20071223192252.156178d7.schuster.wolfgang@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0260665988==" X-Trace: ger.gmane.org 1198541298 26703 80.91.229.12 (25 Dec 2007 00:08:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Dec 2007 00:08:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 25 01:08:30 2007 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 lo.gmane.org with esmtp (Exim 4.50) id 1J6xLS-0004lQ-8l for gctc-ntg-context-518@m.gmane.org; Tue, 25 Dec 2007 01:08:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F7B21FB23; Tue, 25 Dec 2007 01:07:56 +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 14802-02-6; Tue, 25 Dec 2007 01:07:28 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0FB861FA2B; Tue, 25 Dec 2007 01:07:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F9F31FA4C for ; Tue, 25 Dec 2007 01:06:38 +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 16099-01 for ; Tue, 25 Dec 2007 01:05:32 +0100 (CET) Original-Received: from jem01.its.hawaii.edu (jem01.its.hawaii.edu [128.171.224.23]) by ronja.ntg.nl (Postfix) with ESMTP id 05AAC1FA55 for ; Tue, 25 Dec 2007 01:05:24 +0100 (CET) Original-Received: from pmxchannel-daemon.jem01.its.hawaii.edu by jem01.its.hawaii.edu (Sun Java System Messaging Server 6.2-5.04 (built Jan 24 2006)) id <0JTK00001W8DFI00@jem01.its.hawaii.edu>; Mon, 24 Dec 2007 14:05:01 -1000 (HST) Original-Received: from [192.168.1.100] ([220.84.93.89]) by jem01.its.hawaii.edu (Sun Java System Messaging Server 6.2-5.04 (built Jan 24 2006)) with ESMTPSA id <0JTK00J6BW85RA20@jem01.its.hawaii.edu>; Mon, 24 Dec 2007 14:04:56 -1000 (HST) In-reply-to: <20071223192252.156178d7.schuster.wolfgang@googlemail.com> X-Mailer: Apple Mail (2.752.3) X-PMX-Version: 5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2007.12.24.155056 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:38261 Archived-At: --===============0260665988== Content-type: multipart/alternative; boundary="Boundary_(ID_gWR7Ap2v04XGVUBY2xEshA)" --Boundary_(ID_gWR7Ap2v04XGVUBY2xEshA) Content-type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-transfer-encoding: 7BIT On Dec 24, 2007, at 3:22 AM, Wolfgang Schuster wrote: > On Wed, 19 Dec 2007 02:06:12 +0900 > Saji N Hameed wrote: > >> Dear ConText gurus, >> >> I am faced with a new problem with the page numbering in the >> Table of Contents. In the appendices, I use: >> >> \setuppagenumbering >> [way=bychapter, >> chapternumber=yes, >> numberseparator=-] >> >> to get page numbers like A-15, B-24 ... etc >> However, the page numbers associated with Appendix 1 in the Table >> of Contents is like >> >> 1 Introduction 11 >> 1.1 Goals of Research 11 >> 1.2 Necessity of Research 11 >> >> A Real-time Monitoring of Intraseasonal Variations 15 >> B Drought Monitoring Based on Standardized Precipitation Index 24 >> >> I am wondering if there is a way to get ConText to write my TOC as: >> >> A Real-time Monitoring of Intraseasonal Variations A-15 >> B Drought Monitoring Based on Standardized Precipitation Index B-24 >> >> My document is structured as follows: >> >> \input layout >> \starttext >> >> \startfrontmatter >> \input HomePage >> \stopfrontmatter >> >> \placelist[chapter,section] >> >> \startbodymatter >> \input Chapter1 >> \input Chapter2 >> \stopbodymatter >> >> \startappendices >> \input Appendix1 >> \input Appendix2 >> \stopappendices >> >> \stoptext >> >> Thanks as always, >> >> saji > > Please send next time a working example. > > \usemodule[visual] > > \def\doMyCommand#1--#2-#3-#4--#5]\relax{{\convertnumber{A}{#3}-#5}} > \def\MyCommand#1{\expandafter\doMyCommand#1\relax} > > \startsectionblockenvironment[appendix] > > \setuppagenumbering > [way=bychapter, > chapternumber=yes, > numberseparator=-] > > %\setuplist[section][state=stop] > > \writebetweenlist[chapter]{\setuplist[chapter] > [chapternumber=yes,pagecommand=\MyCommand]} > > \stopsectionblockenvironment > > \starttext > > \startfrontmatter > > \completecontent > > \stopfrontmatter > > \startbodymatter > > \dorecurse{4} > {\chapter{\fakewords{5}{10}} > \dorecurse{4} > {\section{\fakewords{5}{10}} > \dorecurse{2}{\fakewords{100}{150}\par}}} > > \stopbodymatter > > \startappendices > > \dorecurse{4} > {\chapter{\fakewords{5}{10}} > \dorecurse{4} > {\section{\fakewords{5}{10}} > \dorecurse{3}{\fakewords{40}{80}}}} > > \stopappendices > > \stoptext > > This is the best solution I found, it is a little bit ugly (llok at > the ] in \doMyCommand) but the only working solution. > > Merry Christmas. > > Wolfgang Dear Wolfgang, Thanks as always. Wish you a Merry Christmas and a Happy 2008, saji > ______________________________________________________________________ > _____________ > If your question is of interest to others as well, please add an > entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ > ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ______________________________________________________________________ > _____________ --Boundary_(ID_gWR7Ap2v04XGVUBY2xEshA) Content-type: text/html; charset=ISO-8859-1 Content-transfer-encoding: quoted-printable



On Dec = 24, 2007, at 3:22 AM, Wolfgang Schuster wrote:

On Wed, 19 Dec 2007 02:06:12 +0900
Saji N Hameed <saji@apcc21.net> wrote:

Dear ConText gurus,

I am = faced with a new problem with the page numbering in the
Table of Contents. In the appendices, I = use:

\setuppagenumbering
=A0=A0 [way=3Dbychapter,=A0
=A0 =A0 = chapternumber=3Dyes,
=A0 =A0 = numberseparator=3D-]

to get page numbers like A-15, = B-24 ... etc
However, the page numbers = associated with Appendix 1 in the Table
of = Contents is like

=A0 1 = Introduction =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = 11
=A0 =A0 1.1 Goals of = Research=A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 11
=A0 =A0 = 1.2 Necessity of Research=A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = 11

=A0 A = Real-time Monitoring of Intraseasonal Variations =A0 =A0 =A0 =A0 =A0 =A0 = 15
=A0 B Drought Monitoring Based on = Standardized Precipitation Index 24

I am wondering if there is a way = to get ConText to write my TOC as:

=A0 A Real-time Monitoring of = Intraseasonal Variations =A0 =A0 =A0= =A0 =A0 =A0 A-15
=A0 B Drought Monitoring Based on = Standardized Precipitation Index B-24

My document = is structured as follows:

\input layout
\starttext

=A0 \startfrontmatter
=A0 =A0 = \input HomePage
=A0 \stopfrontmatter

=A0 = \placelist[chapter,section]

=A0 \startbodymatter
=A0 =A0 = \input Chapter1
=A0 =A0 \input Chapter2
=A0 = \stopbodymatter
=A0 \startappendices
=A0 =A0 = \input Appendix1
=A0 =A0 \input = Appendix2
=A0 \stopappendices


Thanks as always,

saji
=

Please send next time a working example.



=A0=A0 [way=3Dbychapter,
=A0 =A0 = chapternumber=3Dyes,
=A0 =A0 = numberseparator=3D-]




\starttext

\completecontent

\startbodymatter

=A0 = {\chapter{\fakewords{5}{10}}
=A0=A0 \dorecurse{4}
=A0=A0 =A0 = {\section{\fakewords{5}{10}}
=A0 =A0 =A0 = \dorecurse{2}{\fakewords{100}{150}\par}}}


\startappendices

\dorecurse{4}
=A0 = {\chapter{\fakewords{5}{10}}
=A0=A0 \dorecurse{4}
=A0=A0 =A0 = {\section{\fakewords{5}{10}}
=A0 =A0 =A0 = \dorecurse{3}{\fakewords{40}{80}}}}


\stoptext

This is the best solution I = found, it is a little bit ugly (llok at
the ] in = \doMyCommand) but the only working solution.

Merry = Christmas.

Wolfgang

Dear Wolfgang,

Thanks as = always.=A0

Wish you a =A0Merry = Christmas and a Happy 2008,

saji

If your question is of interest = to others as well, please add an entry to the Wiki!

maillist = : ntg-context@ntg.nl / http://www.ntg.nl/= mailman/listinfo/ntg-context