Skip to content

pdf() and pch problems

3 messages · Gavin Simpson, Brian Ripley

#
On Thu, 2009-01-22 at 15:21 +0100, Martin Maechler wrote:
[Moved to R-Devel]

Same problem on Fedora 8 through 10. The snippet Martin shows fixes the
problem on those systems also. It would be very useful to have this
documented somewhere either as a note in ?pdf or in perhaps in the R
Installation and Administration Manual, until such a time as distro's
fix these problems.

To that end I'll also be filing a bug against fedora 10 when I get home
(and confirm it is still there) as my system has an entry for 'Zapf
Dingbats' but not 'ZapfDingbats' which causes the problems on my boxes.

Great to finally have worked around this issue --- not that it was R's
fault. I had completely missed the useDingbats argument of pdf(). The Rd
file does however make it sound that the default (TRUE) is there to fix
the problem of broken PDF viewers, where surely it is the FALSE state
that fixes the problem, or perhaps what was intended was that it is the
argument itself that was provided to fix buggy viewers.

I'd be happy to patch any/all of those sources if someone in R Core
would be willing to take a lot and possibly apply them?

All the best,

G
#
On Thu, 22 Jan 2009, Gavin Simpson wrote:

            
It is there on my F10 system (brand-new, installed last night).
The argument itself.  (This is not the only issue in PDF viewers, 
BTW, but here xpdf and gs both also work correctly.)
Send them to me and I'll take a look.

  
    
#
On Thu, 2009-01-22 at 15:08 +0000, Brian D Ripley wrote:
<snip />
Thanks Brian,

Attached is a patch to pdf.Rd against the SVN trunk, revision 47685,
which modifies the emphasis in the useDingbats argument and adds
information about the workaround on unix systems only. Please edit/use
as you see fit.

If this is sufficient to document the issue and workaround I won't patch
R-admin.texi as there doesn't appear to be anywhere suitable to insert
this note in that file - most platform specific information appears to
pertain to /building/ R not tweaking your system to work around a
problem whilst using R.

In case the attachment gets mangled somewhere on long the line, you can
grab the patch from:

http://www.homepages.ucl.ac.uk/~ucfagls/files/pdf.Rd.patch

All the best,

Gavin