From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59480 Path: news.gmane.org!not-for-mail From: Zhichu Chen Newsgroups: gmane.comp.tex.context Subject: Re: PDF Custom Page Numbering Date: Thu, 10 Jun 2010 14:38:39 +0800 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1472198965==" X-Trace: dough.gmane.org 1276151938 28534 80.91.229.12 (10 Jun 2010 06:38:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2010 06:38:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 10 08:38:52 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OMbPd-0003S8-Lu for gctc-ntg-context-518@m.gmane.org; Thu, 10 Jun 2010 08:38:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 260FFC9B91; Thu, 10 Jun 2010 08:38:49 +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 dtRxBTouI-+E; Thu, 10 Jun 2010 08:38:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7121FC9B4F; Thu, 10 Jun 2010 08:38:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A2AC4C9B4F for ; Thu, 10 Jun 2010 08:38:44 +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 3Md8jgk7CiNL for ; Thu, 10 Jun 2010 08:38:41 +0200 (CEST) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by balder.ntg.nl (Postfix) with ESMTP id 51B80C9B16 for ; Thu, 10 Jun 2010 08:38:41 +0200 (CEST) Original-Received: by iwn5 with SMTP id 5so618682iwn.14 for ; Wed, 09 Jun 2010 23:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=l/XH21xhbYvkP9xBWNLDLjmiPFd+1TLZh+UfV/vi7m8=; b=I2cJkDbGEZ9VIAxqFxXmSOMh3Hwr3UxUQp5adwhb2BDLeR2kgYOWEdt1Oy1oeYUy1b N2b3XsI6Co9A0o58IX9HQkdB7sl+Y+J+kqYSeg+p1RQ41VPdU2uT0U9DIVr0rz/Jt94M kbTWPnTJ89jTknyuo8v0luOJkOkVD3moz13DE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=lDJc0xVjRFEi0qa6jdl9YMK3dLSrvNPvWyh4b2lH14THtX5t+wRfUip6IdAiqUbFsg Jot4ZZmdBq1JKDVo+hpRdXjn5vuqTlpMwswUz6twWUwOb/BDJkM16r7SXK0VlIfvEfhS FzCG3QoK/oI4/mR84Osbd18pzW3bc2BnMjp24= Original-Received: by 10.231.141.26 with SMTP id k26mr8619029ibu.163.1276151919781; Wed, 09 Jun 2010 23:38:39 -0700 (PDT) Original-Received: by 10.231.16.70 with HTTP; Wed, 9 Jun 2010 23:38:39 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:59480 Archived-At: --===============1472198965== Content-Type: multipart/alternative; boundary=0016e65097f0dbeb0e0488a745ea --0016e65097f0dbeb0e0488a745ea Content-Type: text/plain; charset=UTF-8 On Thu, Jun 10, 2010 at 12:35 PM, Aditya Mahajan wrote: > On Wed, 9 Jun 2010, Hartmut Henkel wrote: > > On Wed, 9 Jun 2010, Andreas Schneider wrote: >> >> while reading through the PDF to ISO-9075-1 (SQL99), I noticed >>> something I had never seen before in a PDF: the page numbers displayed >>> by Acrobat matched exactly the ones in the document ... the beginning >>> was even numbered with roman numbers and the actual content started >>> again at "Page 1". From a quick research it seems that this >>> functionality is in PDF since Acrobat 4 (that should be PDF 1.3, >>> right?) and is most likely called "Custom Page Numbering". It would be >>> amazing if ConTeXt/LuaTeX supports that too - especially if you >>> produce documents for screen reading. >>> >>> Unfortunately I don't have access to the PDF Specification currently >>> to give you more info - so I don't even know for sure how that feature >>> is officially called. >>> >>> Anyway, I hope that idea/suggestion/wish finds positive reactions ... >>> and I somehow hope that it isn't actually too hard to implement :-) >>> >> >> it's named "Page Labels" (never seen before, thanks for the pointer), in >> the PDF Reference 5th ed. it's in section 8.3.1, the example 8.3 there >> typed into \pdfcatalog{} works right away, so no luatex engine >> modification needed. >> > > IIRC, the hyperref package in LaTeX supports this. I do not know if there > is a direct ConTeXt support. > Not direct, but ConTeXt CAN do this: http://www.ntg.nl/pipermail/ntg-context/2008/036947.html http://archive.contextgarden.net/message/20081016.174838.bff55fc9.en.html > > Aditya > > > ___________________________________________________________________________________ > 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 : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > -- Best Regards Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ---------------------------------------------------------------- --0016e65097f0dbeb0e0488a745ea Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Thu, Jun 10, 2010 at 12:35 PM, Aditya= Mahajan <adityam= @umich.edu> wrote:
On Wed, 9 Jun 2010, Hartmut Henkel wrote:

On Wed, 9 Jun 2010, Andreas Schneider wrote:

while reading through the PDF to ISO-9075-1 (SQL99), I noticed
something I had never seen before in a PDF: the page numbers displayed
by Acrobat matched exactly the ones in the document ... the beginning
was even numbered with roman numbers and the actual content started
again at "Page 1". From a quick research it seems that this
functionality is in PDF since Acrobat 4 (that should be PDF 1.3,
right?) and is most likely called "Custom Page Numbering". It wou= ld be
amazing if ConTeXt/LuaTeX supports that too - especially if you
produce documents for screen reading.

Unfortunately I don't have access to the PDF Specification currently to give you more info - so I don't even know for sure how that feature<= br> is officially called.

Anyway, I hope that idea/suggestion/wish finds positive reactions ...
and I somehow hope that it isn't actually too hard to implement :-)

it's named "Page Labels" (never seen before, thanks for the p= ointer), in
the PDF Reference 5th ed. it's in section 8.3.1, the example 8.3 there<= br> typed into \pdfcatalog{} works right away, so no luatex engine
modification needed.

IIRC, the hyperref package in LaTeX supports this. I do not know if there i= s a direct ConTeXt support.

Aditya

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =C2=A0: http= ://www.pragma-ade.nl / http://tex.aanhet.net
archive =C2=A0: http://foundry.supelec.fr/projects/contextrev/
wiki =C2=A0 =C2=A0 : http://contextgarden.net
___________________________________________________________________________= ________



--
Best Regard= s
Chen
--------------------------------------------------------------= --

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Zhi-chu Chen | Shanghai Synchr= otron Radiation Facility
=C2=A0 =C2=A0 =C2=A0 =C2=A0 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P= .R. China
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 tel: 086 21 5955 34= 05 | zhichu.chen.googlepages= .com
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 | www.sinap.ac.= cn
----------------------------------------------------------------
--0016e65097f0dbeb0e0488a745ea-- --===============1472198965== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1472198965==--