<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ai.Freedom &#187; Technology</title>
	<atom:link href="http://aifreedom.com/category/technology/feed" rel="self" type="application/rss+xml" />
	<link>http://aifreedom.com</link>
	<description>Just feel free as in freedom</description>
	<lastBuildDate>Mon, 12 Jul 2010 10:10:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>LaTeX 宏包小记 (1) -- 用 prosper 制作幻灯片</title>
		<link>http://aifreedom.com/technology/162#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=latex-%25e5%25ae%258f%25e5%258c%2585%25e5%25b0%258f%25e8%25ae%25b0-1-%25e7%2594%25a8-proser-%25e5%2588%25b6%25e4%25bd%259c%25e5%25b9%25bb%25e7%2581%25af%25e7%2589%2587</link>
		<comments>http://aifreedom.com/technology/162#comments</comments>
		<pubDate>Thu, 27 May 2010 18:28:45 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Macro Packages]]></category>
		<category><![CDATA[Presentation]]></category>

		<guid isPermaLink="false">http://aifreedom.com/technology/162</guid>
		<description><![CDATA[本文及所附代码, 文件在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com 在这个 Blog 里, 我已经写过几篇配置 LaTeX 的文章了, 包括 CJK 宏包字体的配置和 texlive 2008 的配置. 现在计划开始写一个新的系列, 介绍 LaTeX 里林林总总的宏包(Macro Packages)们. 这个系列的文章不是为对 LaTeX 一无所知的新手写的, 因为我不擅长写入门教程. 但如果你确实需要一本 LaTeX 入门教程, 我极力推荐 "The Not So Short Introduction to LaTeX 2ε". 在 ctex.org 可以找到它的中文版, "一本不太简短的 LaTeX 2ε 介绍". 虽说这个系列不是为新手写的, 但它们也不是为那些已经能闭着眼睛就可以用 LaTeX 排出想要的任何效果的高手写的. 这些文章可以看作是我的学习笔记, 而我希望能在 Blog 里同更多和我一样正在努力成为 LaTeX 高手的朋友们分享. 在这些日志里, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文及所附代码, 文件在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p>在这个 Blog 里, 我已经写过几篇配置 LaTeX 的文章了, 包括 <a href="http://aifreedom.com/technology/113">CJK 宏包字体的配置</a>和 <a href="http://aifreedom.com/technology/153">texlive 2008 的配置</a>. 现在计划开始写一个新的系列, 介绍 LaTeX 里林林总总的宏包(Macro Packages)们. </p>
<p>这个系列的文章不是为对 LaTeX 一无所知的新手写的, 因为我不擅长写入门教程. 但如果你确实需要一本 LaTeX 入门教程, 我极力推荐 "The Not So Short Introduction to LaTeX 2ε". 在 ctex.org 可以找到它的中文版, "一本不太简短的 LaTeX 2ε 介绍".</p>
<p>虽说这个系列不是为新手写的, 但它们也不是为那些已经能闭着眼睛就可以用 LaTeX 排出想要的任何效果的高手写的. 这些文章可以看作是我的学习笔记, 而我希望能在 Blog 里同更多和我一样正在努力成为 LaTeX 高手的朋友们分享. 在这些日志里, 我记录下了使用过的一些有趣和/或有用的宏包. 但实话实说, 这些文章都相当没有技术含量. 在我自己看来, 都如白开水一般平淡无味.</p>
<p>在开始正文前, 先废话几句. TeX 和 LaTeX 这两个词究竟该怎么读? Knuth 说 "TeX" 来自希腊单词 "texnologia"(technology) 的第一个音节, 发音为 "Tech", 就是英文单词 "technology" 的第一个音节. 而 "LaTeX" 的发音是 "Lay-tech" 或 "Lah-tech". TeX 的伟大不仅仅体现在 Knuth 大神那近乎完美的编码, 更体现在 Knuth 大神为它留下的强大的可扩展能力. LaTeX 就是基于 TeX 开发的一个宏包, 它的出现让 TeX 更平易近人, 使普通人也能轻松地完成高质量的排版.</p>
<p>LaTeX 最常见的用途是用来为学术论文进行排版, 因为它可以清晰地体现文章的逻辑结构, 也可以让作者方便地排版数学公式, 更可以很容易地生成像脚注, 交叉引用, 目录和引用文献这样的复杂结构. 但今天要介绍的宏包 prosper 却是用来生成幻灯片的. 使用 LaTeX 生成幻灯片的优势在于它有 METAFONT, tikz 等这样强大的绘图工具的支持, 在演示逻辑性很强的过程时(比如, 演示最短路的算法时)会相当方便. 但缺点是因为生成的文件是 pdf, 很难有丰富的动画效果.</p>
<p>但我这次使用它却只是"闲得蛋疼". 这学期的英文写作课上, 我要代表小组做一个 presentation. 在写幻灯片时, 我放弃了 WPS, 转而尝试了一下完全不熟悉的 prosper.</p>
<p>首先, 文档类型要声明为 prosper, 即 \documentclass{prosper}. 在这里可以声明一些参数, 比如是否生成黑白的幻灯片, 使用何种主题等等. 在导言部分可以用 \title, \subtitle, \author, \institution 等命令定义幻灯片的标题, 作者等信息. 然后就可以 \begin{document}, \maketitle 了. 日志的最后有我这次 presentation 的幻灯片和源文件, 不知道我这段话说了什么没关系, 可以参照那个源文件的结构.</p>
<p>每一页幻灯片都是一个 slide 环境, 就是被 \begin{slide}{title} 和 \end{slide} 包围着的一段文字. 在幻灯片里, 可以随意书写文字, 但为了体现演讲的逻辑性, 应该多使用 itemize 和 enumerate 环境.</p>
<p>为了使幻灯片里的条目可以随着演讲者的要求, 一条一条地出现在屏幕上, 在 PowerPoint 里可以使用动画. 但在这里只能让第一张幻灯片上写着第一条, 第二张第二条, 如此产生它们是一条一条出现的伪动画效果了. 当然, 不需要你自己人肉完成这项工作, 但你得告诉 LaTeX 到哪里是第一条, 到那里是第二条.</p>
<p>需要这样效果的部分要用 \overlay{n}{...} 包围起来, 参数 n 是希望分成的页数. 在内容里, 用 \FromSlide{m} 告诉 LaTeX, 我后面的内容从第 m 张幻灯片才开始显示. 比如在下面的这张幻灯片里, 我想让第一级 itemize 每一个 item 依次出现. 于是我在第一个 item 之前加上了 \FromSlide{1}, 在第二个 item 之前加上了 \FromSlide{2}. 效果就是生成的 pdf 里会出现两张幻灯片, 第一张只有第一条, 而第二张上有两条. 类似的标签还有 \UntilSlide{m} 和 \OnlySlide{m}, 它们表达的含义也很明显.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\overlays</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">
  <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Demerit in First Draft</span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Third Supporting Paragraph
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Mere abstract statements
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> No example supporting the statement of reliability
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> The only example is for exception
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Conclusive Paragraph
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Metaphor
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> But draw it out more
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> How is the car like comfortable old clothes?
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
  <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}}</span></pre></td></tr></table></div>

<p>prosper 自带了一些幻灯片的样式, 但它们大多数都让用惯了 PowerPoint 的人不敢恭维. 我用的这个 fyma 算是里面比较清新的一种了. 样式文件可以在 prosper 的安装文件夹里找到, 那些叫做 "PPRxxxx.sty" 的文件都是样式文件了. 想使用哪种样式需要在 documentclass 的选项里声明. 想自定义样式的可以去查一下 prosper 的手册. texlive 2008 里, prosper 的安装路径是 /usr/local/texlive/2008/texmf-dist/tex/latex/prosper</p>
<p>最后, prosper 不支持 pdfLaTeX, 当然也就不支持 xeLaTeX. 所以想要用它生成 pdf 的幻灯片需要使用 "latex slide.tex &#038;& dvipdf slide.dvi" 命令. 而且这带来的问题就是如果要生成带中文的幻灯片需要配置 CJK 宏包. 关于 CJK 宏包的设置和中文字体的按照, 可以参见<a href="http://aifreedom.com/technology/113">这里</a>.</p>
<p>下面是源文件和<a href="http://aifreedom.com/attachment/20100528/2010052801.pdf">编译好的 pdf</a>.</p>
<p><span id="more-162"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">documentclass</span></span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">slideColor, pdf, fyma</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">prosper</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\title</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">The Joys of an Old Car</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\subtitle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Cause-Effect Essay</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\author</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span><span style="color: #E02020; ">{</span>Xie Song</span><span style="color: #E02020; ">}</span> Presents<span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\institution</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</span><span style="color: #E02020; ">{</span>Computer Science</span><span style="color: #E02020; ">}</span> 0813<span style="color: #E02020; ">\\</span><span style="color: #800000; font-weight: normal;">\textsc</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Group</span><span style="color: #E02020; ">}</span> 4<span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\newcommand</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\ans</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">1</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span>Key:</span><span style="color: #E02020; ">}</span> <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">#1</span><span style="color: #E02020; ">}}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\maketitle</span>
<span style="color: #800000; font-weight: normal;">\overlays</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">3</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">
  <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Demerit in First Draft</span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}</span> 
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Introductory Paragraph
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Not detailed
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> How do others comment on the old car?
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> First Supporting Paragraph
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Not persuasive
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Provide specific details
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> How many major repairs?
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> How good is the gas mileage?
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">3</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Second Supporting Paragraph
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Implicit topic sentence
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Too many irrelevant contents
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Talk more about her own car
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
  <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\overlays</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">
  <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Demerit in First Draft</span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Third Supporting Paragraph
        <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
        <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Mere abstract statements
        <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> No example supporting the statement of reliability
        <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> The only example is for exception
        <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
        <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Conclusive Paragraph
        <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
        <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Metaphor
        <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> But draw it out more
        <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> How is the car like comfortable old clothes?
        <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
  <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\overlays</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">4</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">
  <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Outline of Final Version</span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Topic</span><span style="color: #E02020; ">}</span>: The joys of an old car
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Thesis</span><span style="color: #E02020; ">}</span>: The old car has opened my eyes to rewards
      of owning an old car
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">3</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Reason I</span><span style="color: #E02020; ">}</span>: My old Toyota is <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">economy</span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">4</span><span style="color: #E02020; ">}</span>
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Shiny red year-old leftover, for a mere <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\$</span>4,200</span><span style="color: #E02020; ">}</span>
        then, but it is <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">4 times</span><span style="color: #E02020; ">}</span> cost now
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Save money on insurance for being not worthwhile
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Only <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">three</span><span style="color: #E02020; ">}</span> major repairs in the last several years
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Good gas mileage: <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">28 miles/gal</span><span style="color: #E02020; ">}</span> in city and <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">41 miles/gal</span><span style="color: #E02020; ">}</span> on highway
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
  <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}}</span>
&nbsp;
&nbsp;
<span style="color: #800000; font-weight: normal;">\overlays</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">
  <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Outline of Final Version</span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Topic</span><span style="color: #E02020; ">}</span>: The joys of an old car
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Thesis</span><span style="color: #E02020; ">}</span>: The old car has opened my eyes to rewards
      of owning an old car
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Reason I</span><span style="color: #E02020; ">}</span>: My old Toyota is <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">economy</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Reason II</span><span style="color: #E02020; ">}</span>: My old Toyota is <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">dependable</span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}</span>
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> A Toyota that passes the <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">20,000-mile mark</span><span style="color: #E02020; ">}</span> with no problems
        will probably go on forever
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> When Boss got stuck with <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">brand-new BMW</span><span style="color: #E02020; ">}</span> in the <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">worst snowstorm</span><span style="color: #E02020; ">}</span>,
        I sauntered into work on time
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> The single time Toyota didn't start was a final exam day
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Body of an old car, the engine of a teenager
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
  <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\overlays</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">
  <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">Outline of Final Version</span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Topic</span><span style="color: #E02020; ">}</span>: The joys of an old car
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Thesis</span><span style="color: #E02020; ">}</span>: The old car has opened my eyes to rewards
      of owning an old car
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Reason I</span><span style="color: #E02020; ">}</span>: My old Toyota is <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">economy</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Reason II</span><span style="color: #E02020; ">}</span>: My old Toyota is <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">dependable</span><span style="color: #E02020; ">}</span>
    <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">textbf</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Reason III</span><span style="color: #E02020; ">}</span>: Having the same car for many years offers the
      advantage of <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">familiarity</span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\FromSlide</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">2</span><span style="color: #E02020; ">}</span>
      <span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Like a well-worn glove
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Know to the <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">millimeter</span><span style="color: #E02020; ">}</span> exactly how much room when turning
        a corner or back into a curbside parking space
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Gas ``empty'' means <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">1.3 gallons</span><span style="color: #E02020; ">}</span> are still in
        reserve
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> Front wheels invariably shake when going more than <span style="color: #800000; font-weight: normal;">\emph</span><span style="color: #E02020; ">{</span>55<span style="color: #2C922C; font-style: italic;">%</span>
          miles/h<span style="color: #E02020; ">}</span>
      <span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">item</span></span> The only surprises come from other drivers
      <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
    <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">itemize</span></span><span style="color: #E02020; ">}</span>
  <span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">slide</span></span><span style="color: #E02020; ">}}</span>
<span style="color: #800000; font-weight: normal;">\part</span><span style="color: #E02020; ">{</span><span style="color: #00008B; font-weight: bold;"><span style="color: #800000; font-weight: normal;">\huge</span> Thanks for your time!</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span>
<span style="color: #2C922C; font-style: italic;">%%% Local Variables: </span>
<span style="color: #2C922C; font-style: italic;">%%% mode: latex</span>
<span style="color: #2C922C; font-style: italic;">%%% TeX-master: t</span>
<span style="color: #2C922C; font-style: italic;">%%% End:</span></pre></td></tr></table></div>

<a href="http://aifreedom.com/technology/162" title="链接">链接</a> | <a href="http://aifreedom.com/technology/162#comments" title="评论">评论(11)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/162/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>TeX Live 2008 安装 &amp; 配置中文支持 (下)</title>
		<link>http://aifreedom.com/technology/158#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=tex-live-2008-%25e5%25ae%2589%25e8%25a3%2585-%25e9%2585%258d%25e7%25bd%25ae%25e4%25b8%25ad%25e6%2596%2587%25e6%2594%25af%25e6%258c%2581-%25e4%25b8%258a-2</link>
		<comments>http://aifreedom.com/technology/158#comments</comments>
		<pubDate>Wed, 30 Sep 2009 15:07:14 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://aifreedom.com/technology/158</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com 居然拖了两个多月都没把这篇文章写完, 但十月份之前总算交出了它的下半篇. 上次说到把 XeLaTeX 安装好了. 但默认的设置对中英文混排支持还不够好, 不能对中文和英文分别设置字体, 也不能很好地处理中文和英文之间的空白距离. 我们可以安装孙文昌老师开发的 xeCJK 宏包来解决这个问题. xeCJK 的宏包可以在这里下载到. 这个不是最新版的 xeCJK, 因为最新版的 xeCJK 需要 xetex 0.9995.0 之后的版本(TeX Live 2009 或 MiKTeX 2.8). 而且新版的 xeCJK 已经被收入 ctex-kit 项目, 将随 TeX Live 2009 一起分发. 就是说, 等到 TeX Live 2009 Release 的时候, 它对中文的支持会比现在好很多. 把刚刚下载到的压缩包解压到 ~/.texlive2008/texmf/tex/xelatex/, 然后用mktexlsr 更新. (这里我不是很了解, 只是照葫芦画瓢, 没自己看过文档, 有什么问题还请诸位老师指正) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p>居然拖了两个多月都没把这篇文章写完, 但十月份之前总算交出了它的下半篇.</p>
<p>上次说到把 XeLaTeX 安装好了. 但默认的设置对中英文混排支持还不够好, 不能对中文和英文分别设置字体, 也不能很好地处理中文和英文之间的空白距离. 我们可以安装孙文昌老师开发的 xeCJK 宏包来解决这个问题.</p>
<p>xeCJK 的宏包可以在<a href="http://ctex-kit.googlecode.com/files/xecjk-2_2_15.zip">这里</a>下载到. 这个不是最新版的 xeCJK, 因为最新版的 xeCJK 需要 xetex 0.9995.0 之后的版本(TeX Live 2009 或 MiKTeX 2.8). 而且新版的 xeCJK 已经被收入 <a href="http://code.google.com/p/ctex-kit/">ctex-kit</a> 项目, 将随 TeX Live 2009 一起分发. 就是说, 等到 TeX Live 2009 Release 的时候, 它对中文的支持会比现在好很多.</p>
<p>把刚刚下载到的压缩包解压到 ~/.texlive2008/texmf/tex/xelatex/, 然后用mktexlsr 更新. (这里我不是很了解, 只是照葫芦画瓢, 没自己看过文档, 有什么问题还请诸位老师指正)</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">unzip xecjk-2_2_15.zip -d ~/.texlive2008/texmf/tex/xelatex/
cd ~/.texlive2008/texmf
mktexlsr .</pre></div></div>

<p>在刚才下载的压缩包里的 doc 文件夹里有 xeCJK 的完整文档, 我这里给出一个我使用的 preamble 模板.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #2C922C; font-style: italic;">%# -*- coding: utf-8 -*-</span>
<span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">documentclass</span></span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">a4paper</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">slantfont, boldfont, CJKtextspaces,
CJKmathspaces</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">xeCJK</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% 允许斜体和粗体</span>
<span style="color: #800000; font-weight: normal;">\setCJKmainfont</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">BoldFont={<span style="color: #2020C0; font-weight: normal;">Adobe Heiti Std</span><span style="color: #E02020; ">}</span>, ItalicFont=<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Adobe Kaiti
  Std</span><span style="color: #E02020; ">}</span></span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">Adobe Song Std</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% 设置缺省中文字体</span>
<span style="color: #800000; font-weight: normal;">\setCJKmonofont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Adobe Fangsong Std</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% 设置等宽字体</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\setmainfont</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">Mapping=tex-text</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">Liberation
  Serif</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% 英文衬线字体</span>
<span style="color: #800000; font-weight: normal;">\setsansfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Liberation Sans</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% 英文无衬线字体</span>
<span style="color: #800000; font-weight: normal;">\setmonofont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Bitstream Vera Sans Mono</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% 英文等宽字体</span>
<span style="color: #800000; font-weight: normal;">\punctstyle</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">kaiming</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% 开明式标点格式</span>
&nbsp;
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">indentfirst</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">% 首段缩进</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span>
&nbsp;
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">默认字体</span><span style="color: #E02020; ">}</span>   <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\bfseries</span> 粗体效果</span><span style="color: #E02020; ">}</span>   <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\itshape</span> 斜体效果</span><span style="color: #E02020; ">}</span>
&nbsp;
这是Ai.Freedom的Blog的第101篇日志。
&nbsp;
居然拖了两个多月都没把这篇文章写完，但十月份之前总算交出了它的下半篇。
&nbsp;
上次说到把 XeLaTeX 安装好了。但默认的设置对中英文混排支持还不够好，不能
对中文和英文分别设置字体，也不能很好地处理中文和英文之间的空白距离。我
们可以安装孙文昌老师开发的 xeCJK 宏包来解决这个问题。
&nbsp;
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>但这里给出的代码你很可能还无法编译, 因为你没有安装 Adobe 的字体. 这里用到的四个字体可以在<a href="http://forum.ubuntu.org.cn/viewtopic.php?f=35&#038;t=180987">这里</a>下载到. 其中 Adobe Song Std 和 Adobe Heiti Std 是随 Adobe Reader 一起分发的, 根据 Lisence 可以免费使用, 关于另外两个字体的版权我还不是很清楚.</p>
<p>把它们下载回来了之后解压到 ~/.fonts 目录中. 然后执行</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">sudo fc-cache -fv</pre></div></div>

<p>更新字体缓存. 好了, 把刚才的代码保存到 test.tex 后用</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">xelatex test.tex</pre></div></div>

<p>编译就可以得到 test.pdf 了.</p>
<p>在下载的 xeCJK 的压缩包里, source 目录下有一个脚本用来为特定的字体生成标点符号. 按照 README 里的提示, 将 xecjksetpunct-main.tex 里用于 Windows 平台的部分注释掉, 把 Linux 里用到的语句的注释去掉, 然后把下面的字体设置成自己用的字体, 保存. 我们这里用的是 TeX Live, 所以执行</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">xelatex --shell-escape xecjksetpunct-main</pre></div></div>

<p>然后把生成的 xeCJKpunct.spa 文件移动到 .texlive2008/texmf-var/tex/xelatex/xecjk/tex/xelatex/xecjk 目录下, 覆盖默认的 xeCJKpunct.spa 文件. 最后执行</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">texhash .</pre></div></div>

<p>好了, 我们的配置总算是告一段落了. 关于 xeCJK 的更多详细的设置选项, 请查询它的文档. 学习 LaTeX 文档的排版, 有这样一本 "<a href="http://bbs.ctex.org/viewthread.php?tid=40736">The not so Short Introduction to LaTeX</a>", 这个链接是中文版的, 还有 CTeX 论坛的版主 milksea 推荐的<a href="http://bbs.ctex.org/viewthread.php?tid=48244&#038;page=1&#038;fromuid=60750#pid337079">这个列表</a>. 学习 LaTeX 的资料真的很多, 只要你愿意动手.</p>
<a href="http://aifreedom.com/technology/158" title="链接">链接</a> | <a href="http://aifreedom.com/technology/158#comments" title="评论">评论(6)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/158/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Linux Tricks (1)</title>
		<link>http://aifreedom.com/technology/155#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=linux-tricks-1</link>
		<comments>http://aifreedom.com/technology/155#comments</comments>
		<pubDate>Sat, 25 Jul 2009 07:55:39 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[技巧]]></category>

		<guid isPermaLink="false">http://aifreedom.com/?p=155</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com 之前写过一段时间的 Linux 日记, 后来没有继续更新了. 但我发现把在使用 Linux 的过程中解决某些问题的过程用文字记录下来是很有用的! 比如前些天我的同学问我 Mplayer 的 RMVB 解码器是哪个包, 我却记不起来了. 但我记得我写过一篇日志记录了我解决这个问题的过程, 于是他的问题也顺利解决了. 我一直认为学习的过程就是"不断遇到问题, 并寻求解决问题的方法"的过程. 把这个过程记录下来, 就为自己再次重温这个过程留下了线索. 这也就是笔记的重要性. 我在上课时很少做笔记, 但阅读有价值的书是一定要做笔记的. 计划等我有一大段空闲时间了就去整理我的笔记, 把他们都整理成 TeX 文件或者 Muse 文件. 现在这个 "Linux Tricks" 系列, 每一篇都不会太长, 内容比较杂乱, 但涉及的方面会很多. 很多的 Trick 都是从论坛或者 Blog 上看来的, 把它们集中在一起, 既方便了我日后查看, 又传播了 Linux 的文化. 今天的两个Tricks分别从徐宥和 TualatriX 处学到, 感谢他们的分享. 1. 史上最强 PS1 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p>之前写过一段时间的 Linux 日记, 后来没有继续更新了. 但我发现把在使用 Linux 的过程中解决某些问题的过程用文字记录下来是很有用的! 比如前些天我的同学问我 <a href="http://aifreedom.com/technology/68">Mplayer 的 RMVB 解码器是哪个包</a>, 我却记不起来了. 但我记得我写过一篇日志记录了我解决这个问题的过程, 于是他的问题也顺利解决了.</p>
<p>我一直认为学习的过程就是"不断遇到问题, 并寻求解决问题的方法"的过程. 把这个过程记录下来, 就为自己再次重温这个过程留下了线索. 这也就是笔记的重要性. 我在上课时很少做笔记, 但阅读有价值的书是一定要做笔记的. 计划等我有一大段空闲时间了就去整理我的笔记, 把他们都整理成 TeX 文件或者 Muse 文件.</p>
<p>现在这个 "Linux Tricks" 系列, 每一篇都不会太长, 内容比较杂乱, 但涉及的方面会很多. 很多的 Trick 都是从论坛或者 Blog 上看来的, 把它们集中在一起, 既方便了我日后查看, 又传播了 Linux 的文化.</p>
<p>今天的两个Tricks分别从<a href="http://blog.youxu.info">徐宥</a>和 <a href="http://imtx.cn">TualatriX</a> 处学到, 感谢他们的分享.</p>
<p><strong>1. <a href="http://imtx.cn/archives/1298.html">史上最强 PS1</a></strong></p>
<p>这里说的 PS1 不是 Sony 的 Play Station I, 是 Bash Shell 的提示字符串(Prompt String). 就是下图中 "$" 字符前的那些信息.</p>
<p><img src="http://aifreedom.com/images/2009072501.png" alt="Snapshot of the shell with the PS1 above"/></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$force_color_prompt</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>tput <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> tput setaf <span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #666666; font-style: italic;"># We have color support; assume it's compliant with Ecma-48</span>
	<span style="color: #666666; font-style: italic;"># (ISO/IEC-6429). (Lack of such support is extremely rare, and such</span>
	<span style="color: #666666; font-style: italic;"># a case would tend to support setf rather than setaf.)</span>
	<span style="color: #007800;">color_prompt</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span>
    <span style="color: #000000; font-weight: bold;">else</span>
	<span style="color: #007800;">color_prompt</span>=
    <span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$color_prompt</span>=<span style="color: #c20cb9; font-weight: bold;">yes</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">'`a=$?;if [ $a -ne 0 ]; then echo -n -e &quot;\[\e[01;32;41m\]{$a}&quot;; fi`\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\W`[[ -d .git ]] &amp;&amp; echo -n -e &quot;\[\e[33;40m\](branch:$(git branch | sed -e &quot;/^ /d&quot; -e &quot;s/* \(.*\)/\1/&quot;))\[\033[01;32m\]\[\e[00m\]&quot;`\[\033[01;34m\] $ \[\e[00m\]'</span>
    <span style="color: #666666; font-style: italic;"># PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '</span>
<span style="color: #000000; font-weight: bold;">else</span>
    <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">'`a=$?;if [ $a -ne 0 ]; then echo -n -e &quot;{$a}&quot;; fi`\u@\h \W`[[ -d .git ]] &amp;&amp; echo -n -e &quot;(branch:$(git branch | sed -e &quot;/^ /d&quot; -e &quot;s/* \(.*\)/\1/&quot;))&quot;` $ '</span>
    <span style="color: #666666; font-style: italic;"># PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #7a0874; font-weight: bold;">unset</span> color_prompt force_color_prompt</pre></td></tr></table></div>

<p>这个 PS1 有两个功能: 一是高亮显示所有非0返回值, 如图所示; 二是在 Git 管理的目录下显示当前的 Git branch. 最近因为在做C语言课程设计, 用了 Git 来管理我的代码. 所以这个显示分支功能我太喜欢了. (虽然这个项目没有分支的必要..)</p>
<p>将上面的代码加入你的 <a href="http://aifreedom.com/technology/110">~/.bashrc 文件</a>.</p>
<p>如果你使用 Emacs 的 Shell-mode, 那么你需要把 ANSI 彩色字符支持打开.</p>
<p>将下面的代码加入你的<a href="http://aifreedom.com/technology/54">.emacs文件</a>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>ansi-color-for-comint-mode-on<span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

<p><strong>2. <a href="http://blog.youxu.info/2008/03/20/some-handy-scripts/">一行语句的HTTP文件服务器</a></strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">python -m SimpleHTTPServer</pre></td></tr></table></div>

<p>可以将当前目录设为一个在8000端口开放的http服务器的根目录. 在互联网中临时共享文件的时候是多么地方便阿!</p>
<p>徐宥说很多哥们还不知道 "<span style="color:#00f;">wget -c</span>" 能断点续传, 是这样么?</p>
<a href="http://aifreedom.com/technology/155" title="链接">链接</a> | <a href="http://aifreedom.com/technology/155#comments" title="评论">评论(6)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/155/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>TeX Live 2008 安装 &amp; 配置中文支持 (上)</title>
		<link>http://aifreedom.com/technology/153#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=tex-live-2008-%25e5%25ae%2589%25e8%25a3%2585-%25e9%2585%258d%25e7%25bd%25ae%25e4%25b8%25ad%25e6%2596%2587%25e6%2594%25af%25e6%258c%2581-%25e4%25b8%258a</link>
		<comments>http://aifreedom.com/technology/153#comments</comments>
		<pubDate>Tue, 21 Jul 2009 15:12:21 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://aifreedom.com/technology/153</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com Knuth 爷爷的 TeX 系统堪称完美! 但他在发明它的时候没有考虑到对英文之外的语言的支持, 因此用 LaTeX 给中文排版一直有些麻烦. 一年前, 我写过一篇日志介绍 TeX Live 2007 的中文支持配置. 但那个还是用 CJK 实现对中文的支持, 字体的配置比较麻烦. 而现在我要推荐的是 XeTeX, 它对中文的支持比 LaTeX + CJK 包要好很多. 这个解决方案是基于 XeLaTeX + xeCJK 实现对中文的支持. 其实 XeLaTeX 支持中文排版, 但它对中英文混排的支持不是很好. 它不能为中文英文分别设置字体, 也不能很好地控制中英文混排时的间距. 这些都是靠 xeCJK 这个宏包完成的. 去年的时候 LeafDuo 就跟我说 XeTeX 的中文支持很好, 但当时因为懒惰, 一直没有配置起来. 直到不久前写C语言实验报告, 才有了动力把 XeTeX 配置起来. 这篇日志主要记录的是我在 Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p>Knuth 爷爷的 TeX 系统堪称完美! 但他在发明它的时候没有考虑到对英文之外的语言的支持, 因此用 LaTeX 给中文排版一直有些麻烦.</p>
<p>一年前, 我写过一篇日志介绍 <a href="http://aifreedom.com/technology/113">TeX Live 2007 的中文支持配置</a>. 但那个还是用 CJK 实现对中文的支持, 字体的配置比较麻烦. 而现在我要推荐的是 XeTeX, 它对中文的支持比 LaTeX + CJK 包要好很多. 这个解决方案是基于 XeLaTeX + xeCJK 实现对中文的支持. 其实 XeLaTeX 支持中文排版, 但它对中英文混排的支持不是很好. 它不能为中文英文分别设置字体, 也不能很好地控制中英文混排时的间距. 这些都是靠 xeCJK 这个宏包完成的. 去年的时候 LeafDuo 就跟我说 XeTeX 的中文支持很好, 但当时因为懒惰, 一直没有配置起来. 直到不久前写C语言实验报告, 才有了动力把 XeTeX 配置起来.</p>
<p>这篇日志主要记录的是我在 Ubuntu 中安装 TeX Live 2008 及配置中文支持的过程, 在 Windows 中安装与配置的过程与本文有些区别.</p>
<p>这一篇讲的是<outstand>下载安装 TeX Live 2008</outstand>, 下一篇讲的是将是 <outstand>Linux 字体安装和 xeCJK 的配置</outstand>.</p>
<p>Ubuntu 的源里就有 XeTeX 了, 而这里不使用源里的那个 XeTeX 是因为它的版本比较旧, 之后安装中文排版支持宏包会遇到一些麻烦.</p>
<p>TeX Live 可以直接在线安装, 也可以把光盘镜像下载回本地安装. 考虑到网速等问题, 我是下载镜像到本地之后安装的.</p>
<p>TeX Live 的镜像可以在 <a href="http://www.tug.org/texlive/">TeX Live 的主页</a>下载到. 在中国, 使用 <a href="ftp://ftp.ctex.org/CTAN/systems/texlive/Images/texlive2008.iso.lzma">CTeX 的镜像</a>下载会比较快.</p>
<p>1. <strong>如果要使用图形界面安装, 需要先安装 perl-tk; 解压 lzma 格式的压缩包需要安装 lzma.</strong></p>
<p>在 Ubuntu 的源里有这两个包, 可以使用 apt-get 安装.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">sudo apt-get install perl-tk p7zip</pre></div></div>

<p>2. <strong>进入存下载的镜像的目录, 将压缩包解开.</strong></p>
<p>注意, 这一步需要有 4-5G 的空余磁盘空间. 解压后的光盘镜像似乎有 2-3G.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">lzma -d texlive2008.iso.lzma</pre></div></div>

<p>3. <strong>挂载刚刚解压出的 iso 镜像.</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">sudo mount -o loop texlive2008-20080822.iso /mnt</pre></div></div>

<p>4. <strong>执行安装程序</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">sudo /mnt/install-tl --gui</pre></div></div>

<p>这时会弹出安装程序的窗口.</p>
<p>将最后一项 "Create symlinks in system directories" 勾上, 让它自动创建符号链接.</p>
<p>我几乎把所有的包都装上了, 如果你的硬盘空间足够, 也就不需要做什么改动了. 但可以在第四项 "Language Collections" 中去掉不需要的语言包, 节省几百兆的空间.</p>
<p>配置完后点击 "<outstand>Install TeX Live</outstand>", 等上几分钟就装好了.</p>
<p>现在 XeLaTeX 就已经可以处理中文了, 不信你试试编译这个 tex 文档.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\<span style="color: #800000; font-weight: bold;">documentclass</span></span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">fontspec</span><span style="color: #E02020; ">}</span>
<span style="color: #800000; font-weight: normal;">\setmainfont</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">Adobe Song Std</span><span style="color: #E02020; ">}</span>
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span>
  Ai.Freedom的Blog<span style="color: #E02020; ">\\</span>
  aifreedom.com
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></pre></td></tr></table></div>

<p>这里用的 "Adobe Song Std" 字体需要你从 Adobe 下载后安装. <outstand>在 Linux 中安装字体的方法</outstand>会在下一篇中介绍.</p>
<p>编译的命令用 xelatex. 这个文档是可以正常编译的, 但用宋体显示英文字体太丑了, 所以就需要 xeCJK 告诉 XeLaTeX 哪些字符该用哪些字体. <outstand>xeCJK 的配置和简单的使用</outstand>也会在下一篇中介绍.</p>
<a href="http://aifreedom.com/technology/153" title="链接">链接</a> | <a href="http://aifreedom.com/technology/153#comments" title="评论">评论(8)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/153/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Picasaweb 疯了, 请修改 hosts 文件</title>
		<link>http://aifreedom.com/technology/152#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=picasaweb-%25e7%2596%25af%25e4%25ba%2586-%25e8%25af%25b7%25e4%25bf%25ae%25e6%2594%25b9-hosts-%25e6%2596%2587%25e4%25bb%25b6</link>
		<comments>http://aifreedom.com/technology/152#comments</comments>
		<pubDate>Sun, 19 Jul 2009 13:52:09 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[功夫网]]></category>

		<guid isPermaLink="false">http://aifreedom.com/technology/152</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com 为什么 aifreedom.com 的图片都显示不出来了? 因为 Picasaweb 疯了, 但本 Blog 上的图片都挂在它上面. 如果你无法看到我的 Blog 上的图片(很可能是因为你正在中国大陆接入互联网), 请将以下内容写入你的 hosts 文件.. 1 2 3 4 5 6 7 203.208.39.104 picadaweb.google.com 203.208.39.104 lh1.ggpht.com 203.208.39.104 lh2.ggpht.com 203.208.39.104 lh3.ggpht.com 203.208.39.104 lh4.ggpht.com 203.208.39.104 lh5.ggpht.com 203.208.39.104 lh6.ggpht.com hosts 文件是什么? hosts 文件就是一个本地的"域名->IP"的列表, 系统在碰到你输入一个域名后会先在本地的 hosts 文件里查找, 找不到的话才去向 DNS 服务器请求解析. hosts 文件在哪? Windows 下的 hosts 文件在 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p><outstand>为什么 <a href="http://aifreedom.com">aifreedom.com</a> 的图片都显示不出来了?</outstand></p>
<p>因为 Picasaweb 疯了, 但本 Blog 上的图片都挂在它上面. 如果你无法看到我的 Blog 上的图片(很可能是因为你正在中国大陆接入互联网), 请将以下内容写入你的 hosts 文件..</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="text" style="font-family:monospace;">203.208.39.104 picadaweb.google.com
203.208.39.104 lh1.ggpht.com
203.208.39.104 lh2.ggpht.com
203.208.39.104 lh3.ggpht.com
203.208.39.104 lh4.ggpht.com
203.208.39.104 lh5.ggpht.com
203.208.39.104 lh6.ggpht.com</pre></td></tr></table></div>

<p><outstand>hosts 文件是什么?</outstand></p>
<p>hosts 文件就是一个本地的"域名->IP"的列表, 系统在碰到你输入一个域名后会先在本地的 hosts 文件里查找, 找不到的话才去向 DNS 服务器请求解析.</p>
<p><outstand>hosts 文件在哪?</outstand></p>
<p>Windows 下的 hosts 文件在 "C:\windows\system32\drivers\etc\hosts", 用记事本打开后将上面的代码粘贴在最后. 使用 Windows Vista 的用户如果无法修改此文件可以搜索"<a href="http://www.google.com/search?q=vista+修改+hosts">vista 修改 hosts</a>".</p>
<p>Linux 下的 hosts 文件在 "/etc/hosts", 需要 root 权限才可修改. 在终端使用 "sudo gedit /etc/hosts" 或 "sudo kate /etc/hosts" 修改.</p>
<p><del datetime="2009-12-31T03:53:02+00:00">Update: 这些 IP 也已经失效.. 如果确实想看某篇日志里的图片, 请在日志后留言, 我会尽快更新.</del></p>
<p>2009年12月31日 Update: 使用现在这组IP可以正常访问Picasa和查看本站图片</p>
<a href="http://aifreedom.com/technology/152" title="链接">链接</a> | <a href="http://aifreedom.com/technology/152#comments" title="评论">评论(10)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/152/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Twitter on Emacs</title>
		<link>http://aifreedom.com/technology/147#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=twitter-on-emacs</link>
		<comments>http://aifreedom.com/technology/147#comments</comments>
		<pubDate>Fri, 29 May 2009 05:51:31 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://aifreedom.com/?p=147</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com Update[20090603]: 由于 Twitter 撞墙, 这个 Elisp 在中国大陆暂时无法使用. Update[20090609]: 昨天 Twitter 又神奇地穿墙了.. Twitter.com 是一家微博客网站, 你可以在上面发布短消息, 每一条消息都不能超过140个字符. 因为每条消息的内容相对博客的一篇日志要少很多, 所以它们被叫做"微博客". 微博客现在越来越流行了, 我认为一个很重要的原因是它相对博客显得更随意. 但是一个流量很大又太随意的 Twitter Feed 是谁也不愿意 Follow 的. 说真的, 如果你不是徐静蕾, 有多少人关心你每天的早餐吃的什么, 路上是不是堵车了, 中午是不是小睡了一觉呢? 而在 CCTV 大火等突发事件中, 在 Twitter 上都已经开始广泛讨论时, 网易, 新浪等门户网站上还迟迟没有相关新闻. 这很好地显示出了 Twitter 上消息传播的即时性. 很多"正在发生"的事情, 去 Google 上搜索还不如去 Twitter 上搜索. 比如这个事. 有一个 Greasemonkey 的脚本能在搜索 Google [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p><img src="http://geekset.net/pika/readimg.php?src=http%3A%2F%2Flh4.gouride.com%2F_KyNSjoOAwiI%2FSh95IzDx6SI%2FAAAAAAAAAoI%2F7-rt-z-ZZdI%2Fs800%2F2009052901.png" alt="Twitter Logo"/></p>
<p><del datetime="2009-06-08T23:48:38+00:00">Update[20090603]: <strong>由于 Twitter 撞墙, 这个 Elisp 在中国大陆暂时无法使用.</strong></del></p>
<p>Update[20090609]: <strong>昨天 Twitter 又神奇地穿墙了..</strong></p>
<p><a href="http://twitter.com">Twitter.com</a> 是一家微博客网站, 你可以在上面发布短消息, 每一条消息都不能超过140个字符. 因为每条消息的内容相对博客的一篇日志要少很多, 所以它们被叫做"微博客". 微博客现在越来越流行了, 我认为一个很重要的原因是它相对博客显得更随意. 但是一个流量很大又太随意的 Twitter Feed 是谁也不愿意 Follow 的. 说真的, 如果你不是徐静蕾, 有多少人关心你每天的早餐吃的什么, 路上是不是堵车了, 中午是不是小睡了一觉呢?</p>
<p>而在 CCTV 大火等突发事件中, 在 Twitter 上都已经开始广泛讨论时, 网易, 新浪等门户网站上还迟迟没有相关新闻. 这很好地显示出了 Twitter 上消息传播的即时性. 很多"正在发生"的事情, 去 Google 上搜索还不如去 Twitter 上搜索. 比如<a href="https://twitter.com/#search?q=%u9093%u7389%u5A07">这个事</a>. 有一个 Greasemonkey 的脚本能在搜索 Google 同时显示 Twitter 里的搜索结果, 可以在<a href="http://userscripts.org/scripts/show/43451">这里</a>安装. Greasemonkey 是 Firefox 的一个扩展, 可以用脚本修改网页的内容, 还是不清楚 Greasemonkey 是什么的可以等着看我准备要写的 Firefox 扩展推荐.</p>
<p>回到主题, Emacs 真的不愧是一个伟大的编辑器. 你可以在我的 Blog 里找到我之前写过的关于 Emacs 的<a href="http://aifreedom.com/tag/emacs%e5%85%a5%e9%97%a8%e6%8c%87%e5%8d%97">新手指南</a>(虽然现在看起来, 它不是一份很好的入门指南), 我翻译的 <a href="http://aifreedom.com/technology/112">Emacs 默认快捷键列表</a>, 还有一个 Emacs 资源网站的书签列表在<a href="http://aifreedom.com/technology/60">这里</a>. 而今天要说的是一个让你可以在 Emacs 里收发 Twitter 消息的扩展.</p>
<p><a href="http://geekset.net/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_KyNSjoOAwiI%2FSh93VHdqaZI%2FAAAAAAAAAoA%2F6eQJb_vRnfM%2Fs800%2F2009052902.png" rel="lightbox" title="Snapshot of Twitter on Emacs"><img src="http://geekset.net/pika/readimg.php?src=http%3A%2F%2Flh6.gouride.com%2F_KyNSjoOAwiI%2FSh93VHdqaZI%2FAAAAAAAAAoA%2F6eQJb_vRnfM%2Fs800%2F2009052902.png" alt="Snapshot of Twitter on Emacs" /></a></p>
<p>这是我在查看最新的消息的截图. 这个扩展的主页在<a href="http://www.emacswiki.org/emacs/TwIt">这里</a>, 在<a href="http://www.emacswiki.org/emacs/twit.el">这里</a>可以下载到最新的代码, 现在最新的版本是 0.3.3.</p>
<p>把它下载后保存到一个 Emacs 能找到的地方(在<a href="http://aifreedom.com/technology/59">这里</a>有添加扩展的方法介绍), 然后在 .emacs 里写上配置.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="lisp" style="font-family:monospace;">  <span style="color: #66cc66;">&#40;</span>require 'twit<span style="color: #66cc66;">&#41;</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> twit-show-user-images t<span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;; 显示好友头像</span>
  <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> twit-user-image-dir <span style="color: #ff0000;">&quot;~/.twit&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;; 设置头像保存路径</span></pre></td></tr></table></div>

<p>然后重启 Emacs, M-x twit-show-recent-tweets, 输入用户名密码后就可以看到最新的消息了. 可能在你输完以后消息没有显示出来, 按一下 g 之后等两秒就应该能看到了.</p>
<p>在这个 buffer 里, 有一些默认的快捷键, 比如 g 是刷新消息, a 是查看@你的消息, w 是发消息, r 是回复别人的消息, d 是给某人发 Direct Message. 常用的就这些吧.</p>
<p>我还在全局绑定了一些键, C-c t 是查看最新的消息, C-c w 是发消息.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#40;</span>kbd <span style="color: #ff0000;">&quot;C-c t&quot;</span><span style="color: #66cc66;">&#41;</span> 'twit-show-recent-tweets<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#40;</span>kbd <span style="color: #ff0000;">&quot;C-c w&quot;</span><span style="color: #66cc66;">&#41;</span> 'twit-post<span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

<p>下面是我的 Twitter Profile 的地址, 欢迎 Follow.</p>
<p><a href="https://twitter.com/aifreedom">https://twitter.com/aifreedom</a></p>
<a href="http://aifreedom.com/technology/147" title="链接">链接</a> | <a href="http://aifreedom.com/technology/147#comments" title="评论">评论(8)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/147/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Google服务里那些快捷键</title>
		<link>http://aifreedom.com/technology/125#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=google%25e6%259c%258d%25e5%258a%25a1%25e9%2587%258c%25e9%2582%25a3%25e4%25ba%259b%25e5%25bf%25ab%25e6%258d%25b7%25e9%2594%25ae</link>
		<comments>http://aifreedom.com/technology/125#comments</comments>
		<pubDate>Fri, 31 Oct 2008 15:23:22 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[快捷键]]></category>
		<category><![CDATA[笑话]]></category>

		<guid isPermaLink="false">http://aifreedom.com/technology/125</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com 首先祝各位网友圣诞节快乐! 什么? 你说今天是10月31日, Halloween? 嗯, 我也知道啊! 哦, 天哪, 我又把 Oct 31 和 Dec 25 弄混了.. 该死的8进制! 看看Friendfeed上, 有了披着床单的鬼和南瓜头, 连搜索框都有蜘蛛网了. 但Google上却还什么都没有, 是怎么回事? 在使用Emacs之后, 我越来越感受到在处理工作时, 键盘相对鼠标来说效率实在是太高了(这句话不适合美工人员和Windows用户). Emacs里高效的快捷键让我想起来也分享一下Google服务里的那些快捷键. 现在收集了有Gmail和Google Reader的快捷键, 来源是官方帮助. Gmail 的快捷键 - via 要打开或关闭那些区分大小写的快捷键（Gmail里快捷键功能是默认关闭的），请点击设置，然后选取键盘快捷键旁边的选项。 快捷键 定义 操作 c 撰写 可让您撰写新邮件。 &#60;Shift&#62; + c 可让您在新窗口撰写邮件。 / 搜索 将光标停留在搜索框。 k 转到后一个会话 打开或将您的光标移动到较新的会话。 您可以按 &#60;Enter&#62; 展开会话。 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p>首先祝各位网友圣诞节快乐! 什么? 你说今天是10月31日, Halloween? 嗯, 我也知道啊! 哦, 天哪, 我又把 Oct 31 和 Dec 25 弄混了.. 该死的8进制!</p>
<p>看看<a title="FriendFeed - 分享我们的视野" href="http://aifreedom.com/internet-vision/121" target="_blank">Friendfeed</a>上, 有了披着床单的鬼和南瓜头, 连搜索框都有蜘蛛网了. 但Google上却还什么都没有, 是怎么回事?</p>
<p><img src="http://geekset.net/pika/readimg.php?src=http%3A%2F%2Flh3.gouride.com%2F_KyNSjoOAwiI%2FSQsggsJFHWI%2FAAAAAAAAAdc%2F9zr-A4Zm2oo%2Fs800%2F2008103101.png" alt="" /></p>
<p>在使用<a title="Tag: Emacs" href="http://aifreedom.com/tag/emacs" target="_blank">Emacs</a>之后, 我越来越感受到在处理工作时, 键盘相对鼠标来说效率实在是太高了(这句话不适合美工人员和Windows用户). <a title="Emacs快捷键列表" href="http://aifreedom.com/technology/112" target="_blank">Emacs里高效的快捷键</a>让我想起来也分享一下Google服务里的那些快捷键.</p>
<p>现在收集了有Gmail和Google Reader的快捷键, 来源是官方帮助.</p>
<p><strong>Gmail</strong> 的快捷键 - <a href="https://mail.google.com/support/bin/answer.py?answer=6594" target="_blank">via</a></p>
<p>要打开或关闭那些区分大小写的快捷键（Gmail里快捷键功能是默认关闭的），请点击<strong>设置</strong>，然后选取<strong>键盘快捷键</strong>旁边的选项。</p>
<table border="1" cellspacing="0" cellpadding="2" width="90%">
<tbody>
<tr bgcolor="#c3d9ff">
<th align="center" valign="middle"><span>快捷键</span></th>
<th align="center" valign="middle"><span>定义</span></th>
<th align="center" valign="middle"><span>操作</span></th>
</tr>
<tr>
<th align="center" valign="middle"><span>c</span></th>
<td align="center" valign="middle"><span>撰写</span></td>
<td valign="top"><span>可让您撰写新邮件。 <strong>&lt;Shift&gt; + c </strong>可让您在新窗口撰写邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>/</span></th>
<td align="center" valign="middle"><span>搜索</span></td>
<td valign="top"><span>将光标停留在搜索框。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>k</span></th>
<td align="center" valign="middle"><span>转到后一个会话</span></td>
<td valign="top"><span>打开或将您的光标移动到较新的会话。 您可以按 <strong>&lt;Enter&gt;</strong> 展开会话。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>j</span></th>
<td align="center" valign="middle"><span>转到前一个会话</span></td>
<td valign="top"><span>打开或将您的光标移动到下一个更早的会话。 您可以按 <strong>&lt;Enter&gt;</strong> 展开会话。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>n</span></th>
<td align="center" valign="middle"><span>下一封邮件</span></td>
<td valign="top"><span>将您的光标移动到下一封邮件。 您可以按 <strong>&lt;Enter&gt;</strong> 显示或隐藏邮件。   <span>（仅适用于"会话视图"。）</span></span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>p</span></th>
<td align="center" valign="middle"><span>上一封邮件</span></td>
<td valign="top"><span>将您的光标移动到上一封邮件。 您可以按 <strong>&lt;Enter&gt;</strong> 显示或隐藏邮件。 <span>（仅适用于"会话视图"。）</span></span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>o <span>或</span> &lt;Enter&gt;</span></th>
<td align="center" valign="middle"><span>打开</span></td>
<td valign="top"><span>打开会话。 如果处于"会话视图"中，还会显示或隐藏邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>u</span></th>
<td align="center" valign="middle"><span>返回到会话列表</span></td>
<td valign="top"><span>刷新页面，并返回收件箱或会话列表。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>e</span></th>
<td align="center" valign="middle"><span>存档</span></td>
<td valign="top"><span>从任意视图将会话存档。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>m</span></th>
<td align="center" valign="middle"><span>忽略</span></td>
<td valign="top"><span>除非您是收件人或邮件直接抄送给您，否则，此操作会将会话存档且以后所有的邮件均不会保存在收件箱中。 <a href="https://mail.google.com/support/bin/answer.py?answer=47787">了解详情</a>。 </span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>x</span></th>
<td align="center" valign="middle"><span>选择会话</span></td>
<td valign="top"><span>自动检查和选择会话，便于您存档、应用标签，或在下拉菜单中选择操作以应用于所选会话。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>s</span></th>
<td align="center" valign="middle"><span>为邮件或会话加注星标</span></td>
<td valign="top"><span>为邮件或会话加注或删除星标。 星标可以让您标示邮件或会话的特殊状态。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>!</span></th>
<td align="center" valign="middle"><span>这是垃圾邮件</span></td>
<td valign="top"><span>将邮件标记为垃圾邮件，并将其从会话列表中删除。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>r</span></th>
<td align="center" valign="middle"><span>回复</span></td>
<td valign="top"><span>回复发件人。   <strong>&lt;Shift&gt; + r </strong><span style="font-family: Arial;">可在新窗口回复邮件。</span> <span>（仅适用于"会话视图"。）</span></span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>a</span></th>
<td align="center" valign="middle"><span>回复所有人</span></td>
<td valign="top"><span>回复所有收件人。   <span style="font-family: Arial;"><strong>&lt;Shift&gt; +a</strong></span> <span style="font-family: Arial;">可让您在新窗口中回复所有收件人。</span> <span>（仅适用于"会话视图"。）</span></span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>f</span></th>
<td align="center" valign="middle"><span>转发</span></td>
<td valign="top"><span>转发邮件。 <span style="font-family: Arial;"><strong>&lt;Shift&gt; + f</strong></span> <span style="font-family: Arial;">允许您在新窗口中转发邮件。</span> <span>（仅适用于"会话视图"。）</span></span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Esc&gt;</span></th>
<td align="center" valign="middle"><span>从输入字段退出</span></td>
<td valign="top"><span>将光标从当前输入字段中移出。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span><strong> &lt;Ctrl&gt; + <span style="font-family: Arial,Helvetica,sans-serif;">s</span></strong></span></th>
<td align="center" valign="middle"><span>保存草稿 </span></td>
<td valign="top"><span>撰写邮件时，按住 <strong>&lt;Ctrl&gt;</strong> 键的同时按下 <strong>s</strong> <span style="font-family: Arial,Helvetica,sans-serif;">，可将当前文本保存为<a href="https://mail.google.com/support/bin/answer.py?answer=6587">草稿</a>。 在使用此快捷键时，确保您的光标位于某一文本字段中，如撰写窗格或任何收件人":"、"抄送:"、"密送:或敁主题字段。" </span></span></td>
</tr>
<tr>
<th align="center" valign="middle"><span><strong> # </strong></span></th>
<td align="center" valign="middle"><span>删除 </span></td>
<td valign="top"><span>将会话移至已删除邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Shift&gt; <span>+</span> i</span></th>
<td align="center" valign="middle"><span>标记为已读</span></td>
<td valign="top"><span>将邮件标记为已读并跳到下一封邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Shift&gt; <span>+</span> u</span></th>
<td align="center" valign="middle"><span>标记为未读</span></td>
<td valign="top"><span>将邮件标记为未读，从而以后可以再回来阅读该邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>[</span></th>
<td align="center" valign="middle"><span>存档并转到上一个</span></td>
<td valign="top"><span>将您的会话存档，并转到上一个。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>]</span></th>
<td align="center" valign="middle"><span>存档并转到下一个</span></td>
<td valign="top"><span>将您的会话存档，并转到下一个。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>z</span></th>
<td align="center" valign="middle"><span>撤消</span></td>
<td valign="top"><span>如果需要，则撤消上一个操作（适用于具有撤消链接的操作）。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Shift&gt; <span>+</span> n</span></th>
<td align="center" valign="middle"><span>更新当前会话</span></td>
<td valign="top"><span>在有新邮件时更新您的当前会话。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>q</span></th>
<td align="center" valign="middle"><span>将光标移到聊天搜索</span></td>
<td valign="top"><span>将您的光标直接移到聊天搜索框。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>y</span></th>
<td align="center" valign="middle"><span>从当前视图中删除*<br />
</span></td>
<td valign="top"><span>将邮件或会话从当前视图中自动删除。 </span></p>
<ul><span><span></p>
<li> 在"收件箱"中，"y"用于<strong>存档</strong></li>
<li> 在"已加星标"下，"y"用于<strong>删除星标</strong></li>
<li> 在"已删除邮件"中，"y"用于<strong>将邮件移至收件箱</strong></li>
<li> 在任一标签下，"y"用于<strong>删除标签</strong></li>
<p></span></span></ul>
<p><span><span>* 在"垃圾邮件"、"已发邮件"或"所有邮件"中，"y"不起作用。 </span></span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>..</span></th>
<td align="center" valign="middle"><span>显示其他操作</span></td>
<td valign="top"><span>显示"其他操作"下拉菜单。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>?</span></th>
<td align="center" valign="middle"><span>显示键盘快捷键帮助</span></td>
<td valign="top"><span>在任一页面内显示键盘快捷键帮助菜单。</span></td>
</tr>
</tbody>
</table>
<p><span style="font-family: Arial;"><strong>Gmail</strong> 的组合键</span></p>
<table border="1" cellspacing="0" cellpadding="2" width="90%">
<tbody>
<tr bgcolor="#c3d9ff">
<th align="center" valign="middle"><span>快捷键</span></th>
<th align="center" valign="middle"><span>定义</span></th>
<th align="center" valign="middle"><span>操作</span></th>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;tab&gt; <span>然后</span> &lt;Enter&gt;</span></th>
<td align="center" valign="middle"><span>发送邮件</span></td>
<td valign="top"><span>撰写邮件后，使用该组合键自动发送邮件。 （在 Windows 的 Internet Explorer 和 Firefox 上支持）</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>y <span>然后</span> o</span></th>
<td align="center" valign="middle"><span>存档并转到下一个</span></td>
<td valign="top"><span>将您的会话存档，并转到下一个。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g <span>然后</span> a</span></th>
<td align="center" valign="middle"><span>转到"所有邮件"</span></td>
<td valign="top"><span>转到"所有邮件"，这是存放所有已发送或接收（并且未删除）的邮件的位置。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g <span>然后</span> s</span></th>
<td align="center" valign="middle"><span>转到"已加星标"</span></td>
<td valign="top"><span>转到所有已加注星标的会话。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g <span>然后</span> c</span></th>
<td align="center" valign="middle"><span>转到"通讯录"</span></td>
<td valign="top"><span>转到通讯录列表。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g <span>然后</span> d</span></th>
<td align="center" valign="middle"><span>转到"草稿"</span></td>
<td valign="top"><span>转到您保存的所有草稿。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g <span>然后</span> i</span></th>
<td align="center" valign="middle"><span>转到"收件箱"</span></td>
<td valign="top"><span>返回收件箱。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g <span>然后</span> t</span></th>
<td align="center" valign="middle"><span>转到"已发邮件"</span></td>
<td valign="top"><span>转到已发送的所有邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>* <span>然后</span> a</span></th>
<td align="center" valign="middle"><span>全部选中</span></td>
<td valign="top"><span>选择所有邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>* <span>然后</span> n</span></th>
<td align="center" valign="middle"><span>未选择任何邮件</span></td>
<td valign="top"><span>取消选择所有邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>* <span>然后</span> r</span></th>
<td align="center" valign="middle"><span>选择已读邮件</span></td>
<td valign="top"><span>选择已读的所有邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>* <span>然后</span> u</span></th>
<td align="center" valign="middle"><span>选择未读邮件</span></td>
<td valign="top"><span>选择所有未读邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>* <span>然后</span> s</span></th>
<td align="center" valign="middle"><span>选择已加星标的邮件</span></td>
<td valign="top"><span>选择已加星标的所有邮件。</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>* <span>然后</span> t</span></th>
<td align="center" valign="middle"><span>选择未加注星标的邮件</span></td>
<td valign="top"><span>选择未加注星标的所有邮件</span></td>
</tr>
</tbody>
</table>
<p><strong>Google Reader</strong> 的快捷键 - <a href="http://www.google.com/support/reader/bin/answer.py?answer=69973" target="_blank">via</a></p>
<table border="1" cellspacing="0" cellpadding="2" width="90%">
<tbody>
<tr bgcolor="#c3d9ff">
<th align="center" valign="middle"><span>快捷键</span></th>
<th align="center" valign="middle"><span>定义</span></th>
<th align="center" valign="middle"><span>操作</span></th>
</tr>
<tr>
<th align="center" valign="middle"><span>j/k</span></th>
<td align="center" valign="middle"><span>向下/向上浏览项目</span></td>
<td valign="top"><span>在列表中选择下一个/上一个项目</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Space&gt;/&lt;Shift&gt;+&lt;Space&gt;</span></th>
<td align="center" valign="middle"><span>向下/向上翻页</span></td>
<td valign="top"><span>向下/向上翻页</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>n/p</span></th>
<td align="center" valign="middle"><span>向下/向上扫描</span></td>
<td valign="top"><span>在列表视图中，无需打开就可选择下一个项目</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>o</span></th>
<td align="center" valign="middle"><span>打开/关闭项目</span></td>
<td valign="top"><span>在列表视图中，展开或折叠所选项目</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Enter&gt;</span></th>
<td align="center" valign="middle"><span>打开/关闭项目</span></td>
<td valign="top"><span>在列表视图中，展开或折叠所选项目</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>s</span></th>
<td align="center" valign="middle"><span>切换星标</span></td>
<td valign="top"><span>为所选项目加注星标</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Shift&gt;+s</span></th>
<td align="center" valign="middle"><span>切换共享</span></td>
<td valign="top"><span>共享所选项目</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>m</span></th>
<td align="center" valign="middle"><span>标记为已读/未读</span></td>
<td valign="top"><span>在所选项目的已读/未读状态间切换</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>t</span></th>
<td align="center" valign="middle"><span>标记项目</span></td>
<td valign="top"><span>打开所选项目的标记字段</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>v</span></th>
<td align="center" valign="middle"><span>查看原始内容</span></td>
<td valign="top"><span>在新窗口中打开该文章的原始来源</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Shift&gt;+a</span></th>
<td align="center" valign="middle"><span>全部标记为已读</span></td>
<td valign="top"><span>将当前视图中的所有项目标记为已读</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>1</span></th>
<td align="center" valign="middle"><span>展开视图</span></td>
<td valign="top"><span>将订阅展示为扩展项目</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>2</span></th>
<td align="center" valign="middle"><span>列表视图</span></td>
<td valign="top"><span>将订阅展示为标题列表</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>r</span></th>
<td align="center" valign="middle"><span>刷新</span></td>
<td valign="top"><span>在导航中刷新未读文章数</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Shift&gt;+n/p</span></th>
<td align="center" valign="middle"><span>导航向下/向上</span></td>
<td valign="top"><span>在导航中选择下一个/上一个订阅或文件夹</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Shift&gt;+x</span></th>
<td align="center" valign="middle"><span>导航展开/折叠</span></td>
<td valign="top"><span>在导航中展开或折叠所选文件夹</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>&lt;Shift&gt;+o</span></th>
<td align="center" valign="middle"><span>导航打开订阅</span></td>
<td valign="top"><span>在导航中打开当前所选项目</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g 然后 h</span></th>
<td align="center" valign="middle"><span>转到主页</span></td>
<td valign="top"><span>转到 Google 阅读器主页</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g 然后 a</span></th>
<td align="center" valign="middle"><span>转到所有项目</span></td>
<td valign="top"><span>转到"所有项目"视图</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g 然后 s</span></th>
<td align="center" valign="middle"><span>转到加星标项目</span></td>
<td valign="top"><span>转到"加星标项目"视图</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g 然后 t</span></th>
<td align="center" valign="middle"><span>转到标记</span></td>
<td valign="top"><span>允许通过输入标记名称转到该标记</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>g 然后 u</span></th>
<td align="center" valign="middle"><span>转到订阅</span></td>
<td valign="top"><span>允许通过输入订阅名称转到该订阅</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>u</span></th>
<td align="center" valign="middle"><span>切换全屏模式</span></td>
<td valign="top"><span>隐藏或展示订阅列表</span></td>
</tr>
<tr>
<th align="center" valign="middle"><span>?</span></th>
<td align="center" valign="middle"><span>键盘快捷键帮助</span></td>
<td valign="top"><span>展示有关 Google 阅读器快捷键的快捷指南</span></td>
</tr>
</tbody>
</table>
<p><strong>Google Calendar</strong> 的快捷键 - <a href="http://www.google.com/support/calendar/bin/answer.py?answer=37034" target="_blank">via</a></p>
<table border="1" cellspacing="0" cellpadding="2" width="90%">
<tbody>
<tr bgcolor="#c3d9ff">
<th align="center" valign="middle">快捷键</th>
<th align="center" valign="middle">定义</th>
<th align="center" valign="middle">操作</th>
</tr>
<tr>
<th align="center" valign="middle">c</th>
<td align="center" valign="middle">创建活动</td>
<td valign="top">可让您创建新活动。</td>
</tr>
<tr>
<th align="center" valign="middle">/</th>
<td align="center" valign="middle">搜索</td>
<td valign="top">将光标置入搜索框</td>
</tr>
<tr>
<th align="center" valign="middle">p<span> 或 j</span></th>
<td align="center" valign="middle">上一日期范围</td>
<td valign="top">将日历视图移动到上一日期范围</td>
</tr>
<tr>
<th align="center" valign="middle">n<span> 或 k</span></th>
<td align="center" valign="middle">下一日期范围</td>
<td valign="top">将日历视图移动到下一日期范围</td>
</tr>
<tr>
<th align="center" valign="middle">t</th>
<td align="center" valign="middle">跳转到"今天"</td>
<td valign="top">移动到当前日</td>
</tr>
<tr>
<th align="center" valign="middle">d</th>
<td align="center" valign="middle">"天"视图</td>
<td valign="top">在"天"视图中显示日历</td>
</tr>
<tr>
<th align="center" valign="middle">x</th>
<td align="center" valign="middle">自定义视图</td>
<td valign="top">在自定义视图中显示日历</td>
</tr>
<tr>
<th align="center" valign="middle">w</th>
<td align="center" valign="middle">"周"视图</td>
<td valign="top">在"周"视图中显示日历</td>
</tr>
<tr>
<th align="center" valign="middle">m</th>
<td align="center" valign="middle">"月"视图</td>
<td valign="top">以"月"视图显示日历</td>
</tr>
<tr>
<th align="center" valign="middle">a</th>
<td align="center" valign="middle">"日程"视图</td>
<td valign="top">以"日程"视图显示日历</td>
</tr>
<tr>
<th align="center" valign="middle">q</th>
<td align="center" valign="middle">快速添加</td>
<td valign="top">打开"快速添加"</td>
</tr>
<tr>
<th align="center" valign="middle">S</th>
<td align="center" valign="middle">设置</td>
<td valign="top">进入 Google 日历的"设置"页面</td>
</tr>
<tr>
<th align="center" valign="middle">&lt;Esc&gt;<span> 或 u</span></th>
<td align="center" valign="middle">返回到日历</td>
<td valign="top">返回到默认的日历视图</td>
</tr>
</tbody>
</table>
<a href="http://aifreedom.com/technology/125" title="链接">链接</a> | <a href="http://aifreedom.com/technology/125#comments" title="评论">评论(11)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/125/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>WordPress插件 - mimeTeX</title>
		<link>http://aifreedom.com/technology/117#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=wordpress%25e6%258f%2592%25e4%25bb%25b6-mimetex</link>
		<comments>http://aifreedom.com/technology/117#comments</comments>
		<pubDate>Sun, 31 Aug 2008 14:12:56 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://aifreedom.com/?p=117</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com 是Donald E. Knuth在1978年开始开发的一款用于排版他的著作《The Art of Computer Programming》的自由软件. Knuth为每一个发现Bug的用户提供奖励, 奖励金额从1美分开始, 并每年翻倍, 直到目前的327.68美元封顶. 但他却并未为此付出太多金钱, 因为中的漏洞实在很少. 最初的版本号是3.0, 每次更新后在版本号小数点后添加一位, 使它愈趋近于, 现在的版本号是3.1415926. 是的一个宏包, 它使更方便易用. 由于LaTeX很方便排版, 尤其在处理复杂的表格和数学公式上极为突出, 它被广泛用于制作各种科技文献和出版物. 比如Knuth的《具体数学》(Concrete Mathematics)就是用TeX排版的, 许多大学也提供各自的毕业生论文LaTeX模板. 在GPL协议下发布的mimeTeX, 是一个用于轻松地在网页中嵌入数学表达式的软件. 由张志强开发的mimeTeX for WordPress是WordPress下调用mimeTeX的插入公式的插件. 如果有可能, 最好在自己的服务器上安装mimeTeX(只需要cgi支持, bluehost, dreamhost都支持), 但我的服务器不能自己安装, 所以只能使用第三方架设的mimeTeX服务. 插件的安装方法很简单 下载插件后上传到WordPress的插件目录. 到管理员后台激活插件. 在wp-content下新建cache文件夹, 并赋予777权限. 来看几个例子吧, 其实上面的就是调用mimeTeX显示的, 我输入的仅仅是$$\LaTeX$$. 先来个简单的 还有上次我提到的那个表示化圆为方的式子, 谁告诉我下它究竟讲的什么 更复杂一些的 甚至可以画图 而且支持在评论时加入表达式, 试试吧! 记得要在表达式两端用两个$符号引起来! [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p><img src="http://aifreedom.com/wp-content/cache/tex_89a89e0981b83735997c42f3f5d93a6b.png" align="absmiddle" class="tex" alt="\TeX" />是Donald E. Knuth在1978年开始开发的一款用于排版他的著作《The Art of Computer Programming》的自由软件. Knuth为每一个发现Bug的用户提供奖励, 奖励金额从1美分开始, 并每年翻倍, 直到目前的327.68美元封顶. 但他却并未为此付出太多金钱, 因为<img src="http://aifreedom.com/wp-content/cache/tex_89a89e0981b83735997c42f3f5d93a6b.png" align="absmiddle" class="tex" alt="\TeX" />中的漏洞实在很少. <img src="http://aifreedom.com/wp-content/cache/tex_89a89e0981b83735997c42f3f5d93a6b.png" align="absmiddle" class="tex" alt="\TeX" />最初的版本号是3.0, 每次更新后在版本号小数点后添加一位, 使它愈趋近于<img src="http://aifreedom.com/wp-content/cache/tex_4f08e3dba63dc6d40b22952c7a9dac6d.png" align="absmiddle" class="tex" alt="\pi" />, 现在的版本号是3.1415926. <img src="http://aifreedom.com/wp-content/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.png" align="absmiddle" class="tex" alt="\LaTeX" />是<img src="http://aifreedom.com/wp-content/cache/tex_89a89e0981b83735997c42f3f5d93a6b.png" align="absmiddle" class="tex" alt="\TeX" />的一个宏包, 它使<img src="http://aifreedom.com/wp-content/cache/tex_89a89e0981b83735997c42f3f5d93a6b.png" align="absmiddle" class="tex" alt="\TeX" />更方便易用. 由于LaTeX很方便排版, 尤其在处理复杂的表格和数学公式上极为突出, 它被广泛用于制作各种科技文献和出版物. 比如Knuth的《具体数学》(Concrete Mathematics)就是用TeX排版的, 许多大学也提供各自的毕业生论文LaTeX模板.</p>
<p>在GPL协议下发布的<a href="http://www.forkosh.com/mimetex.html" target="_blank">mimeTeX</a>, 是一个用于轻松地在网页中嵌入<img src="http://aifreedom.com/wp-content/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.png" align="absmiddle" class="tex" alt="\LaTeX" />数学表达式的软件. 由张志强开发的<a href="http://wordpress.org/extend/plugins/latex/" target="_blank">mimeTeX for WordPress</a>是WordPress下调用mimeTeX的插入<img src="http://aifreedom.com/wp-content/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.png" align="absmiddle" class="tex" alt="\LaTeX" />公式的插件. 如果有可能, 最好在自己的服务器上安装mimeTeX(只需要cgi支持, bluehost, dreamhost都支持), 但我的服务器不能自己安装, 所以只能使用第三方架设的mimeTeX服务.</p>
<p>插件的安装方法很简单</p>
<ol>
<li><a href="http://wordpress.org/extend/plugins/latex/" target="_blank">下载</a>插件后上传到WordPress的插件目录.</li>
<li> 到管理员后台激活插件.</li>
<li> 在wp-content下新建cache文件夹, 并赋予777权限.</li>
</ol>
<p>来看几个例子吧, 其实上面的<img src="http://aifreedom.com/wp-content/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.png" align="absmiddle" class="tex" alt="\LaTeX" />就是调用mimeTeX显示的, 我输入的仅仅是$$\LaTeX$$.</p>
<p>先来个简单的</p>
<p><img src="http://aifreedom.com/wp-content/cache/tex_c7676fdbf3e4c60be40b29b12b1aabb8.png" align="absmiddle" class="tex" alt="\Large x^2+y^2=z^2" /></p>
<p>还有<a href="http://aifreedom.com/entertainment/114" target="_blank">上次我提到的</a>那个表示化圆为方的式子, 谁告诉我下它究竟讲的什么</p>
<p><img src="http://aifreedom.com/wp-content/cache/tex_e23ddc37f59ee18afa48025a657453b7.png" align="absmiddle" class="tex" alt="\Large \exists f\in\mathbb{P}^{[\mathbb{R}]}_{\infty},f(\sqrt{\pi})=0" /></p>
<p>更复杂一些的</p>
<p><img src="http://aifreedom.com/wp-content/cache/tex_84027df9895b4d2e2d0afcb4dad587b2.png" align="absmiddle" class="tex" alt="\Large      e^x=\lim_{n\to\infty} \left(1+\frac~xn\right)^n" /></p>
<p><img src="http://aifreedom.com/wp-content/cache/tex_6a9ca743b980f30d9ac21efc69831015.png" align="absmiddle" class="tex" alt="\Large A\ =\ \large\left(         \begin{array}{c.cccc}&amp;1&amp;2&amp;\cdots&amp;n\\         \hdash1&amp;a_{11}&amp;a_{12}&amp;\cdots&amp;a_{1n}\\         2&amp;a_{21}&amp;a_{22}&amp;\cdots&amp;a_{2n}\\         \vdots&amp;\vdots&amp;\vdots&amp;\ddots&amp;\vdots\\         n&amp;a_{n1}&amp;a_{n2}&amp;\cdots&amp;a_{nn}\end{array}\right)" /></p>
<p><img src="http://aifreedom.com/wp-content/cache/tex_c2a7d29d09d5a4d62e61b8ada2a3ff5d.png" align="absmiddle" class="tex" alt="\normalsize         \left(\large\begin{array}{GC+23}         \varepsilon_x\\\varepsilon_y\\\varepsilon_z\\\gamma_{xy}\\         \gamma_{xz}\\\gamma_{yz}\end{array}\right)\ {\Large=}         \ \left[\begin{array}{CC}         \begin{array}\frac1{E_{\fs{+1}x}}         &amp;-\frac{\nu_{xy}}{E_{\fs{+1}x}}         &amp;-\frac{\nu_{\fs{+1}xz}}{E_{\fs{+1}x}}\\         -\frac{\nu_{yx}}{E_y}&amp;\frac1{E_{y}}&amp;-\frac{\nu_{yz}}{E_y}\\         -\frac{\nu_{\fs{+1}zx}}{E_{\fs{+1}z}}&amp;         -\frac{\nu_{zy}}{E_{\fs{+1}z}}         &amp;\frac1{E_{\fs{+1}z}}\end{array} &amp; {\LARGE 0} \\         {\LARGE 0} &amp; \begin{array}\frac1{G_{xy}}&amp;&amp;\\         &amp;\frac1{G_{\fs{+1}xz}}&amp;\\&amp;&amp;\frac1{G_{yz}}\end{array}         \end{array}\right]         \ \left(\large\begin{array}         \sigma_x\\\sigma_y\\\sigma_z\\\tau_{xy}\\\tau_{xz}\\\tau_{yz}         \end{array}\right)" /></p>
<p>甚至可以画图</p>
<p><img src="http://aifreedom.com/wp-content/cache/tex_a037a4490b226f0e990f16c48a615c93.png" align="absmiddle" class="tex" alt="\Large\hspace{5}\unitlength{1}    \picture(175,100){~(50,50){\circle(100)}    (1,50){\overbrace{\line(46)}^{4$\;\;a}}    (52,50){\line(125)}~(50,52;115;2){\mid}~(52,55){\longleftar[60]}    (130,56){\longrightar[35]}~(116,58){r}~(c85,50;80;2){\bullet}    (c85,36){3$-q}~(c165,36){3$q}    (42,29){\underbrace{\line(32)}_{1$a^2/r\;\;\;}}~}" /></p>
<p>而且支持在评论时加入<img src="http://aifreedom.com/wp-content/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.png" align="absmiddle" class="tex" alt="\LaTeX" />表达式, 试试吧!</p>
<p>记得要在<img src="http://aifreedom.com/wp-content/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.png" align="absmiddle" class="tex" alt="\LaTeX" />表达式两端用<strong>两个$符号</strong>引起来!</p>
<a href="http://aifreedom.com/technology/117" title="链接">链接</a> | <a href="http://aifreedom.com/technology/117#comments" title="评论">评论(12)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/117/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>用最简单的方法让TeX Live支持中文</title>
		<link>http://aifreedom.com/technology/113#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=%25e7%2594%25a8%25e6%259c%2580%25e7%25ae%2580%25e5%258d%2595%25e7%259a%2584%25e6%2596%25b9%25e6%25b3%2595%25e8%25ae%25a9tex-live%25e6%2594%25af%25e6%258c%2581%25e4%25b8%25ad%25e6%2596%2587</link>
		<comments>http://aifreedom.com/technology/113#comments</comments>
		<pubDate>Thu, 28 Aug 2008 10:36:55 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[中文支持]]></category>

		<guid isPermaLink="false">http://aifreedom.com/technology/113</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com 让TeX支持中文不是一件容易的事, 但我终于找到了一个简单的办法(应该说是傻瓜办法). 安装TeX Live和CJK. 在源里选择texlive, latex-cjk-chinese(如果需要日文和韩文支持, 那么选择latex-cjk-all)安装. 然后下载"YueWang-zhfonts-final_1.01.tar.bz2", 这是YueWang制作的TeX Live 2007使用的字体包, 有207M. 教育网里可以在这里下载, 教育网外可以在这里下载. 顺便分享一个很好用的FTP搜索引擎, http://run.hit.edu.cn/. 然后将解压后文件夹内的两个文件夹移动到你的Home目录里, 并在目录名前分别加 '.'(点号). 好了, 大功告成. 但根据安装说明 "如果不行, 请把~/.texlive2007/texmf-var/fonts/map/dvips中的所有map給enable了.", 我不是很了解这些, 等我进一步了解后再作解释吧. 编译一个tex文件来试试效果吧, 下面是tex文件的样例. \documentclass{article} \usepackage{&#60;cjkpackage&#62;} \begin{document} \begin{CJK}{&#60;encoding&#62;}{&#60;fontname&#62;} 你好! \end{CJK} \end{document} 其中&#60;cjkpackage&#62;可以是CJKutf8(源文件用UTF8编码)也可以是CJK(源文件用GBK编码), &#60;encoding&#62;是GBK或UTF8, 和上面的&#60;cjkpackage&#62;是对应的, 也就是是CJK那么必须是GBK. 而如果是CJKutf8,则就是UTF8. &#60;fontname&#62;就好说了，就是song, hei, fs,kai等等. 链接 &#124; 评论(10) &#124; 关于我 本站原创作品在署名-非商业性使用-相同方式共享 3.0版权协议下发布，转载请注明出处。 &#169; 2007-2009 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh" target="_blank"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p>让TeX支持中文不是一件容易的事, 但我终于找到了一个简单的办法(应该说是傻瓜办法).</p>
<p>安装TeX Live和CJK. 在源里选择texlive, latex-cjk-chinese(如果需要日文和韩文支持, 那么选择latex-cjk-all)安装.</p>
<p>然后下载"YueWang-zhfonts-final_1.01.tar.bz2", 这是YueWang制作的TeX Live 2007使用的字体包, 有207M. 教育网里可以在<a href="http://run.hit.edu.cn/search.php?IP=207.46.92.19&#038;Site=&#038;UseVip=&#038;SortType=&#038;String=YueWang-zhfonts-final_1.01.tar.bz2&#038;Type=">这里</a>下载, 教育网外可以在<a href="http://bj.soulinfo.com/~hugang/tex/tex2007/YueWang-zhfonts-final_1.01.tar.bz2">这里</a>下载. 顺便分享一个很好用的FTP搜索引擎, <a href="http://run.hit.edu.cn/" target="_blank">http://run.hit.edu.cn/</a>.</p>
<p>然后将解压后文件夹内的两个文件夹移动到你的Home目录里, 并在目录名前分别加 '.'(点号). 好了, 大功告成. 但根据安装说明 "如果不行, 请把~/.texlive2007/texmf-var/fonts/map/dvips中的所有map給enable了.", 我不是很了解这些, 等我进一步了解后再作解释吧.</p>
<p>编译一个tex文件来试试效果吧, 下面是tex文件的样例.</p>
<p><code>\documentclass{article}<br />
\usepackage{&lt;cjkpackage&gt;}<br />
\begin{document}<br />
\begin{CJK}{&lt;encoding&gt;}{&lt;fontname&gt;}<br />
你好!<br />
\end{CJK}<br />
\end{document}</code></p>
<p>其中&lt;cjkpackage&gt;可以是CJKutf8(源文件用UTF8编码)也可以是CJK(源文件用GBK编码), &lt;encoding&gt;是GBK或UTF8, 和上面的&lt;cjkpackage&gt;是对应的, 也就是是CJK那么必须是GBK. 而如果是CJKutf8,则就是UTF8. &lt;fontname&gt;就好说了，就是song, hei, fs,kai等等.</p>
<a href="http://aifreedom.com/technology/113" title="链接">链接</a> | <a href="http://aifreedom.com/technology/113#comments" title="评论">评论(10)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/113/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Emacs快捷键列表</title>
		<link>http://aifreedom.com/technology/112#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=emacs%25e5%25bf%25ab%25e6%258d%25b7%25e9%2594%25ae%25e5%2588%2597%25e8%25a1%25a8</link>
		<comments>http://aifreedom.com/technology/112#comments</comments>
		<pubDate>Wed, 20 Aug 2008 18:08:51 +0000</pubDate>
		<dc:creator>Ai.Freedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[快捷键]]></category>

		<guid isPermaLink="false">http://aifreedom.com/mylife/112</guid>
		<description><![CDATA[本文在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com C = Control M = Meta = Alt &#124; Esc Del = Backspace 基本快捷键(Basic) C-x C-f "find"文件, 即在缓冲区打开/新建一个文件 C-x C-s 保存文件 C-x C-w 使用其他文件名另存为文件 C-x C-v 关闭当前缓冲区文件并打开新文件 C-x i 在当前光标处插入文件 C-x b 新建/切换缓冲区 C-x C-b 显示缓冲区列表 C-x k 关闭当前缓冲区 C-z 挂起emacs C-x C-c 关闭emacs 光标移动基本快捷键(Basic Movement) C-f 后一个字符 C-b 前一个字符 C-p 上一行 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>本文在</strong><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh"><strong>署名-非商业性使用-相同方式共享 3.0</strong></a><strong>版权协议下发布, 转载请注明出自</strong><a href="http://aifreedom.com/"><strong>aifreedom.com</strong></a></p>
<p>C = Control<br />
M = Meta = Alt | Esc<br />
Del = Backspace</p>
<p><strong>基本快捷键(Basic)</strong><br />
C-x C-f "find"文件, 即在缓冲区打开/新建一个文件<br />
C-x C-s 保存文件<br />
C-x C-w 使用其他文件名另存为文件<br />
C-x C-v 关闭当前缓冲区文件并打开新文件<br />
C-x i 在当前光标处插入文件<br />
C-x b 新建/切换缓冲区<br />
C-x C-b 显示缓冲区列表<br />
C-x k 关闭当前缓冲区<br />
C-z 挂起emacs<br />
C-x C-c 关闭emacs</p>
<p><strong>光标移动基本快捷键(Basic Movement)</strong><br />
C-f 后一个字符<br />
C-b 前一个字符<br />
C-p 上一行<br />
C-n 下一行<br />
M-f 后一个单词<br />
M-b 前一个单词<br />
C-a 行首<br />
C-e 行尾<br />
C-v 向下翻一页<br />
M-v 向上翻一页<br />
M-&lt; 到文件开头<br />
M-&gt; 到文件末尾</p>
<p><strong>编辑(Editint)</strong><br />
M-n 重复执行后一个命令n次<br />
C-u 重复执行后一个命令4次<br />
C-u n 重复执行后一个命令n次<br />
C-d 删除(delete)后一个字符<br />
M-d 删除后一个单词<br />
Del 删除前一个字符<br />
M-Del 删除前一个单词<br />
C-k 移除(kill)一行</p>
<p>C-Space 设置开始标记 (例如标记区域)<br />
C-@ 功能同上, 用于C-Space被操作系统拦截的情况<br />
C-w 移除(kill)标记区域的内容<br />
M-w 复制标记区域的内容<br />
C-y 召回(yank)复制/移除的区域/行<br />
M-y 召回更早的内容 (在kill缓冲区内循环)<br />
C-x C-x 交换光标和标记</p>
<p>C-t 交换两个字符的位置<br />
M-t 交换两个单词的位置<br />
C-x C-t 交换两行的位置<br />
M-u 使从光标位置到单词结尾处的字母变成大写<br />
M-l 与M-u相反<br />
M-c 使从光标位置开始的单词的首字母变为大写</p>
<p><strong>重要快捷键(Important)</strong><br />
C-g 停止当前运行/输入的命令<br />
C-x u 撤销前一个命令<br />
M-x revert-buffer RETURN (照着这个输入)撤销上次存盘后所有改动<br />
M-x recover-file RETURN 从自动存盘文件恢复<br />
M-x recover-session RETURN 如果你编辑了几个文件, 用这个恢复</p>
<p><strong>在线帮助(Online-Help)</strong><br />
C-h c 显示快捷键绑定的命令<br />
C-h k 显示快捷键绑定的命令和它的作用<br />
C-h l 显示最后100个键入的内容<br />
C-h w 显示命令被绑定到哪些快捷键上<br />
C-h f 显示函数的功能<br />
C-h v 显示变量的含义和值<br />
C-h b 显示当前缓冲区所有可用的快捷键<br />
C-h t 打开emacs教程<br />
C-h i 打开info阅读器<br />
C-h C-f 显示emacs FAQ<br />
C-h p 显示本机Elisp包的信息</p>
<p><strong>搜索/替换(Seach/Replace)</strong><br />
C-s 向后搜索<br />
C-r 向前搜索<br />
C-g 回到搜索开始前的位置(如果你仍然在搜索模式中)<br />
M-% 询问并替换(query replace)</p>
<p>Space或y 替换当前匹配<br />
Del或n 不要替换当前匹配<br />
. 仅仅替换当前匹配并退出(替换)<br />
, 替换并暂停(按Space或y继续)<br />
! 替换以下所有匹配<br />
^ 回到上一个匹配位置<br />
RETURN或q 退出替换</p>
<p><strong>使用正则表达式(Regular expression)搜索/替换</strong><br />
可在正则表达式中使用的符号:<br />
^ 行首<br />
$ 行尾<br />
. 单个字符<br />
.* 任意多个(包括没有)字符<br />
\&lt; 单词开头<br />
\&gt; 单词结尾<br />
[] 括号中的任意一个字符(例如[a-z]表示所有的小写字母)</p>
<p>M C-s RETURN 使用正则表达式向后搜索<br />
M C-r RETURN 使用正则表达式向前搜索<br />
C-s 增量搜索<br />
C-s 重复增量搜索<br />
C-r 向前增量搜索<br />
C-r 重复向前增量搜索<br />
M-x query-replace-regexp 使用正则表达式搜索并替换</p>
<p><strong>窗口命令(Window Commands)</strong><br />
C-x 2 水平分割窗格<br />
C-x 3 垂直分割窗格<br />
C-x o 切换至其他窗格<br />
C-x 0 关闭窗格<br />
C-x 1 关闭除了光标所在窗格外所有窗格<br />
C-x ^ 扩大窗格<br />
M-x shrink-window 缩小窗格<br />
M C-v 滚动其他窗格内容<br />
C-x 4 f 在其他窗格中打开文件<br />
C-x 4 0 关闭当前缓冲区和窗格<br />
C-x 5 2 新建窗口(frame)<br />
C-x 5 f 在新窗口中打开文件<br />
C-x 5 o 切换至其他窗口<br />
C-x 5 0 关闭当前窗口</p>
<p><strong>书签命令(Bookmark commands)</strong><br />
C-x r m 在光标当前位置创建书签<br />
C-x r b 转到书签<br />
M-x bookmark-rename 重命名书签<br />
M-x bookmark-delete 删除书签<br />
M-x bookmark-save 保存书签<br />
C-x r l 列出书签清单</p>
<p>d 标记等待删除<br />
Del 取消删除标记<br />
x 删除被标记的书签<br />
r 重命名<br />
s 保存列表内所有书签<br />
f 转到当前书签指向的位置<br />
m 标记在多窗口中打开<br />
v 显示被标记的书签(或者光标当前位置的书签)<br />
t 切换是否显示路径列表<br />
w 显示当前文件路径<br />
q 退出书签列表</p>
<p>M-x bookmark-write 将所有书签导出至指定文件<br />
M-x bookmark-load 从指定文件导入书签</p>
<p><strong>Shell</strong><br />
M-x shell 打开shell模式<br />
C-c C-c 类似unix里的C-c(停止正在运行的程序)<br />
C-d 删除光标后一个字符<br />
C-c C-d 发送EOF<br />
C-c C-z 挂起程序(unix下的C-z)<br />
M-p 显示前一条命令<br />
M-n 显示后一条命令</p>
<p><strong>DIRectory EDitor (dired)</strong><br />
C-x d 打开dired<br />
C(大写C) 复制<br />
d 标记等待删除<br />
D 立即删除<br />
e或f 打开文件或目录<br />
g 刷新当前目录<br />
G 改变文件所属组(chgrp)<br />
k 从屏幕上的列表里删除一行(不是真的删除)<br />
m 用*标记<br />
n 光标移动到下一行<br />
o 在另一个窗格打开文件并移动光标<br />
C-o 在另一个窗格打开文件但不移动光标<br />
P 打印文件<br />
q 退出dired<br />
Q 在标记的文件中替换<br />
R 重命名文件<br />
u 移除标记<br />
v 显示文件内容<br />
x 删除有D标记的文件<br />
Z 压缩/解压缩文件<br />
M-Del 移除标记(默认为所有类型的标记)<br />
~ 标记备份文件(文件名有~的文件)等待删除<br />
# 标记自动保存文件(文件名形如#name#)等待删除<br />
*/ 用*标记所有文件夹(用C-u */n移除标记)<br />
= 将当前文件和标记文件(使用C-@标记而不是dired的m标记)比较<br />
M-= 将当前文件和它的备份比较<br />
! 对当前文件应用shell命令<br />
M-} 移动光标至下一个用*或D标记的文件<br />
M-{ 移动光标至上一个用*或D标记的文件<br />
% d 使用正则表达式标记文件等待删除<br />
% m 使用正则表达式标记文件为*<br />
+ 新建文件夹<br />
&gt; 移动光标至后一个文件夹<br />
&lt; 移动光标至前一个文件夹<br />
s 切换排序模式(按文件名/日期)</p>
<p>或许把这个命令归入这一类也很合适:<br />
M-x speedbar 打开一个独立的目录显示窗口</p>
<p><strong>Telnet</strong><br />
M-x telnet 打开telnet模式<br />
C-d 删除后一个字符或发送EOF<br />
C-c C-c 停止正在运行的程序(和unix下的C-c类似)<br />
C-c C-d 发送EOF<br />
C-c C-o 清除最后一个命令的输出<br />
C-c C-z 挂起正在运行的命令<br />
C-c C-u 移除前一行<br />
M-p 显示前一条命令</p>
<p><strong>Text</strong><br />
只能在text模式里使用<br />
M-s 使当前行居中<br />
M-S 使当前段落居中<br />
M-x center-region 使被选中的区域居中</p>
<p><strong>宏命令(Macro-commands)</strong><br />
C-x ( 开始定义宏<br />
C-x ) 结束定义宏<br />
C-x e 运行最近定义的宏<br />
M-n C-x e 运行最近定义的宏n次<br />
M-x name-last-kbd-macro 给最近定义的宏命名(用来保存)<br />
M-x insert-kbd-macro 将已命名的宏保存到文件<br />
M-x load-file 载入宏</p>
<p><strong>编程(Programming)</strong><br />
M C-\ 自动缩进光标和标记间的区域<br />
M-m 移动光标到行首第一个(非空格)字符<br />
M-^ 将当前行接到上一行末尾处<br />
M-; 添加缩进并格式化的注释<br />
C, C++和Java模式<br />
M-a 移动光标到声明的开始处<br />
M-e 移动光标到声明的结尾处<br />
M C-a 移动光标到函数的开始处<br />
M C-e 移动光标到函数的结尾处<br />
C-c RETURN 将光标移动到函数的开始处并标记到结尾处<br />
C-c C-q 根据缩进风格缩进整个函数<br />
C-c C-a 切换自动换行功能<br />
C-c C-d 一次性删除光标后的一串空格(greedy delete)</p>
<p>为了实现下面的一些技术, 你需要在保存源代码的目录里运行"etags<br />
*.c *.h *.cpp"(或者源代码的其他的扩展名)<br />
M-.(点) 搜索标签<br />
M-x tags-search ENTER 在所有标签里搜索(使用正则表达式)<br />
M-,(逗号) 在tags-search里跳至下一个匹配处<br />
M-x tags-query-replace 在设置过标签的所有文件里替换文本</p>
<p><strong>GDB(调试器)</strong><br />
M-x gdb 在另一个的窗格中打开gdb</p>
<p><strong>版本控制(Version Control)</strong><br />
C-x v d 显示当前目录下所有注册过的文件(show all registered files in this dir)<br />
C-x v = 比较不同版本间的差异(show diff between versions)<br />
C-x v u 移除上次提交之后的更改(remove all changes since last checkin)<br />
C-x v ~ 在不同窗格中显示某个版本(show certain version in different window)<br />
C-x v l 打印日志(print log)<br />
C-x v i 标记文件等待添加版本控制(mark file for version control add)<br />
C-x v h 给文件添加版本控制文件头(insert version control header into file)<br />
C-x v r 获取命名过的快照(check out named snapshot)<br />
C-x v s 创建命名的快照(create named snapshot)<br />
C-x v a 创建gnu风格的更改日志(create changelog file in gnu-style)</p>
<p>这份列表根据<a href="http://lpn.rnbhq.org/tools/xemacs/emacs_ref.html" target="_blank">http://lpn.rnbhq.org/tools/xemacs/emacs_ref.html</a>和我的使用经验翻译整理而来. 部分内容我不是很熟悉(比如Version Control), 在给出翻译的同时附上了英文, 这部分如果有错误, 请给我指出, 谢谢. 原列表中的部分命令/快捷键已经失效, 我在整理中发现的已修正, 但仍可能存在错误, 希望您发现后能指出来, 谢谢. 我使用的Emacs的版本是GNU Emacs 23.0.60.1 of 2008-03-20, 而因各人使用的Emacs版本不同, 命令/快捷键可能存在差异, 所以希望您在指出问题时能同时附上您的Emacs版本号.</p>
<a href="http://aifreedom.com/technology/112" title="链接">链接</a> | <a href="http://aifreedom.com/technology/112#comments" title="评论">评论(5)</a> | <a href="http://aifreedom.com/about" title="About">关于我</a>
<hr /><small><p><a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">

<img alt="Creative Commons License" style="border-width: 0pt;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png">

</a>本站原创作品在<a target="_blank" rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh">署名-非商业性使用-相同方式共享 3.0</a>版权协议下发布，转载请注明出处。<br />

&copy; 2007-2009 作者及版权归属: <a href="http://aifreedom.com/">Ai.Freedom</a> </small>]]></content:encoded>
			<wfw:commentRss>http://aifreedom.com/technology/112/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
