Sometimes you want the best of both worlds. An undergraduate of my lab, after some googling, found you can force pdflatex to insert .eps files happily:
1)Install texlive-extra packages, or any other package containing the epstopdf utility.
2) Insert the following code in your .tex file:
\newif\ifpdf
\ifx\pdfoutput\undefined
\pdffalse
\else
\pdfoutput=1
\pdftrue
\fi
\ifpdf
\usepackage{graphicx}
\usepackage{epstopdf}
\DeclareGraphicsRule{.eps}{pdf}{.pdf}{`epstopdf #1}
\pdfcompresslevel=9
\else
\usepackage{graphicx}
\fi
3) Compile using pdflatex with the -shell-escape command line option
It seems to work.
4 comments:
Thanks for a great blog entry which gives a quick and nicely working way of automatically converting .eps to .pdf files.
Thanks for this post, i was looking for this, can't understand why pdflatex don't include eps files in native way.
Thanks it works!
Post a Comment