Re: [NTG-context] PDF Custom Page Numbering

2010-06-10 Thread Zhichu Chen
On Thu, Jun 10, 2010 at 12:35 PM, Aditya Mahajan adit...@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 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

___
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
___


Re: [NTG-context] PDF Custom Page Numbering

2010-06-10 Thread Henning Hraban Ramm

Am 2010-06-10 um 10:30 schrieb Hans Hagen:

maybe if i'm bored i'll have a look at it (or when real strong  
arguments show up); the only advantage that i remember is that it's  
more convenient with printing a selecting page range


I consider it more professional when the displayed page number matches  
the printed one. E.g. if I prepare PDFs of magazines for download, I  
always change the custom page numbers of the cover to U1-U4, if the  
internal page numbering starts with 1 on PDF page 3. Similar, if  
there's a supplement in the middle.



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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
___


Re: [NTG-context] PDF Custom Page Numbering

2010-06-10 Thread Andreas Schneider
Hartmut Henkel wrote:

 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.

Thank you for digging up the correct term! Now my search results also look 
more promising :)

Best Regards,
Andreas.

___
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
___


Re: [NTG-context] PDF Custom Page Numbering

2010-06-10 Thread Andreas Schneider
Zhichu Chen wrote:

 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

Awesome, I'll try that right away. Thank you!

Best Regards,
Andreas.

___
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
___


Re: [NTG-context] PDF Custom Page Numbering

2010-06-10 Thread Andreas Schneider
Hans Hagen wrote:

 On 9-6-2010 11:27, Hartmut Henkel wrote:
 
 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.
 
 i think that i wrote code for it once (as with most new pdf features)
 but if it ever made it into the core ... i usually discard such things
 when viewers behave strange or unpredictable
 
 indeed it does not need a modified engine (most pdf things don't need a
 modification anyway)
 
 maybe if i'm bored i'll have a look at it (or when real strong arguments
 show up); the only advantage that i remember is that it's more
 convenient with printing a selecting page range
 
 Hans

I tried the given example(s), but it seems that \pdfcatalog{} doesn't 
currently work in MkIV (minimals, beta). The same example compiled fine in 
MkII.

(I was trying the following code: 
http://archive.contextgarden.net/message/20081016.174838.bff55fc9.en.html)


Best Regards,
Andreas.

___
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
___


[NTG-context] PDF Custom Page Numbering

2010-06-09 Thread Andreas Schneider
Hello,

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 :-)

Best Regards,
Andreas.

___
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
___


Re: [NTG-context] PDF Custom Page Numbering

2010-06-09 Thread Hartmut Henkel
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.

Regards, Hartmut
___
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
___


Re: [NTG-context] PDF Custom Page Numbering

2010-06-09 Thread Aditya Mahajan

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.


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
___