1

This is perhaps a beginner/simple question, but how does includegraphics determine the "box" encapsulating a vector graphic embedded on, say, a letter-size paper?

When I read my EPS files (generated with Matlab) using GhostView, they appear in some corner of a full-size, otherwise blank page. Do the various page properties (like orientation, type, etc.) matter? And why does there need to be some blank page underneath the saved graphic for that matter? I'm trying to understand how best to prepare figures for publication.

Thanks in advance.

  • \includegraphics reads the bounding box of the .eps file. It may happen this bounding box is wrong. To check this point, write \fbox{\includegraphics{foo.eps}}. There exist tools to crop epsfiles (epspdf, for instance, can do it). – Bernard Jul 24 '16 at 23:31
  • Your question looks like an XY problem and as such is a bit difficult to answer. Please clarify your actual problem. – Martin Schröder Jul 29 '16 at 12:18
0

For PDF the engines and device drivers read the MediaBox, i.e. the dimensions of the included page. The Orientation is also used.

| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.