Pdflatex two ways to insert EPS format picture
Pdflatex does not support inserting EPS format pictures. 1. Convert EPS image to PDF or convert PDF image to EPs, that is, one image has PDF, eps two format. Method One: \includegraphics{pic}% do not extend the name. This pdflatex automatically adjust the corresponding PDF file, while latex automatically adjust EPS file. Method Two: Add the Epstopdf macro package (Epstopdf package details to see ...) first. ): \USEPACKAGE{GRAPHICX} \usepackage{epstopdf} Re-use: \includegraphics{pic.eps}% can contain an EPS extension, but must also have a pic.pdf file present. Method Three: Add Epstopdf and Epsfig packages first: \USEPACKAGE{GRAPHICX} \usepackage{epstopdf} \usepackage{epsfig} Re-use: \begin{figure} \centering \epsfxsize=10cm\epsfbox{pic.eps}% can contain an EPS extension, but must also have a pic.pdf file present. \end{figure} 2. Pdflatex with "-shell-escape" parameter compilation, a picture only have EPS format, more specific reference ... Add the Epstopdf macro package First: \USEPACKAGE{GRAPHICX} \usepackage{epstopdf} Re-use: \includegraphics{pic.eps}% can contain EPS extension, pic.pdf file does not have to exist Then compile: Pdflatex-shell-escape Filename.tex (The Pic.pdf file is actually generated automatically) Reference: Http://golem.ph.utexas.edu/~distler/blog/archives/000425.html Http://kile.sourceforge.net/Documentation/html/build_epsgraphics.html Http://opendevice.blogspot.com/2008/05/eps-files-and-pdflatex.html Http://wwwacs.gantep.edu.tr/docs/latex/FAQ/figures.html http://www.chinatex.org/bbs/viewthread.php?tid=204 |
This article refers to address: http://blog.sciencenet.cn/home.php?mod=space&uid=111625&do=blog&id=521363