最近由于我们可爱的中级微观作业,我不得不开始自学LaTex这一排版软件,因为我实在无法想象那么多公式怎么用Word公式编辑器一个一个磨出来,还是借助强悍的LaTex吧。
因为有比较好的各种软件应用基础,还有HTML+CSS知识,还有一定的编程经验,所以很快的就弄明白了LaTex的工作原理。但是也只能做到很慢慢悠悠的排版(一道做3个小时的题,大概也要用三个多小时完成输入和排版)——尤其是最后看到复杂的源文件,大有当年彻夜改HTML+CSS的感觉,只想崩溃。但是看到生成的堪称完美的PDF,又很有成就感了。
有的时候开玩笑的给朋友说,这次做中微作业最大的收获绝不是作业本身。而是一些“Extra Gain”。在此不多多废话了,本文最后再讨论那些问题。
这里想跟大家分享的是昨天遇到的一个耗了我好几个小时的难题——如何在LaTex插入图像。我用的是CTeX套装,然后又去网上down了n种版本的教程,但是都没有完美的解决我的问题——如何插入Photoshop绘制的EPS(因为我的电脑当时只有Photoshop这一种绘图软件,我也最熟悉这一种软件)。
先说说几种不甚完美的尝试:
- 使用JPG图像,虽然可以转换为EPS,但是效果实在是让人不敢恭维。
- 使用Photoshop导出EPS,然后在GSview里面转换为PS,最后插入PS。因为转换步骤较多,失真较严重。
最后我仔细研究了一下LaTex直接插入EPS提示的错误:Cannot determine size of graphic in **.eps <No BoundingBox>
然后想起来在调用includegraphics的时候,有可选的参数includegraphics[bb=0 0 451 200,width=7cm]{graph1.eps}。用于在boundingbox参数丢失的时候来指定boundingbox。正好photoshop所生成的EPS图像就是欠缺这个参数,于是赋上一个合适的数值之后,就可以用了。 至于数值,大家可以仔细调整然后看看效果,我也没很弄明白它是怎么定义的,还是改改看看效果满意为止吧。
最后再补充一点,Photoshop并不是很适合做EPS,虽然它可以生成EPS,但是由于其是位图绘图(光栅绘图),所生成的EPS也差不多类似。故而,应选择一些矢量绘图软件(如Illustrator),更为专业的可以选择Origin等专业的科学绘图软件。我刚刚安上了Illustrator,等研究好了再来向大家报告哈。
最后,附上一些英文写的“The extra gain behind this assignment”。不再翻译了,大家凑活着理解吧。
Am I right? Prove it!
Life is full of surprise, and this time is not an exception. When an unbelievable thing happens, how to face the music?
While I regarded the question itself as a failing one, which is because of a simple neglect with the symbol “+”, no one believe me even myself. Try to following the words on the paper I get myself into a big trouble. After careful searching the resources, I finally prove that I’m right.
The most important achieve is not the faith of believing myself, but the knowledge I got while searching the information in the library within hundreds of economic books and journals. The best result is not just solving a question, but the total understanding of it. That is the most precious experience in study.
“Extra gain”? The “Bonus” is a better description. Thank you for your pretty mistake.
A good use of Internet
When you are confronted with a big problem, what’s your first preference? Of course, it is the wonderful Internet. By simply typing some words into the search box, all the reference is shown on the screen. What’s better is that when using the electronic resources in the university network, you can freely download most articles found. Thanks a lot to the free electronic resource like Justor and Wiley, I have easily found the useful reference and those helped me a lot.
So just make a better use of the great Internet!
Try to use professional software
LaTex may be the best choice of making a perfect pdf document which contains many mathematic symbols. There is a little difficulty at the beginning, but to carry on you can do a wonderful work. Learning the use of this software is completely the “Extra Gain” when doing this assignment. But I have to say that I benefit a lot from this experience.
To be continued…
最后的最后,刚刚看到魅族新手机M8的视频展示了。自行移步吧。如果我的黑莓继续瘫痪,可以考虑入手一个了…… http://www.cnbeta.com/articles/70315.htm
One reply on “在Latex插入Photoshop绘制的EPS图像”
[...] >>关于在Latex插入Photoshop绘制的EPS图像,请查看这篇文章:http://www.loyhome.cn/511.html [...]