Martin Henry H. Stevens wrote:

> I am running Mac OS 10.3.5 and LyX 1.3.5.
> I get an error when I try to incorporate a pdf image into a LyX file.
> In place of the image it states
> 
> "Error converting to loadable format."
> 
> The error message I get when trying to convert to postscript reads
> 
> "LaTeX Error: File
> `/tmp/lyx_tmpdir10732GLmAp/lyx_tmpbuf0/_Users_Hank_Document
>   ..._Users_Hank_Documents_671_Classes_Rplots}
> I could not locate the file with any of these extensions:
> .eps,.ps,.eps.gz,.ps.gz,.eps.Z
> Try typing  <return>  to proceed.
> If that doesn't work, type  X <return>  to quit.
> 
> I don't know how to get LyX to load pdf images. (It seems to work fine
> on another Mac machine - my laptop).
> Any thought would be very appreciated.
> TIA,
> Hank

You need to define a converter from pdf to eps. See the Edit->Preferences
dialog and the Converters pane therein.

Two readily available utilities are:

* pdftops which is part of XPDF http://www.foolabs.com/xpdf/
    pdftops [options] PDF-file PS-file

* pdf2ps which is part of GhostScript http://www.cs.wisc.edu/~ghost/
    pdf2ps [options] PDF-file PS-file

A typical entry in the Preferences dialog might be:

From:           PDF
To:             EPS
Converter:      pdf2ps $$i $$o
Extra flag:

Press 'Modify' to add the converter to the list of Converters stored
locally, by the dialog and then press Save or Apply to make this change
visible to the rest of LyX.

Of course, you might try your new converter out by hand, from the command
line, to see whether it works or not...

One final piece of info: the Wiki is full of helpful tips.
http://wiki.lyx.org/pmwiki.php/LyX/FiguresInLyX

-- 
Angus

Reply via email to