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

Reply via email to