Solution for latex error:”Unknown graphics extension: .eps“ or "Can not find XXX"
2024-10-11 08:37:32
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).
最新文章
- CI加载model的问题
- 【NOIP 2015 &; SDOI 2016 Round1 &; CTSC 2016 &; SDOI2016 Round2】游记
- php课程---Json格式规范需要注意的小细节
- jquery.validate的使用
- hive 学习笔记精简
- web添加第三方应用,前端解决跨域问题的8种方案
- 01Design and Analysis Algorithm Using Python-程振波
- Java中构造方法、实例方法、类方法的区别
- MFC自绘菜单
- 在django中如何通过已有的mysql表生成django的model
- HDU 1811 Rank of Tetris 【拓扑排序】+【并查集】
- 第10章 网络安全(4)_网络层安全IPSec
- Java.FamousBlogs
- Drupal使用
- 使用badblocks检测坏块
- epoll实现机制分析
- .NET 中小心嵌套等待的 Task,它可能会耗尽你线程池的现有资源,出现类似死锁的情况
- Fibonacci数列时间复杂度之美妙
- DesignPattern(一)设计模式的六个基本原则
- Maven(三)理解Maven核心概念