AW: wrong cropping / bounding box in produced .tex (not in pdflatex)
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
Re: wrong cropping / bounding box in produced .tex (not in pdflatex)
Hello, due to mail server problems I cannot answer to this message directly and have to use a different address. >> 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} > Are you viewing DVI? If so, is the bounding box correct if you view > PostScript? I seem to remember that DVI does not handle bounding box > clipping. The bounding box is wrong in both dvi, ps, and pdf created by ps2pdf. Nevertheless, as all the files stem from the dvi, I may be a dvi related issue. Matthias
Re: wrong cropping / bounding box in produced .tex (not in pdflatex)
2012/6/9 Matthias Hunstig: > 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} Are you viewing DVI? If so, is the bounding box correct if you view PostScript? I seem to remember that DVI does not handle bounding box clipping. Jürgen
wrong cropping / bounding box in produced .tex (not in pdflatex)
Dear Lyx users and developers, 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 am doing something wrong or is that a bug I should submit to the tracker? Regards Matthias