Link: http://blog.sina.com.cn/s/blog_819c7a3a0100v0bd.html
The. EPS image can be used in latex. Many documents have introduced how to reference the image in this format, but do not give any precautions during use. When I was using miktex, The. EPS image introduced in the latex document encountered such a problem. "!" Is displayed during compilation. Latex error: Unknown graphics Extension: .eps”, and compile the graphics file. However, the referenced. EPS image cannot be displayed. After careful research, it is found that the main cause is the compilation steps and the commands used. A simple example is as follows:
% Filename = EPS. Tex
\ Documentclass [a4paper] {Article}
\ Usepackage {graphics}
\ Begin {document}
\ Begin {figure}
\ Begin {Center}
\ Includegraphics {fig. EPS}
\ End {Center}
\ Caption {my first figure .}
\ End {figure}
\ End {document}
The compilation process is as follows:
Latex EPS. Tex
Dvipdfm EPS. DVI
Or,
Latex EPS. Tex
Dvips EPS. DVI
Ps2pdf EPS. Ps
(It's okay to convert Div into PS file and convert PS file into PDF)
Note that latexpdf cannot be used, because this command cannot read. EPS documents.