[Rd] Rd2dvi pagination of index in pdf manual

Murray Efford murray.efford at otago.ac.nz
Wed Apr 28 14:54:07 CEST 2010


Many thanks. I'm using MiKTeX 2.8 which has texi2dvi.exe. I'll follow up on this when I can track down the tex file in the morning.
Murray

________________________________________
From: Prof Brian Ripley [ripley at stats.ox.ac.uk]
Sent: Thursday, 29 April 2010 12:29 a.m.
To: Murray Efford
Cc: r-devel at r-project.org
Subject: Re: [Rd] Rd2dvi pagination of index  in pdf manual

Hmm, the construction of the PDF is done by pdlatex/hyperref, not by
R.  What latex setup is this, and (guessing it is some version of
MiKTeX) does it have a texi2dvi.exe?  If so, the conversion from our
.tex file to PDF is managed entirely by texi2dvi.exe, and my guess is
that it has done too few passes.  You should be able to verify that by
using Rd2pdf --no-clean and running texi2dvi yourself on the saved
.tex file.  Most likely running pdflatex on the .tex one more time
will resolve this, so if you want to check texi2dvi.exe you would need
to copy the .tex elsewhere.

(The less likely alternative is that this is managed by
tools::texi2dvi and it is doing too few passes.)

If you have not already done so it would be worth checking that your
latex setup is fully updated: latex package hyperref is involved and
that is updated very frequently (more than weekly).

On Thu, 29 Apr 2010, Murray Efford wrote:

> I construct a pdf package manual in Windows 7 using
> R CMD Rd2dvi --pdf --no-preview [packagename]
> Page numbers are listed correctly under 'R topics documented' at the front, but incorrectly (offset by -2 pages) in the Index at the back. Following the hyperlinked page numbers in the Index takes you to the wrong page. 2 pages happens to be the length of the package overview man page inserted (out of alphabetical order) after 'R topics documented'.
>
> I'd be grateful for suggestions on what might be causing this and how I might fix it. I'm using R 2.10.1 and Rtools 2.10.1.
> Murray Efford
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-devel mailing list