Hello,
>> I am writing a paper with some EPS figures which I have cropped by
>> manually adjusting the bounding boxes. In Lyx and in PDFs created by
>> pdflatex, everything looks fine. But using classic LaTeX (via dvi),
>> the figures are cropped incorrectly. The values specified in LyX
>> equal those found in the TeX code, and that code is the same when
>> exported for "LaTeX (normal)" and for "LaTeX (pdflatex)", for
>> example: \includegraphics[bb=30bp 60bp 1075bp
>> 805bp,clip,width=0.95\textwidth]{filename}
I now pretty sure the problem has to do with the negative bounding box defined
in most of the figures (created by Matlab).
For example, in the eps file I read
%%BoundingBox: -302 -1 899 842
When clicking "Get from file" in Lyx, I get 0 0 1201 843, i. e. the bounding
box is shifted so that the lower left corner is at (0 0). If I shift it back
(by -302, -1), I see the wrong part of figure in LyX, but it is displayed
correctly in dvi and ps. That will now be my way to go for this paper.
The same happens if only one coordinate is negative.
%%BoundingBox: -302 128 899 714
Becomes (0 0 1201 586) in Lyx, manual shifting helps.
There is a change in the trunk regarding negative bb values, so the problem may
have been fixed already for 2.0.4:
http://www.lyx.org/trac/changeset/036e0c2a/lyxgit
I hope it is. Could someone check that?
Regards
Matthias