Tag Archives: LaTex Error:Unknown graphics extension:.eps (la…

LaTex Error:Unknown graphics extension:.eps (la…

We can use. EPS pictures in latex. Many documents introduce how to reference pictures in this format, but they don’t give the precautions in the use process. When I used miktex, I encountered such a problem when introducing. EPS image into latex document. When compiling, it will be displayed as “! LaTex E rror:Unknown graphics extension:.eps ”And even if the. PDF file is compiled, the referenced. EPS image cannot be displayed. After careful study, it is found that it is mainly caused by the compiling 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}

\incl?graphics{fig.eps}

\end{center}

\caption{My first figure.}

\end{figure}

\end{document}

1> My solution

MIKTEX:

a) Use xelatex + makeindex + BibTex

b) If you use pdflatex + makeindex + BibTex, the above error will appear

Therefore, if you encounter such problems, you can change the compilation steps or the commands you use

2> Other answers on the Internet:

The compilation process is as follows:

latex eps.tex

dvipdfm eps.dvi

Or,

latex eps.tex

dvips eps.dvi

ps2pdf eps.ps

Note that latexpdf must not be used because this command cannot read in. EPS documents.