Venable wrote: > Dear LyX users, > > I have recently started getting a strange error when I try to export a > LyX file to plain LaTeX via File - Export - LaTeX (plain). > > When I attempt to export, an error message appears reading > LyX: Cannot convert file > No information for converting pdf format files to eps > Define a converter in the preferences > > As one might expect, I have only seen this error occur when the > document includes a pdf file as a graphic. However, the error seems > strange since I am not trying to convert anything to eps, just create > LaTeX code. Despite the error message, the LaTeX file actually is > created and seems to be correct. However, it (a) is annoying and (b) > leads me to think something else may be wrong, so I would like to fix > it. > > First of all, does anyone have any insight into why LyX would ask for > a PDF -> EPS converter when the requested conversion is not to eps?
Exporting to plain LaTeX, as opposed to LaTeX (pdflatex), implies an intent to generate a DVI file. Since LaTeX can only include EPS graphics (not PDF) in DVI output, LyX helpfully converts your PDF graphics to EPS (or at least tries to). Bear in mind that LyX must insert a path to the image file; the alternative would be for LyX to include a path to the PDF file, which would be doomed to failure when you ran LaTeX against the document. Pdflatex, in contrast, wants PDF files and cannot handle EPS files, so in your case compiling with pdflatex requires no conversions. > > Second, does anyone know what I should do to fix this problem? I > currently have two converters defined: > PDF (pdflatex) to EPS: pdftops -eps $$i $$o > PDF (ps2pdf) to EPS: pdf2ps $$i $$o > You might try this (copied from LyX on my laptop, which is running Linux Mint, not Windoze): pdftops -eps -f 1 -l 1 $$i $$o It might be worthwhile to try this from a command prompt with a PDF graphic file first (replace $$i with the PDF file name/path and $$o with the name/path for the output file) and verify that it produces a suitable EPS file. /Paul
