On 11.03.2008, at 08:30, G. Milde wrote:

On 11.03.08, Klaus Unger wrote:

I am using PDF figures. Lyx does convert them to png before and chops them
incorrectly.

When?

* display in the LyX window?
* view as/export to Postscript?
* view as/export to PDF (ps2pdf)?


Well, I had exactly this one:

* view as/export to PDF (pdflatex)?   <- rather unlikely!

It had driven me mad - why the heck LyX tries to convert a PDF graphics to PNG when using pdflatex. In the end I switched to EPS as graphics format.


I would like to use the pdf figures directly, is it possible?

How?

Set the right converter in Tools>Preferences>Converters

I have e.g. here on my Debian Gnu/Linux system:

 PDF (ps2pdf) -> EPS       pdftops -f 1 -l 1 -eps $$i $$o


Well, in the case of using PDF images in a document compiled with pdflatex there should be no converter, right?

I guess, my problem was more related to the "Document format" and "Vector graphics format" check boxes in the "File formats" preferences pane. I have checked them for *all* PDF formats -- now it seems to work.

However, I would like to understand the algorithm behind all this. I understand the general: if a graphics format is attributed as some "Vector format" the back-end compiler is able to understand, LyX gives its precedence over conversion to a bitmap format.

However, what exactly is the format here? I have at least four different "file formats" defined for PDF. Which one is taken into account for the decision?

Daniel

Reply via email to