Apollo Connecting the World

Diligence and Intelligence

Posts Tagged ‘graph

Add a .eps graph to an article in LaTeX, “unknown graphics extension” error

leave a comment »

When writing an article using LaTeX, sometimes one may be faced with an error when inserting a .eps graph, which says “unknown graphics extension”, while compling the .tex file.

Maybe it is because you use the “pdflatex” command to compile the .tex file. Since this command does not know .eps files, so the compilation fails.

To prevent that, you should compile the file in this way:
1. latex yourfile.tex
2. dvips yourfile.dvi
3. ps2pdf yourfile.ps

The command “latex” will recogonize the .eps files and compile without errors.

Written by apollozhao

2010/09/13 at 20:29

Posted in LaTeX, Linux

Tagged with , , , ,