Solution for latex error:”Unknown graphics extension: .eps“ or "Can not find XXX"

Sample code:

\begin{figure*}
  \centering
  % Requires \usepackage{graphicx}
  \includegraphics[width=7in]{a.eps}
  \caption{(b)-(e) Human-study interfaces for (a) with increasingly more contextual information.}\label{}
\end{figure*}

Error:

Answer:

错误原因:很简单, 就是使用includegraphics插入图片为eps格式,是多数参考书籍给出的方法,但此种方法只能用latex默认编译器使用,如果使用Ctex(中国改造版,默认为pdflaTex),则不能。

Solution:

是图片和pdflatex一起用时的错误。

 两种解决方法:

 1、可以将eps文件转换为pdf图片或jpg图片。

 2、用latex而不是pdflatex:tex处理过tex文件后生成dvi文件,然后通过dvipdf转换成pdf文件;

       pdflatex直接处理tex文件,输出pdf文件,pdflatex使用jpg,png能图片格式,不能使用eps文件。

 

 keywords:

latex, and pdflatex in dvi mode, support graphics in encapsulated
postscript (.eps) format. pdflatex in pdf mode supports graphics
in .pdf, .jpeg, .png and .mps (metapost) formats. Users should ensure
 that all non-photo figures use a vector format (.eps, .pdf, .mps) and
 not a bitmapped formats (.jpeg, .png).

 

转载于:https://www.cnblogs.com/xiaopanlyu/p/5073396.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值