On Tue, Jan 3, 2012 at 3:29 AM, Guenter Milde <[email protected]> wrote:
> On 2012-01-02, Maria Gouskova wrote:
>
>> I want to insert a high-resolution pdf image into a figure float.
>
> I assume this is a bitmap image wrapped into PDF? (For a vector image,
> the "high-resolution" would not make sense to me.)

It is indeed a vector format pdf file generated in R, sorry about not
making sense to you with my explanation.

>> I specify the width of the image in the figure properties as "100% of
>> line width". Typesetting via pdflatex works fine, with the image scaled
>> appropriately. Typesetting via ps2pdf or dvipdfm does not scale the
>> image--it spills over onto the margin and off the page.
>
> I cannot reproduce here. Tried inserting a scaled one-page PDF document
> (without wrapping in a float). The output of
> PDF (pdflatex),
> PDF (ps2pdf), and
> PDF (dvipdfm)
> is exactly the same (with proper scaling of the indcluded graphic).

Okay. Are your OS and LyX version the same?

>> DVI didn't produce a pdf at all, even though LyX claimed successful
>> import to pdf.
>
> I don't understand this. (DVI (a file format) didn't produce pdf (a
> different file format)?)

Sorry, DVI produced an output, not a pdf file, obviously. That was a typo.

>> I tried the same with an .eps figure and did not encounter these
>> issues, so it seems to be a combination of using a .pdf image and
>> certain output formats.
>
> It might also depend on
>
> * the content of the EPS or PDF figure, and
> * the PDF -> EPS conversion program (as for the ps2pdf route, LyX converts
>  the input file from PDF to EPS, latex generates a DVI with a reference to
>  the EPS file, dvips embedds it into the generated PS file and ps2pdf
>  converts the PS file to PDF).

Well, what I find interesting is that the output methods work equally
well when I specify the size of the figure as a percentage of the
original file (e.g., 40%), but not when I specify it as being 100% of
the line width.

Anyway, I have a sort of workaround, even though I do not have a
solution. Thanks for your response.

Maria

Reply via email to