Both are vector graphics (typically) and both can be imported painlessly into a pdflatex document (so let's say we ignore dvi for this question).
What are the advantages and disadvantages of each? What should I use?
|
Both are vector graphics (typically) and both can be imported painlessly into a pdflatex document (so let's say we ignore dvi for this question). What are the advantages and disadvantages of each? What should I use? |
||||
|
Use PDF. EPS cannot be imported directly by pdftex but must be converted using something like |
||||
|
|
EPS doesn't support transparency and embeds bitmap images without compression. PDF all the way. |
|||||||
|
|
Clearly PDF:
|
|||
|
|
|
One advantage of EPS figures is the ability to use the psfrag package to replace axis labels etc. with properly LaTeXed versions generated with the same fonts etc. as your main document. I used to generate all my plots with matplotlib or MATLAB using this feature. Matplotlib's support for this is broken, but it instead provides a usetex option that allows you to embed LaTeX generated the labels directly in PDF files which I now use exclusively. (See also: Using psfrag with pdflatex.) |
||||
|
|
|
For really big bitmapped images, I've always converted to jpeg at the required quality, then I'd use 'jpeg2ps' which takes just the raw jpeg data and wraps it in a postscript wrapper. It's been a lifesaver for me on arXiv. You can then use 'eps2pdf' to get it the way you want it. |
|||||
|
SummaryIt cannot be decided without knowing your real scenario. |
|||
|
|
pdflatexcan import EPS painlessly. Why? Because there is a performance drawback when we usepdflatexloadingepstopdfto import EPS.pdflatexcannot import EPS by design, loadingepstopdfmakespdflatexas if it can import EPS. – xport Jul 20 '11 at 21:11SVGfits in? Is that only used when there's no better (PDF, EPS) option available, e.g. when exporting from a WYSIWYG-office-application? – nutty about natty May 5 at 9:58