Re: [R] Converting from encapsulated postscript to encapsulated pdf

From: Frank E Harrell Jr <f.harrell_at_vanderbilt.edu>
Date: Wed, 16 Apr 2008 20:47:45 -0500

Marc Schwartz wrote:
> Frank E Harrell Jr wrote:

>> I have several old encapsulated postscript graphics generated by R 
>> that I want to include in a LaTeX Beamer presentation so I want them 
>> in pdf.   Under Ubuntu linux typing
>>
>> convert z.eps z.pdf (to use ImageMagick)
>>
>> results in a nice looking graphic but the bounding box is lost.  Doing
>>
>> convert z.eps z.epdf
>>
>> results in a fuzzy image with a good bounding box.
>>
>> Does anyone have a nice solution?
>>
>> Thanks
>> Frank

>
>
> Frank,
>
> Do you only have EPS files or do you also need to include PDF files?
>
> If the former, you can use Beamer with latex -> dvips -> ps2pdf as an
> alternative to using pdflatex as a single step.
>
> If you need to have them as PDF's, two other options:
>
> 1. Use 'epstopdf':
>
> http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/epstopdf.html
>
> which is a Perl script that uses GS to do the conversion.
>
>
> 2. Use 'epstopdf.sty', which is part of the oberdiek CTAN bundle. This
> will enable the conversion of the EPS files to PDF as part of using
> pdflatex. A link is here:
>
> http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/epstopdf-pkg.html
>
> This will actually call the epstopdf Perl script above.
>
>
> HTH,
>
> Marc
>

Thanks very much Marc. Somehow I had missed that Beamer would work with latex instead of pdflatex and I also didn't know about epstopdf.sty. I ran the files through epstopdf and all seems well for me to keep using pdflatex.

Frank

-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu 17 Apr 2008 - 03:51:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 17 Apr 2008 - 04:30:28 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive