Apollo Connecting the World

Diligence and Intelligence

Posts Tagged ‘.eps

[zz]Converting JPG Images to EPS

leave a comment »

from: http://fclose.com/b/linux/3549/converting-jpg-images-to-eps/

I write a lot latex documents and most of the documents have images in it. Latex deals EPS very well, while sometimes we need to add JPG / PNG images to it. I find converting the JPG images to EPS ones is the most convenient way to embed JPG images to latex documents. On Linux, this is quit easy with ImageMagick.

You need to install ImageMagick if it is not already installed in the system:

# yum install ImageMagick

Convert image image.jpg from JPG to EPS format:

$ convert image.jpg image.eps

For other image formats, the command is similar.

Written by apollozhao

2012/02/10 at 10:48

Posted in LaTeX, Linux

Tagged with , , , , ,

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 , , , ,