Apollo Connecting the World

Diligence and Intelligence

Posts Tagged ‘LaTeX

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

LaTeX symbol classifier

leave a comment »

通过手写,把符号转化为LaTeX里面的语句。适用于在写文章时知道符号而不知道该怎么在.tex里表达。

http://detexify.kirelabs.org/classify.html

Written by apollozhao

2011/07/22 at 17:43

[zz]Latex中的插图心得

with one comment

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

陆同学发纯技术帖,求高手指正。

要对latex插图仔细研究,推荐Latex插图指南一文(一般CTEX安装目录下help文件夹graphics.pdf就是了),下边用双引号括起来的都引自此书。PS:本文中代码里的图片文件名在编译时请换成你的电脑里实际有的图片,这个大家应该都懂的。

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

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

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

为什么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 , , , ,