[tex-live] What is the right way to include eps in latex for pdf generating?

Dan Luecking dluecking at sbcglobal.net
Sat Nov 8 21:30:31 CET 2014


On Sat Nov 8, 2014, at 18:27:27 CET Askar Safin wrote:


> >pdflatex can include them directly.
>pdflatex doesn't work. Is this a bug? This is steps to reproduce: 
><http://paste.debian.net/130881>http://paste.debian.net/130881 . The 
>bug also reproducible with TeXLive on Windows.

For this to work automatically, the file has to have extension ".mps".
(with no other dots) like file-1.mps, designating metapost output.

Another way is to name it file-1.eps and then (in the more recent TeX
Lives), if shell-escape is enabled, epstopdf will be called to convert
it to pdf on the fly.

With a name like file.1, it requires some "\DeclareGraphicsRule"
incantations in order for pdflatex to recognize what graphics file
format it is.

In all cases, omit the [dvips] option in the \usepackage{graphicx}.
It is generally a good idea to use no option, as graphics.cfg
can detect what engine is being used and adjust the option accordingly.
One exception is the path latex + dvipdfm, since graphics.cfg assumes
[dvips] for the latex engine.
Regards,
Dan


Daniel H. Luecking
Department of Mathematical Sciences
Fayetteville, Arkansas
http://www-cs-faculty.stanford.edu/~knuth/iaq.html 



More information about the tex-live mailing list