LaTeX forum ⇒ Graphics, Figures & TablesOffset in EPS Graphics

Information and discussion about graphics, figures & tables in LaTeX documents.
raschelfuss
Posts: 1
Joined: Wed May 15, 2013 8:04 am

Offset in EPS Graphics

Postby raschelfuss » Wed May 15, 2013 8:18 am

Hi,

I have to use XeLaTeX because a mandatory template is written for it. I recently had to completely reinstall my laptop. My problem since then (before it worked all fine!): when I include a graphic, the bounding box is correct, but the graphic appears with an offset -- see attached PDF.

I produced it by:
  1. \documentclass{article}
  2. \usepackage{graphicx}
  3.  
  4. \begin{document}
  5. \begin{figure}
  6. \fbox{\includegraphics[clip]{images/diffVSint.eps}}
  7. \caption{Nice little caption.}
  8. \label{fig:diffvsint}
  9. \end{figure}
  10. \end{document}


Some more info:

  • Manually including the bounding box by [bb=llx lly urx ury] does not change the situation.
  • Using a PDF instead of an EPS graphics file does not change the situation.

Thanks for your help.
Attachments
TEST.pdf
(89.41 KiB) Downloaded 420 times

User avatar
cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Wed May 15, 2013 11:41 am

Hi raschelfuss,

Welcome to the LaTeX community!

Could you also attach the EPS file so we could try to reproduce the problem?

Regards
site moderator & package author

lorebene
Posts: 1
Joined: Mon Jun 03, 2013 11:55 pm

Postby lorebene » Mon Jun 03, 2013 11:59 pm

Actually I have the same problem. After an actualization of libraries, the compilation in XeLaTeX fails to print in the correct position the figures. Is this related to graphicx? Or to trimming?

User avatar
cgnieder
Site Moderator
Posts: 1993
Joined: Sat Apr 16, 2011 7:27 pm

Postby cgnieder » Tue Jun 04, 2013 10:20 pm

Hi lorebene,

Welcome to the LaTeX community!

As I tried to point out in my answer before: without some file that let's us reproduce the problem the answer can only be: maybe. I actually very much doubt that there is any problem with graphicx: it has been a base LaTeX package for many, many years. I'd think it is much more likely that the error is in some wrong data within the EPS. But that is of course only speculation...

Regards
site moderator & package author

warren
Posts: 2
Joined: Thu Jun 13, 2013 11:01 am

Postby warren » Thu Jun 13, 2013 11:23 am

Hi,

Same problem. After updating MikTeX in the last week, included eps figures (produced within R) are offset to top right, by an amount seemingly corresponding to the origin of the bounding box set by R. In eight months of using XeLaTeX, this has not happened before. The eps has not changed (I have not regenerated it) and the source for XeLaTeX has not changed. All R figures are affected, but not those produced by (e.g.) Cytoscape, which have a bounding box starting "0 0". There is no "wrong data" in my eps. Can't seem to fix with bb, viewport or trim modifiers. Very frustrating. eps is attached. Here is the includegraphics snippet:

  1. \begin{figure}[!ht]
  2. \includegraphics{fourdists}
  3. \caption{Human protein frequency by count of species exhibiting orthology:\\ for
  4. different $e$ and species totals}
  5. \label{four_dists}
  6. \end{figure}


Hope someone can advise.

Regards,

Warren
Attachments
fourdists.eps
Four distribution charts in one eps graphic
(20.56 KiB) Downloaded 318 times
Last edited by cgnieder on Thu Jun 13, 2013 11:35 am, edited 1 time in total.
Reason: added code markup

warren
Posts: 2
Joined: Thu Jun 13, 2013 11:01 am

Postby warren » Wed Jun 19, 2013 7:39 pm

I ran MiKTeX update today. The problem appears to be fixed.

Warren


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 8 guests