Pdflatex two ways to insert EPS format picture

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.