On Monday 22 May 2006 07:24 pm, Paul A. Rubin wrote:
> Steve Litt wrote:
> > On Monday 22 May 2006 11:42 am, Paul A. Rubin wrote:
> >> Steve Litt wrote:
> >>> Here's a fairly minimal test.lyx. On my system, when I
> >>> View->Postscript, the gv page numbers reset at page 1 (gv pages 1, 1
> >>> and 2 correspond to logical pages i, 1 and 2). This is correct.
> >>>
> >>> However, when I View->PDF(pdflatex) or any other conversion to pdf, my
> >>> gv page numbers are 1, 2 and 3 corresponding to logical page numbers i,
> >>> 1 and 2. This results in the gv page numbers not matching the logical
> >>> page numbers.
>
> Oops. It occurs to me that maybe we're talking at cross-purposes here.
>
> In all three of your output files (DVI, PS, PDF), the page numbers *in
> the document display* go i, 1, 2. I thought that's what you were saying
> was munged, but perhaps not. In GSView, the page numbers reported in
> the status line of the program for the PS file are '"1" 1 of 3', '"1" 2
> of 3' and '"2" 3 of 3' respectively; for the PDF they are '"1" 1 of 3',
> '"2" 2 of 3' and '"3" 3 of 3'. The page numbers reported by Acrobat
> Reader for the PDF are '1 of 3', '2 of 3' and '3 of 3'.
>
> To get the PDF viewer to recognize correct page numbers in its status
> line (as opposed to in the document window), try adding
> \usepackage[pdfpagelabels]{hyperref} to the preamble. (You might want
> to add the option 'pdfpagemode=None' to avoid having an empty bookmark
> tab open on the left, at least in Acrobat Reader.)
>
> Note that this will turn your table of contents into links. If you
> don't want that, toss in the option 'draft', i.e.,
>
> \usepackage[draft,pdfpagelabels,pdfpagemode=None]{hyperref}
>
> in the preamble.
>
> Sorry for the confusion,
> /Paul
Thanks Paul,
Just so the symptom is completely described, I've uploaded ps.jpg and pdf.jpg
to http://www.a3b3.com/lyx/. They're annotated to completely describe the
symptom. The ps.jpg file's title bar says "test.dvi", but it was created by
LyX's View->Postscript.
I've also included a new test.lyx with all 3 syntaxes included, although of
course two are commented out.
No matter which of your hyperref syntaxes I used, I could not get the pdf
reader's numbers to reset. Also, if I used:
\usepackage[pdfpagelabels,pdfpagemode=None]{hyperref}
View->PDF(pdflatex) produced the following error:
pdfTeX warning (ext4): destination with the same identifier (name{page.1}) ha
\chapter
{Chapter two} [1
Thanks for all the help. This really is important to me because I'm selling an
Ebook, and it would be much nicer if the document's page numbers matched
those on the viewer.
I'm still wondering if the pst-pdf package would solve this, but as I
mentioned in my 5/21 post, its documentation is sparse and doesn't match the
files sent, and the package appears to error out when incorporated in any
obvious way.
Thanks
SteveT
Steve Litt
Author:
* Universal Troubleshooting Process courseware
* Troubleshooting Techniques of the Successful Technologist
* Manager's Guide to Technical Troubleshooting
* Twenty Eight Tales of Troubleshooting
* Rapid Learning: Secret Weapon of the Successful Technologist
http://www.troubleshooters.com/bookstore
http://www.troubleshooters.com/utp/tcourses.htm