Re: Trouble with bounding box in includegraphics for EPS file
Ulrike Fischer <[email protected]>
| Newsgroups | gmane.comp.tex.miktex |
|---|---|
| Message-ID | <[email protected]> |
Am Fri, 27 Jun 2014 16:40:45 +0000 schrieb Ballet Jean:
> Hi,
> I have installed MiKTeX 2.9 on my PC under Windows 7.
> I want to include part of a Postscript figure in a LaTeX document, using the graphicx package.
> This is normally done using the bb= option in includegraphics, but doesn't seem to work in my implementation.
> I simplified the tex file to its bare bones
> \documentclass[12pt,preprint]{article}
> \usepackage{graphicx}
> \begin{document}
> \begin{figure}
> \includegraphics[bb=260 0 489 200,clip,width=\textwidth]
> {4year_JMCv3_galnorm_lat.eps}
> \end{figure}
> \end{document}
> I compile using XeLaTeX.
> Instead of starting at 260 along X in the image the figure starts at 0, and keeps the first (489-260)=229 points of the image.
> That is bb=x1 y1 x2 y2 always turns into bb=0 0 x2-x1 y2-y1
> I gave the same file and image to a friend who has a different LaTeX package (on Mac) and it worked fine for him.
> I must have something wrong in my installation, but I can't figure out what it is.
> Did anybody see that behaviour?
There has been some changes in the drivers which also affect the
placements of eps graphics. Your description sounds as if your
friend has an older system
http://tex.stackexchange.com/questions/119154/why-do-eps-images-overlap-the-captions-in-subfigures/119697#119697
Imho it is better to convert the eps externally to pdf and to
include this. That's less error prone.
http://tex.stackexchange.com/questions/84966/dvipdfm-horizontally-crops-image/84969#84969
--
Ulrike Fischer
http://www.troubleshooting-tex.de/
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft