From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92328 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Formatting of page number in table of contents Date: Tue, 11 Aug 2015 19:40:05 +0200 Message-ID: <55CA3375.2010202@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0337712399==" X-Trace: ger.gmane.org 1439314857 4422 80.91.229.3 (11 Aug 2015 17:40:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2015 17:40:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 11 19:40:38 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZPDXS-0004Ds-1Y for gctc-ntg-context-518@m.gmane.org; Tue, 11 Aug 2015 19:40:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDC8E10231 for ; Tue, 11 Aug 2015 19:40:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gRGRkL1Jl_GE for ; Tue, 11 Aug 2015 19:40:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 102BA10233 for ; Tue, 11 Aug 2015 19:40:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E302B101F9 for ; Tue, 11 Aug 2015 19:40:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Bge3AeIEhZlr for ; Tue, 11 Aug 2015 19:40:09 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 3BF0F101E6 for ; Tue, 11 Aug 2015 19:40:09 +0200 (CEST) Original-Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t7BHe8bE003241 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 11 Aug 2015 19:40:08 +0200 Original-Received: by wicne3 with SMTP id ne3so186737607wic.1 for ; Tue, 11 Aug 2015 10:40:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=VrK9ROdVAI+FY1pU0FI2xEh50g58F2elshPBxHJg/KY=; b=uwcly6Ymgox8LSl63iX3vFKuEDR5vIi9zywdDQCHmtE0Hr9pHx3rOZpC7Kwt9+8w6u 6faoVoi7rgg/VB7n+/S8CxrkTTC6sGy8ja3BJ0SifPz7TMx45brKO8JsQYaacRyVLXGo G+Q64u7fxl0IW9WP7eePXvPMFB5XIbNd8Eq7EQRwdzrsBA72IhgkybVF0gUhv9fIEkZ+ /O9S+s0dZwEMMBik3QVHQ8BczGC46ZH4kAEZ+pMVSWBpjGt8h33Mmz0ihelIH8agscPe a5MR6ukyrifJyGo7vlPQgMAg78XDDoilSASRG3Hgh+DyPNuD4Y0sfclmNHHNIIHH151r sQYQ== X-Received: by 10.194.81.137 with SMTP id a9mr62275854wjy.155.1439314808045; Tue, 11 Aug 2015 10:40:08 -0700 (PDT) Original-Received: from keima.localdomain (x2f25c14.dyn.telefonica.de. [2.242.92.20]) by smtp.googlemail.com with ESMTPSA id lq9sm3983441wjb.35.2015.08.11.10.40.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Aug 2015 10:40:07 -0700 (PDT) User-Agent: Postbox 4.0.3 (Macintosh/20150805) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::231; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01P3tE8u6 - fe1f6ef0e1fe - 20150811 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::231 as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::231; envelope-from=; helo=mail-wi0-x231.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92328 Archived-At: This is a multi-part message in MIME format. --===============0337712399== Content-Type: multipart/alternative; boundary="------------020400060607090902060001" This is a multi-part message in MIME format. --------------020400060607090902060001 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Aditya Mahajan > 11. August 2015 18:53 > Hi, > > I am using a document structure "part-section-subsection" (i.e., no > chapters). The page numbers have to be formatted as > "partnumber-pagenumber". So, I am using the following setup: > > \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] > > The page numbers are formatted correctly on each page, but not in the > table of contents. For example, > > \setupuserpagenumber[way=bypart, prefix=yes, prefixset=part] > > \starttext > \placelist[part,section][alternative=c, criterium=all] Change this to \placelist[part,section][alternative=c,criterium=all,pageprefixsegments=part] or \placelist[part,section][alternative=c,criterium=all,pageprefixset=part] Wolfgang --------------020400060607090902060001 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
11= .=20 August 2015 18:53
Hi,

I am using a document structure "part-section-subsection" (i.e., no=20 chapters). The page numbers have to be formatted as=20 "partnumber-pagenumber". So, I am using the following setup:

\setupuserpagenumber[way=3Dbypart, prefix=3Dyes, prefixset=3Dpart]

The page numbers are formatted correctly on each page, but not in=20 the=20 table of contents. For example,

\setupuserpagenumber[way=3Dbypart, prefix=3Dyes, prefixset=3Dpart]

\starttext
\placelist[part,section][alternative=3Dc, criterium=3Dall]
Change this to

=C2=A0=C2=A0=C2=A0=20 \placelist[part,section][alternative=3Dc,criterium=3Dall,pageprefixsegmen= ts=3Dpart]

or

=C2=A0=C2=A0=C2=A0=20 \placelist[part,section][alternative=3Dc,criterium=3Dall,pageprefixset=3D= part]

Wolfgang
--------------020400060607090902060001-- --===============0337712399== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0337712399==--