Apollo Connecting the World

Diligence and Intelligence

Archive for the ‘LaTeX’ Category

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


with one comment

from: http://blog.renren.com/share/230039275/6286294913



1、        我用惯word的结果是觉得Latex的图片浮动格式很不习惯,然后我听到这样一段话,觉得有醍醐之感:“

一、不要使用依赖于图形放置位置的文本。使用如“ 这幅图…” 或“ 下面的图形…” 等短语要求所指的图形需在固定位置。而像“ 图5…” 这样的短语则允许图形出现在任意位置。

二、放松。一些使用者在发现图形没有十分准确的出现在他们所想要的位置时,往往非常着急。这没有必要,图形的放置是LATEX 的工作,最好放松一些。”


Read the rest of this entry »

Written by apollozhao

2011/05/03 at 09: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 , , , ,