Warning: Cannot modify header information - headers already sent by (output started at /home4/yusendai/public_html/liujiong/blog/wp-config.php:1) in /home4/yusendai/public_html/liujiong/blog/wp-includes/feed-rss2.php on line 8
Sharpmark | 刘炯的博客 » latex http://liujiong.com Version 3.0 Wed, 21 Oct 2009 17:38:15 +0000 http://wordpress.org/?v=2.9.1 en hourly 1 LaTeX的EPS图像生成方法 http://liujiong.com/blog/posts/how-to-create-eps-file-for-latex/ http://liujiong.com/blog/posts/how-to-create-eps-file-for-latex/#comments Wed, 07 Feb 2007 06:40:00 +0000 sharpmark http://218.240.14.21/~sharpmark/?p=76 LaTeX只支持一种图像格式作为图元:EPS。但是常用的软件没有办法导出EPS格式。所以这里贴出来解决方法:
1. 首先安装一个PostScript打印机:
控制面板->打印机和传真->鼠标右击->添加打印机->
在FILE:端口安装一个本地的ps打印机,比如HP LaserJet 6P/6MP PostScript, 然后打印到这个打印机,并把打印出的输出文件扩展名改为.ps

2. 设置打印机:
打印机和传真->右击HP LaserJet 6P/6MP PostScript(或其它的ps打印机)->属性->常规->打印首选项->布局->高级->文档选项- >PostScript选项->PostScript输出选项: 内嵌的PostScript(EPS)

3. 处理打印的文件:
把打印完成的ps文件用ghostview打开,文件->ps to eps,并选中自动检测边界。这样就可以生成效果极佳的EPS文件了。

eps 图像万能但是愚蠢的办法,是虚拟彩色打印机,分辨率确实高,但是虚拟打印重新得到的eps图像文件的分辨率与打印机设置有关,因为生成的文件有可能比原始文件大很多很多,完全没有必要。因此强烈推荐jpeg2ps这个小软件,命令行转化一下即可。数据作图只需用origin导出即可;若用gnuplot,也很方便。

]]>
http://liujiong.com/blog/posts/how-to-create-eps-file-for-latex/feed/ 0
具体数学 – 约瑟夫问题 http://liujiong.com/blog/posts/concrete-mathematics-the-josephus-problem/ http://liujiong.com/blog/posts/concrete-mathematics-the-josephus-problem/#comments Tue, 17 Oct 2006 08:11:00 +0000 sharpmark http://218.240.14.21/~sharpmark/?p=47

It seems a lot of stuff is attributed to Gauss…
either he was really smart or he has great press agent.
May be he just had a magnetic personality.

最近在看《具体数学 Concrete mathematics》,这是一本值得计算机相关专业任何年级的同学阅读的书。
第一章通过三个问题:The Tower of Hanoi; Lines in the Plane; The Josephus Problem. 前两个问题以前学习的深度已经够了,所以看了没有太大感觉,Josephus Problem的解决给了我很大的震撼。一个看似平常而无捷径的问题,通过用二进制表示,最终居然只要用一个循环移位就能解决。之后又扩展到 Josephus方程一般形式。其间,他的解题方法论很重要,以及其严谨的思路和发散的思维。
现列出书中第一章使用的解题方法:

  1. Look at small cases. This gives us insight into the problem and helps us in stages 2 and 3.
  2. Find and prove a mathematical expression for the quantity of interest.
  3. Find and prove a closed form for our mathematical expression.

已经翻译完成The Josephus Problem小节。对此感兴趣的点此下载(版本1.1.1,2007-12-23)。

]]>
http://liujiong.com/blog/posts/concrete-mathematics-the-josephus-problem/feed/ 5