<?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>aifreedom &#187; LaTeX</title>
	<atom:link href="http://aifreedom.com/tag/latex/feed" rel="self" type="application/rss+xml" />
	<link>http://aifreedom.com</link>
	<description>Just feel free as in freedom</description>
	<lastBuildDate>Fri, 30 Dec 2011 18:11:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>LaTeX 宏包小记 (2): listings</title>
		<link>http://aifreedom.com/technology/170#utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=latex-%25e5%25ae%258f%25e5%258c%2585%25e5%25b0%258f%25e8%25ae%25b0%25e4%25ba%258c-listings</link>
		<comments>http://aifreedom.com/technology/170#comments</comments>
		<pubDate>Sat, 01 Jan 2011 17:28:04 +0000</pubDate>
		<dc:creator>aifreedom</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Macro Packages]]></category>

		<guid isPermaLink="false">http://aifreedom.com/?p=170</guid>
		<description><![CDATA[本文及所附代码, 文件在署名-非商业性使用-相同方式共享 3.0版权协议下发布, 转载请注明出自aifreedom.com 新年第一篇 post, 祝所有的读者新年快乐(只是不知道这么久都没有更新, 是否还有读者). 去年一年严格地说只写了2篇日志, 新年赶紧补上一篇吧. 这个 宏包的介绍系列我会坚持把它写下去. 很高兴地看到周围有更多的同学和老师(对, 最新见到几位听说/用过 的老师了), 这让我有更大的兴趣和信心继续介绍和普及 的知识了. 再次警告: 是一个较难上手的软件, 而且在熟悉后可能会使你成为一个完美主义者并再也不愿意使用 Microsoft Word. 言归正传, 为 实现代码高亮的宏包不可谓不多, listings 是我比较熟悉和常用的一个. 这里稍稍总结一下 listings 常用的参数, 更多的配置选项可以在它的手册里查到. Getting started listings 可以在 CTAN 下载, 如果访问 CTAN 服务器的的速度太慢, 也可以在 CTeX 提供的 CTAN 镜像下载. CTAN 和 CRAN 的镜像可以分别在这里和这里查看. texlive 的各个版本里(至少是2008之后的各个版本里)都有这个宏包. 它的中文字体配置可以参见这篇日志. 如果你使用 texlive. 你可以首先试试编译下面的代码来检验你的 [...]]]></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>新年第一篇 post, 祝所有的读者新年快乐(只是不知道这么久都没有更新, 是否还有读者). 去年一年严格地说只写了2篇日志, 新年赶紧补上一篇吧.</p>
<p>这个 <span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span> 宏包的介绍系列我会坚持把它写下去. 很高兴地看到周围有更多的同学和老师(对, 最新见到几位听说/用过 <span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span> 的老师了), 这让我有更大的兴趣和信心继续介绍和普及 <span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span> 的知识了.</p>
<p>再次警告: <span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span> 是一个较难上手的软件, 而且在熟悉后可能会使你成为一个完美主义者并再也不愿意使用 Microsoft Word.</p>
<p>言归正传, 为 <span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span> 实现代码高亮的宏包不可谓不多, listings 是我比较熟悉和常用的一个. 这里稍稍总结一下 listings 常用的参数, 更多的配置选项可以在它的手册里查到.</p>
<h1>Getting started</h1>
<p>listings 可以在 <a href="http://www.ctan.org/tex-archive/macros/latex/contrib/listings/">CTAN 下载</a>, 如果访问 CTAN 服务器的的速度太慢, 也可以在 CTeX 提供的 <a href="http://ftp.ctex.org/mirrors/CTAN/macros/latex/contrib/listings/">CTAN 镜像</a>下载. CTAN 和 CRAN 的镜像可以分别在<a href="http://dante.ctan.org/mirmon/#cn">这里</a>和<a href="http://ftp.ctex.org/mirrors/CRAN/">这里</a>查看. texlive 的各个版本里(至少是2008之后的各个版本里)都有这个宏包. 它的中文字体配置可以参见<a href="http://aifreedom.com/technology/158">这篇日志</a>. 如果你使用 texlive. 你可以首先试试编译下面的代码来检验你的 listings 包是否安装成功了:</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">usepackage</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">listings</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: #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;">lstlisting</span></span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">language=C, label=lst:helloworld, caption=Helloworld, numbers=left, basicstyle=\<span style="color: #800000;">ttfamily</span></span><span style="color: #E02020; ">]</span>
int main()
<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">
    printf(&quot;Hello world!<span style="color: #800000; font-weight: normal;">\n</span>&quot;);
    return 0;
</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;">lstlisting</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;">document</span></span><span style="color: #E02020; ">}</span></pre></div></div>

<p>如果编译成功了, 那么你应该能看到如下图所示的文档.</p>
<p><img src="http://aifreedom.com/images/2011010201.png" alt="helloworld formatted by listings" /></p>
<p>第一眼看到这段代码我就觉得她有哪儿不对劲, 不过直到 yangyi 教主提醒我才发现它是用的 serif 字体排的代码, 难怪蛋疼.. 加上 basicstyle=\ttfamily 之后, <span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span> 就会用等宽字体排版了. 但由于LaTeX自带的Computer Modern Typewriter等宽字体没有粗体, 会造成看不出代码高亮的效果(因为默认的代码高亮效果是粗体). 但如果使用 XeLaTeX 并调用 Consolas 或者 Courier 之类带粗体的等宽字体, 就能得到很好的效果.</p>
<h1>Options</h1>
<p>listings 包提供了 \lstset 命令, 可以用来设置排版出的代码效果的各种选项. 命令的格式是</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\lstset</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">key=value</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>下面的代码是我常用的 listings 设置, 从中你可以看出来它的格式是 key = value.</p>

<div class="wp_syntax"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\lstset</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">numbers=none,
  numberstyle=<span style="color: #800000; font-weight: normal;">\scriptsize</span>,
  frame=none,
  flexiblecolumns=false,
  language=Python,
  basicstyle=<span style="color: #E02020; ">\</span><span style="color: #800000;">ttfamily</span><span style="color: #800000; font-weight: normal;">\small</span>,
  breaklines=true,
  extendedchars=true,
  escapechar=<span style="color: #800000; font-weight: normal;">\%</span>,
  texcl=true,
  showstringspaces=true,
  keywordstyle=<span style="color: #E02020; ">\</span><span style="color: #800000;">bfseries</span>,
  tabsize=4</span><span style="color: #E02020; ">}</span></pre></div></div>

<p>常用的设置我都在下面做了简要介绍, 更多的设置请查阅手册.</p>
<h2>Language</h2>
<p>这应该是最重要的参数了, 它决定了有哪些关键词需要高亮. listings 支持的语言有很多, C/C++, Python, Ruby, Lisp 等许多语言. 详细的支持语言及其标准名称见 <a href="http://mirrors.xmu.edu.cn/CTAN/macros/latex/contrib/listings/listings.pdf">lisitngs 文档</a> 第12页 Table 1.</p>
<p>如果想输入等宽的纯文本文件, 可以使用 "language=".</p>
<h2>Line Numbers</h2>
<p>listings 能显示代码的行号, 相关的 key 有 numbers, numberstyle, stepnumber, numbersep, firstnumber, lastnumber.</p>
<p>numbers 的值可以是 left, right, none, 分别代表了将行号放在代码的左边, 右边和不显示.</p>
<p>numberstyle 的值设置了行号的样式, 可以是 \tiny 等设置字体大小的命令或是设置字体风更的命令.</p>
<p>stepnumber 的值设置了每多少行显示一次行号.</p>
<p>其它的参数我很少用到, 就不一一介绍了. 还是 RTFM(Read The Fucking Manual) 吧.</p>
<h2>Frame</h2>
<p>这个命令能让代码周围显示边框. 它的值可以是 none|leftline|topline|bottomline|lines|single|shadowbox 中的任意一个(默认为none, 即没有边框).</p>
<h2>Escaping to LaTeX</h2>
<p>这个选项能让 listings 里的部分代码被 LaTeX 解析而不是原封不动地显示出来. 这个设置对我来说主要有两个用处, 一个是在注释里写上公式, 另一个是它能让 listings 中的中文能正确地排版.</p>
<p>texcl, 设置为 true 后能让代码中的注释按照设置的注释格式显示, 并被 LaTeX 解析后显示. 设置它之后就能在代码里正确显示中文了.</p>
<p>escapechar, 设置了代码中, 被哪个字符包围的部分由 LaTeX 解析后显示在文档里. 比如: escapechar=\% 能让被"%"包围的代码 escape.</p>
<p>escapeinside, 设置两个字符(可以是不同的字符), 被它们包围的字符会 escape, 如 escapeinside=''</p>
<p>为了避免出现错误, 在这个转义(escaping)的区域中, 不要使用任何 listings 的命令, 所有的环境(environment)都必须闭合, $符号必须成对出现.</p>
<h2>Floating</h2>
<p>这个选项能让 listing 成为浮动对象. 它的值可以是 tbph 的排列组合, 具体含义见The not so Short Introduction to LaTeX(<a href="http://www.ctan.org/tex-archive/info/lshort/english/lshort.pdf">en</a> | <a href="http://mirrors.xmu.edu.cn/CTAN/info/lshort/chinese/lshort-zh-cn.pdf">cn</a>) 2.12 Floating Bodies 章节. 它可以避免代码块被其他文字打断.</p>
<h2>Labels and Captions</h2>
<p>使用 label 可以设置标签供文档的其他部分引用, 使用 caption 可以设置 listing 的标题, 这个可以像前面的例子中那样设置. 同时, 你也可以注意到另一种设置 listings 配置的方法.</p>
<h2>lstinputlisting, 最后的命令</h2>
<p>lstinputlisting 这个命令在排版实验报告和作业文档时特别有用. 它可以将硬盘上的一个文件作为输入, 导入文档中. 这样, 当你修改了程序后, 只需重新编译 tex 文件即可更新文档. 享受过这项的功能的方便后, 我每次看到有人在写大作业报告时, 因为对代码做了细小改动而不得不重新排版报告时, 我都会不由自主地会心一笑.</p>
<a href="http://aifreedom.com/technology/170" title="链接">链接</a> | <a href="http://aifreedom.com/technology/170#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/170/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>LaTeX 宏包小记 (1): 用 prosper 制作幻灯片</title>
		<link>http://aifreedom.com/technology/162#utm_source=rss&#038;utm_medium=rss&#038;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>aifreedom</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"><div 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: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> Mere abstract statements
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> No example supporting the statement of reliability
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> Metaphor
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> But draw it out more
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</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></div></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 &amp;&amp; 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"><div class="code"><pre class="latex" style="font-family:monospace;"><span style="color: #E02020; ">\</span><span style="color: #800000;">documentclass</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: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">author</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\textsc</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>{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: #E02020; ">\</span><span style="color: #800000;">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;">textbf</span>{Key:</span><span style="color: #E02020; ">}</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> Not detailed
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> Not persuasive
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Provide specific details
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> How many major repairs?
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> Implicit topic sentence
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Too many irrelevant contents
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> Mere abstract statements
        <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> No example supporting the statement of reliability
        <span style="color: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> Metaphor
        <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> But draw it out more
        <span style="color: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> Shiny red year-old leftover, for a mere <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> Save money on insurance for being not worthwhile
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Only <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> Good gas mileage: <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">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;
<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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">economy</span><span style="color: #E02020; ">}</span>
    <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> A Toyota that passes the <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> When Boss got stuck with <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> The single time Toyota didn't start was a final exam day
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">economy</span><span style="color: #E02020; ">}</span>
    <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">emph</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">dependable</span><span style="color: #E02020; ">}</span>
    <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> <span style="color: #E02020; ">\</span><span style="color: #800000;">textbf</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: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> Like a well-worn glove
      <span style="color: #E02020; ">\</span><span style="color: #800000;">item</span> Know to the <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> Gas ``empty'' means <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</span> Front wheels invariably shake when going more than <span style="color: #E02020; ">\</span><span style="color: #800000;">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: #E02020; ">\</span><span style="color: #800000;">item</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;">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></div></div>

<a href="http://aifreedom.com/technology/162" title="链接">链接</a> | <a href="http://aifreedom.com/technology/162#comments" title="评论">评论(15)</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>15</slash:comments>
		</item>
		<item>
		<title>TeX Live 2008 安装 &amp; 配置中文支持 (下)</title>
		<link>http://aifreedom.com/technology/158#utm_source=rss&#038;utm_medium=rss&#038;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>aifreedom</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: #E02020; ">\</span><span style="color: #800000;">documentclass</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: #E02020; ">\</span><span style="color: #800000;">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><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: #E02020; ">\</span><span style="color: #800000;">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;">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="评论">评论(7)</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>7</slash:comments>
		</item>
		<item>
		<title>TeX Live 2008 安装 &amp; 配置中文支持 (上)</title>
		<link>http://aifreedom.com/technology/153#utm_source=rss&#038;utm_medium=rss&#038;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>aifreedom</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: #E02020; ">\</span><span style="color: #800000;">documentclass</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">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>WordPress插件 - mimeTeX</title>
		<link>http://aifreedom.com/technology/117#utm_source=rss&#038;utm_medium=rss&#038;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>aifreedom</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><span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_89a89e0981b83735997c42f3f5d93a6b.gif' style=' padding-bottom:1px;' class='tex' alt="\TeX" /></span>是Donald E. Knuth在1978年开始开发的一款用于排版他的著作《The Art of Computer Programming》的自由软件. Knuth为每一个发现Bug的用户提供奖励, 奖励金额从1美分开始, 并每年翻倍, 直到目前的327.68美元封顶. 但他却并未为此付出太多金钱, 因为<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_89a89e0981b83735997c42f3f5d93a6b.gif' style=' padding-bottom:1px;' class='tex' alt="\TeX" /></span>中的漏洞实在很少. <span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_89a89e0981b83735997c42f3f5d93a6b.gif' style=' padding-bottom:1px;' class='tex' alt="\TeX" /></span>最初的版本号是3.0, 每次更新后在版本号小数点后添加一位, 使它愈趋近于<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_4f08e3dba63dc6d40b22952c7a9dac6d.gif' style=' padding-bottom:2px;' class='tex' alt="\pi" /></span>, 现在的版本号是3.1415926. <span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span>是<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_89a89e0981b83735997c42f3f5d93a6b.gif' style=' padding-bottom:1px;' class='tex' alt="\TeX" /></span>的一个宏包, 它使<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_89a89e0981b83735997c42f3f5d93a6b.gif' style=' padding-bottom:1px;' class='tex' alt="\TeX" /></span>更方便易用. 由于LaTeX很方便排版, 尤其在处理复杂的表格和数学公式上极为突出, 它被广泛用于制作各种科技文献和出版物. 比如Knuth的《具体数学》(Concrete Mathematics)就是用TeX排版的, 许多大学也提供各自的毕业生论文LaTeX模板.</p>
<p>在GPL协议下发布的<a href="http://www.forkosh.com/mimetex.html" target="_blank">mimeTeX</a>, 是一个用于轻松地在网页中嵌入<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span>数学表达式的软件. 由张志强开发的<a href="http://wordpress.org/extend/plugins/latex/" target="_blank">mimeTeX for WordPress</a>是WordPress下调用mimeTeX的插入<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span>公式的插件. 如果有可能, 最好在自己的服务器上安装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>来看几个例子吧, 其实上面的<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span>就是调用mimeTeX显示的, 我输入的仅仅是\(\LaTeX\).</p>
<p>先来个简单的</p>
<p><span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c7676fdbf3e4c60be40b29b12b1aabb8.gif' style=' ' class='tex' alt="\Large x^2+y^2=z^2" /></span></p>
<p>还有<a href="http://aifreedom.com/entertainment/114" target="_blank">上次我提到的</a>那个表示化圆为方的式子, 谁告诉我下它究竟讲的什么</p>
<p><span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_e23ddc37f59ee18afa48025a657453b7.gif' style=' ' class='tex' alt="\Large \exists f\in\mathbb{P}^{[\mathbb{R}]}_{\infty},f(\sqrt{\pi})=0" /></span></p>
<p>更复杂一些的</p>
<p><span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_84027df9895b4d2e2d0afcb4dad587b2.gif' style=' ' class='tex' alt="\Large      e^x=\lim_{n\to\infty} \left(1+\frac~xn\right)^n" /></span></p>
<p><span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_6a9ca743b980f30d9ac21efc69831015.gif' style=' ' class='tex' alt="\Large A\ =\ \large\left(         \begin{array}{c.cccc}&1&2&\cdots&n\\         \hdash1&a_{11}&a_{12}&\cdots&a_{1n}\\         2&a_{21}&a_{22}&\cdots&a_{2n}\\         \vdots&\vdots&\vdots&\ddots&\vdots\\         n&a_{n1}&a_{n2}&\cdots&a_{nn}\end{array}\right)" /></span></p>
<p><span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c2a7d29d09d5a4d62e61b8ada2a3ff5d.gif' style=' ' 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}}         &-\frac{\nu_{xy}}{E_{\fs{+1}x}}         &-\frac{\nu_{\fs{+1}xz}}{E_{\fs{+1}x}}\\         -\frac{\nu_{yx}}{E_y}&\frac1{E_{y}}&-\frac{\nu_{yz}}{E_y}\\         -\frac{\nu_{\fs{+1}zx}}{E_{\fs{+1}z}}&         -\frac{\nu_{zy}}{E_{\fs{+1}z}}         &\frac1{E_{\fs{+1}z}}\end{array} & {\LARGE 0} \\         {\LARGE 0} & \begin{array}\frac1{G_{xy}}&&\\         &\frac1{G_{\fs{+1}xz}}&\\&&\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)" /></span></p>
<p>甚至可以画图</p>
<p><span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_a037a4490b226f0e990f16c48a615c93.gif' style=' ' 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\;\;\;}}~}" /></span></p>
<p>而且支持在评论时加入<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span>表达式, 试试吧!</p>
<p>记得要在<span class='MathJax_Preview'><img src='http://aifreedom.com/wp-content/plugins/latex/cache/tex_c51d7e23458ca0e7373a8ed6ab56b2b9.gif' style=' ' class='tex' alt="\LaTeX" /></span>表达式两端用<strong>两个$符号</strong>引起来!</p>
<a href="http://aifreedom.com/technology/117" title="链接">链接</a> | <a href="http://aifreedom.com/technology/117#comments" title="评论">评论(23)</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>23</slash:comments>
		</item>
		<item>
		<title>用最简单的方法让TeX Live支持中文</title>
		<link>http://aifreedom.com/technology/113#utm_source=rss&#038;utm_medium=rss&#038;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>aifreedom</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>
	</channel>
</rss>

