<?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>男单 618</title>
	<atom:link href="http://www.ai7.org/wp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ai7.org/wp</link>
	<description>生活象筒装的卫生纸，开始的时候怎么扯都不觉得在转，后来转的越来越快。</description>
	<lastBuildDate>Sun, 18 Sep 2016 07:50:49 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>搬家</title>
		<link>http://www.ai7.org/wp/html/995.html</link>
		<comments>http://www.ai7.org/wp/html/995.html#respond</comments>
		<pubDate>Sat, 16 Feb 2013 14:09:48 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=995</guid>
		<description><![CDATA[本Blog不再更新， 开始使用基于 Nikola 的 纯静态Blog 。]]></description>
				<content:encoded><![CDATA[<p>本Blog不再更新， 开始使用基于 <a href="http://nikola.ralsina.com.ar/">Nikola</a> 的 <a href="http://www.ai7.org/blog">纯静态Blog</a> 。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/995.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TikZ一例</title>
		<link>http://www.ai7.org/wp/html/981.html</link>
		<comments>http://www.ai7.org/wp/html/981.html#comments</comments>
		<pubDate>Sun, 03 Jun 2012 15:54:15 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[TikZ]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=981</guid>
		<description><![CDATA[12345678910111213141516171819202122232425\begin{tikzpic [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.ai7.org/wp/wp-content/uploads/2012/06/quxian-3.png"><img src="http://www.ai7.org/wp/wp-content/uploads/2012/06/quxian-3.png" alt="" title="quxian-3" width="377" height="319" class="aligncenter size-full wp-image-982" srcset="http://www.ai7.org/wp/wp-content/uploads/2012/06/quxian-3.png 377w, http://www.ai7.org/wp/wp-content/uploads/2012/06/quxian-3-300x253.png 300w" sizes="(max-width: 377px) 100vw, 377px" /></a></p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><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;">tikzpicture</span><span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">help lines</span><span style="color: #E02020; ">]</span> (0, 0) grid (6, 5);<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">thick</span><span style="color: #E02020; ">]</span> (5, 0) -- (0, 4);<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">thick</span><span style="color: #E02020; ">]</span> (1.2, 4.5) to <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">out=-85, in=141.34</span><span style="color: #E02020; ">]</span> (2.5,2);<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">thick</span><span style="color: #E02020; ">]</span> (2.5, 2) to <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">out=-38.66, in=160</span><span style="color: #E02020; ">]</span> (5.2, 0.5); <br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">thick</span><span style="color: #E02020; ">]</span> (2, 0) -- (0, 4);<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">thick</span><span style="color: #E02020; ">]</span> (0.3, 4.1) to <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">out=-85, in=141.34</span><span style="color: #E02020; ">]</span> (1.7,1.5);<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">thick</span><span style="color: #E02020; ">]</span> (1.7, 1.5) to <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">out=-38.66, in=160</span><span style="color: #E02020; ">]</span> (3.8, 0.3); <br />
<br />
<span style="color: #800000; font-weight: normal;">\node</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">left</span><span style="color: #E02020; ">]</span> (A) at (0, 4) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$A$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\node</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">below</span><span style="color: #E02020; ">]</span> (B) at (5, 0) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$B$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\node</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">below</span><span style="color: #E02020; ">]</span> (BB) at (2, 0) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$B^*$</span><span style="color: #E02020; ">}</span>;<br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">fill</span><span style="color: #E02020; ">]</span> (2.5, 2.0) circle <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">radius=0.05</span><span style="color: #E02020; ">]</span>;<br />
<span style="color: #800000; font-weight: normal;">\node</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">above right</span><span style="color: #E02020; ">]</span> (C) at (2.5, 2.0) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$C$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">fill</span><span style="color: #E02020; ">]</span> (0.65, 2.74) circle <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">radius=0.05</span><span style="color: #E02020; ">]</span>;<br />
<span style="color: #800000; font-weight: normal;">\node</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">right</span><span style="color: #E02020; ">]</span> (CC) at (0.65, 2.74) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$C^*$</span><span style="color: #E02020; ">}</span>;<br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">thick</span><span style="color: #E02020; ">]</span> (0, 3.26) -- (4.075, 0);<br />
<span style="color: #800000; font-weight: normal;">\node</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">left</span><span style="color: #E02020; ">]</span> (A2) at (0, 3.26) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$A'$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\node</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">below</span><span style="color: #E02020; ">]</span> (B2) at (4.075, 0) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$B'$</span><span style="color: #E02020; ">}</span>;<br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span> <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">dashed, ultra thick</span><span style="color: #E02020; ">]</span> (0, 2.74) -- (0.65, 2.74) -- (0.65, 0) node <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">below</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$x_1^*$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tikzpicture</span></span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/981.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>TikZ一例——万有引力示意图</title>
		<link>http://www.ai7.org/wp/html/973.html</link>
		<comments>http://www.ai7.org/wp/html/973.html#comments</comments>
		<pubDate>Sun, 03 Jun 2012 10:53:43 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[TikZ]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=973</guid>
		<description><![CDATA[1234567891011121314151617181920\def\R{4} \tikzstyle{blu [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.ai7.org/wp/wp-content/uploads/2012/06/wanyouyinli-1.png"><img src="http://www.ai7.org/wp/wp-content/uploads/2012/06/wanyouyinli-1.png" alt="" title="万有引力示意图" width="384" height="231" class="aligncenter size-full wp-image-979" srcset="http://www.ai7.org/wp/wp-content/uploads/2012/06/wanyouyinli-1.png 384w, http://www.ai7.org/wp/wp-content/uploads/2012/06/wanyouyinli-1-300x180.png 300w" sizes="(max-width: 384px) 100vw, 384px" /></a></p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdef"><span style="color: #800000;">def</span></a><span style="color: #800000; font-weight: normal;">\R</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">4<span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\tikzstyle</span><span style="color: #E02020; ">{</span>blueball<span style="color: #E02020; ">}</span>=<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">circle, thick, minimum size=1.5cm, draw=blue!80,fill=blue!20</span><span style="color: #E02020; ">]</span><br />
<span style="color: #800000; font-weight: normal;">\tikzstyle</span><span style="color: #E02020; ">{</span>greenball<span style="color: #E02020; ">}</span>=<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">circle, thick, minimum size=1.2cm, draw=green!80,fill=green!20</span><span style="color: #E02020; ">]</span><br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tikzpicture</span><span style="color: #E02020; ">}[</span><span style="color: #C08020; font-weight: normal;">&gt;=latex</span><span style="color: #E02020; ">]</span><br />
<span style="color: #800000; font-weight: normal;">\node</span> (m_1) at (0, 0) <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">blueball</span><span style="color: #E02020; ">]{</span><span style="color: #8020E0; font-weight: normal;">$m_1$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\node</span> (m_2) at (<span style="color: #800000; font-weight: normal;">\R</span>, 0) <span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">greenball</span><span style="color: #E02020; ">]{</span><span style="color: #8020E0; font-weight: normal;">$m_2$</span><span style="color: #E02020; ">}</span>;<br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">dashed</span><span style="color: #E02020; ">]</span> (0, -0.8) -- (0, -1.5);<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">dashed</span><span style="color: #E02020; ">]</span> (<span style="color: #800000; font-weight: normal;">\R</span>, -0.6) -- (<span style="color: #800000; font-weight: normal;">\R</span>, -1.5);<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">&lt; -, dashed</span><span style="color: #E02020; ">]</span> (0, -1.5) -- (0.45*<span style="color: #800000; font-weight: normal;">\R</span>, -1.5);<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">-&gt;, dashed</span><span style="color: #E02020; ">]</span> (0.55*<span style="color: #800000; font-weight: normal;">\R</span>, -1.5) -- (<span style="color: #800000; font-weight: normal;">\R</span>, -1.5);<br />
<span style="color: #800000; font-weight: normal;">\node</span> (l) at (0.5*<span style="color: #800000; font-weight: normal;">\R</span>, -1.5) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$r$</span><span style="color: #E02020; ">}</span>;<br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">-&gt;</span><span style="color: #E02020; ">]</span> (0.8, 0) -- (0.4*<span style="color: #800000; font-weight: normal;">\R</span>, 0);<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">&lt;-</span><span style="color: #E02020; ">]</span> (0.6*<span style="color: #800000; font-weight: normal;">\R</span>+0.2, 0) -- (<span style="color: #800000; font-weight: normal;">\R</span>-0.6, 0);<br />
<span style="color: #800000; font-weight: normal;">\node</span> (F1) at (1.1, 0.3) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$F_1$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\node</span> (F2) at (<span style="color: #800000; font-weight: normal;">\R</span>-1, 0.3) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$F_2$</span><span style="color: #E02020; ">}</span>;<br />
<br />
<span style="color: #800000; font-weight: normal;">\node</span> (G) at (0.5*<span style="color: #800000; font-weight: normal;">\R</span>, -2) <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$F_1=F_2=G<span style="color: #800000; font-weight: normal;">\displaystyle</span><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cfrac"><span style="color: #800000;">frac</span></a><span style="color: #E02020; ">{</span>m_1<span style="color: #800000; font-weight: normal;">\times</span> m_2}{r^2}$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tikzpicture</span></span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/973.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Beamer中使用常用的数学公式字体</title>
		<link>http://www.ai7.org/wp/html/959.html</link>
		<comments>http://www.ai7.org/wp/html/959.html#comments</comments>
		<pubDate>Wed, 07 Mar 2012 07:10:27 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[Beamer]]></category>
		<category><![CDATA[字体]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=959</guid>
		<description><![CDATA[Beamer中数学公式所默认使用的字体与一般文章中的不同，看上去很不习惯。 如果希望使用常用的数学公式字体，在 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Beamer中数学公式所默认使用的字体与一般文章中的不同，看上去很不习惯。<br />
如果希望使用常用的数学公式字体，在<font color="red">老版本</font>的Beamer中可以这样：</p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span style="color: #800000;">documentclass</span></a><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">mathserif</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">beamer</span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
<p>或</p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span style="color: #800000;">documentclass</span></a><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">professionalfont</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">beamer</span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
<p>新版本的Beamer放弃了这一做法，改用：</p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #800000; font-weight: normal;">\usefonttheme</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">onlymath</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">serif</span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
<p>或</p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #800000; font-weight: normal;">\usefonttheme</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">professionalfonts</span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
<p>啥时候改的我也不知道，今天编译的时候总是报Warning，就看了一下log文件。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/959.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>KTikZ中文设置</title>
		<link>http://www.ai7.org/wp/html/952.html</link>
		<comments>http://www.ai7.org/wp/html/952.html#respond</comments>
		<pubDate>Mon, 05 Mar 2012 09:24:06 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[KTikZ]]></category>
		<category><![CDATA[TikZ]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=952</guid>
		<description><![CDATA[KTikZ是一个编写TikZ脚本的辅助软件。主要功能有关键字提示、高亮、自动补全，作图结果实时预览等。初学Ti [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.hackenberger.at/blog/ktikz-editor-for-the-tikz-language/" title="KTikZ" target="_blank">KTikZ</a>是一个编写TikZ脚本的辅助软件。主要功能有关键字提示、高亮、自动补全，作图结果实时预览等。初学TikZ的时候用一下，还是很方便的。<br />
<a href="http://www.ai7.org/wp/wp-content/uploads/2012/03/ktikz-screenshot.jpg"><img src="http://www.ai7.org/wp/wp-content/uploads/2012/03/ktikz-screenshot-300x233.jpg" alt="" title="ktikz-screenshot" width="300" height="233" class="aligncenter size-medium wp-image-953" srcset="http://www.ai7.org/wp/wp-content/uploads/2012/03/ktikz-screenshot-300x233.jpg 300w, http://www.ai7.org/wp/wp-content/uploads/2012/03/ktikz-screenshot.jpg 806w" sizes="(max-width: 300px) 100vw, 300px" /></a><br />
但是还有几个问题，都跟中文有关：<br />
1. <del datetime="2012-03-05T14:11:17+00:00">不支持中文，输入、显示都没有问题，但是一旦保存退出再打开，就乱码了。不知道是什么编码，肯定用的不是utf8。如果图片中有中文，千万要小心。</del>（更新：升级到svn版就没有这个问题了)<br />
2. 默认用的是pdflatex进行编译，直接生成pdf后再预览，如果想用xelatex，可以在配置中直接设置。但是这样做并不能得到正确的结果，因为KTikZ默认的模板中，用到了preview这个包（这个包使得导出的图片没有多余空白），并且指定编译器是pdftex系列，所以会有问题。这个问题和下面的问题一起通过修改默认模板的方式解决。<br />
3. 图片不支持中文标注。TikZ对中文的支持非常好，一般在文章中作图时，中文都没有问题，主要原因还是KTikZ用的模板没考虑中文。</p>
<p>KTikZ可以直接指定模板，默认的模板放在/usr/share/apps/ktikz/templates下（archlinux环境，其他发行版类似）。为了保险，复制一份到自己的home目录里再修改。<br />
以template_example.pgs为例，改成下面这样，就支持中文标注和xelatex了，有变动的行加了注释。</p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span style="color: #800000;">documentclass</span></a><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">article<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">adobefonts</span>]{ctex</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">%支持中文就靠这一行了</span><br />
<span style="color: #2C922C; font-style: italic;">%\usepackage{mathptmx} %这一行是指定公式所用的字体，我看着不习惯，就去掉了</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">tikz</span><span style="color: #E02020; ">}</span><br />
<span style="color: #2C922C; font-style: italic;">%\usepackage{color}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">active,xetex,tightpage</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">preview</span><span style="color: #E02020; ">}</span> <span style="color: #2C922C; font-style: italic;">%这一行有改动，将pdftex换成xetex</span><br />
<span style="color: #800000; font-weight: normal;">\PreviewEnvironment</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;"><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">tikzpicture<span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\PreviewEnvironment</span>[</span><span style="color: #E02020; ">]{</span>pgfpicture<span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\DeclareSymbolFont</span><span style="color: #E02020; ">{</span>symbolsb<span style="color: #E02020; ">}{</span>OMS<span style="color: #E02020; ">}{</span>cmsy<span style="color: #E02020; ">}{</span>m<span style="color: #E02020; ">}{</span>n<span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\SetSymbolFont</span><span style="color: #E02020; ">{</span>symbolsb<span style="color: #E02020; ">}{</span>bold<span style="color: #E02020; ">}{</span>OMS<span style="color: #E02020; ">}{</span>cmsy<span style="color: #E02020; ">}{</span>b<span style="color: #E02020; ">}{</span>n<span style="color: #E02020; ">}</span><br />
<span style="color: #800000; font-weight: normal;">\DeclareSymbolFontAlphabet</span><span style="color: #E02020; ">{</span><span style="color: #800000; font-weight: normal;">\mathcal</span><span style="color: #E02020; ">}{</span>symbolsb<span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span><span style="color: #E02020; ">}</span><br />
&lt;&gt;<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
<p>顺便贴上今天下午作的图和源码：<br />
<a href="http://www.ai7.org/wp/wp-content/uploads/2012/03/zg1.png"><img src="http://www.ai7.org/wp/wp-content/uploads/2012/03/zg1-300x225.png" alt="" title="zg1" width="300" height="225" class="aligncenter size-medium wp-image-954" srcset="http://www.ai7.org/wp/wp-content/uploads/2012/03/zg1-300x225.png 300w, http://www.ai7.org/wp/wp-content/uploads/2012/03/zg1.png 519w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #800000; font-weight: normal;">\usetikzlibrary</span><span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;">decorations.markings<span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tikzpicture</span></span><span style="color: #E02020; ">}[</span>x=4cm,y=4cm, decoration=<span style="color: #E02020; ">{</span><br />
markings,<span style="color: #2C922C; font-style: italic;">%</span><br />
mark=at position 0.5 with<span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #800000; font-weight: normal;">\arrowreversed</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">black</span><span style="color: #E02020; ">]{</span>latex<span style="color: #E02020; ">}</span>;}</span><span style="color: #E02020; ">}]</span> <span style="color: #2C922C; font-style: italic;">%stealth</span><br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span>(0, 0) node<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">below left</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span><span style="color: #2020C0; font-weight: normal;"><span style="color: #8020E0; font-weight: normal;">$O$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">-latex</span><span style="color: #E02020; ">]</span> (0,0) --node<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">below</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$<span style="color: #800000; font-weight: normal;">\sqrt</span>{-k/b}$</span><span style="color: #E02020; ">}</span> (1.125,0) node<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">right=3, below</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$x(t)$</span><span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">-latex</span><span style="color: #E02020; ">]</span> (0,0) --node<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">left</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$<span style="color: #800000; font-weight: normal;">\sqrt</span>{k/a}$</span><span style="color: #E02020; ">}</span> (0,1.125) node<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">left=-1</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$y(t)$</span><span style="color: #E02020; ">}</span>;<br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">postaction={decorate}, thick</span><span style="color: #E02020; ">]</span> (0, 0) -- (1, 1) node<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">above right</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span><span style="color: #8020E0; font-weight: normal;">$k=0$</span>，平局<span style="color: #E02020; ">}</span>;<br />
<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">postaction={decorate}, thick</span><span style="color: #E02020; ">]</span> (0, 0.3) parabola (0.4,0.5);<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">postaction={decorate}, thick</span><span style="color: #E02020; ">]</span> (0, 0.5) parabola (0.42,0.75);<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">postaction={decorate}, thick</span><span style="color: #E02020; ">]</span> (0, 0.7) parabola (0.41,0.95) node<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">above</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span><span style="color: #E02020; "><span style="color: #8020E0; font-weight: normal;">$k&amp;gt;0$</span></span>，乙方胜<span style="color: #E02020; ">}</span>;<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">postaction={decorate}, thick, rotate=-90</span><span style="color: #E02020; ">]</span> (0, 0.25) parabola (-0.4,0.5);<br />
<span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">postaction={decorate}, thick, rotate=-90</span><span style="color: #E02020; ">]</span> (0, 0.45) parabola (-0.42,0.75) node<span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">above right</span><span style="color: #E02020; ">]</span> <span style="color: #E02020; ">{</span>$k <span style="color: #800000; font-weight: normal;">\draw</span><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">postaction={decorate}, thick, rotate=-90</span><span style="color: #E02020; ">]</span> (0, 0.65) parabola (-0.41,0.95);<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">tikzpicture</span></span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/952.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zim的TeX公式中使用中文</title>
		<link>http://www.ai7.org/wp/html/943.html</link>
		<comments>http://www.ai7.org/wp/html/943.html#respond</comments>
		<pubDate>Sun, 11 Dec 2011 12:19:23 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[zim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=943</guid>
		<description><![CDATA[找到_Equation.tex模板文件，改成这样。 123456789101112131415161718\d [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>找到_Equation.tex模板文件，改成这样。</p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span style="color: #800000;">documentclass</span></a><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">12pt</span><span style="color: #E02020; ">]{</span><span style="color: #2020C0; font-weight: normal;">article<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cpagestyle"><span style="color: #800000;">pagestyle</span></a><span style="color: #E02020; ">{</span>empty<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">{</span>CJKutf8<span style="color: #E02020; ">}</span><br />
<br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">{</span>amssymb<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">{</span>amsmath<span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">\</span><a href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span style="color: #800000;">usepackage</span></a><span style="color: #E02020; ">[</span><span style="color: #C08020; font-weight: normal;">usenames</span><span style="color: #E02020; ">]{</span>color<span style="color: #E02020; ">}</span><br />
<br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span><span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">CJK</span>}{UTF8}{gbsn</span><span style="color: #E02020; ">}</span><br />
<br />
<span style="color: #2C922C; font-style: italic;">% No empty lines allowed in math block !</span><br />
<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;">align*</span></span><span style="color: #E02020; ">}</span><br />
<span style="color: #E02020; ">[</span><span style="color: #2C922C; font-style: italic;">% equation -%]</span><br />
<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;">align*</span><span style="color: #E02020; ">}</span><br />
<br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">CJK</span><span style="color: #E02020; ">}</span><br />
<span style="color: #C00000; font-weight: normal;">\end</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">document</span></span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
<p>插入时，用</p>
<div class="codecolorer-container latex vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="latex codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><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;">align*</span><span style="color: #E02020; ">}</span><br />
这里是中文<br />
<span style="color: #C00000; font-weight: normal;">\begin</span><span style="color: #E02020; ">{</span><span style="color: #0000D0; font-weight: normal;">align*</span></span><span style="color: #E02020; ">}</span></div></td></tr></tbody></table></div>
<p>来跳过align*环境。或者直接把模板文件中的align*环境去掉，但是这样在多数情况下不方便。</p>
<p>另外，如果要插入表格，也可以使用上面的方法跳过align*环境。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/943.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Homeland中谁是CIA内奸？</title>
		<link>http://www.ai7.org/wp/html/939.html</link>
		<comments>http://www.ai7.org/wp/html/939.html#comments</comments>
		<pubDate>Tue, 06 Dec 2011 06:21:04 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=939</guid>
		<description><![CDATA[Homeland第一季已经播了10集，说是还有两集这季就完了。第二季啥时候放还不知道。 CIA内部肯定有叛徒。 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.sho.com/site/homeland/home.sho">Homeland</a>第一季已经播了10集，说是还有两集这季就完了。第二季啥时候放还不知道。</p>
<p>CIA内部肯定有叛徒。这家伙害死了Lynne Reed（线人，沙特王子女友），放跑了Raqim（那个副教授），炸死了外交官。</p>
<p>如果他不准备在这一季暴露的话，有可能是还没有出现的人物，也就没办法猜了。否则，应该是已经出场的人物，而已经出场的CIA官员并不是太多。</p>
<p>根据Aileen Morgan接到的提醒电话，可以排除所有的女性（当然也有可能不是内奸直接打的电话，但是从Aileen接电话的情况看，这人是第一次打电话过来，所以很可能是内奸本人迫不得已直接打的电话）。已经出场的男性CIA官员主要有David（头儿），Saul，Danny Galvez（分析员，给Carrie开过几次车，站在Raqim家屋顶瞭望的那位），以及安装监听设备的一老一少。</p>
<p>安装监听设备的一老一少好象不是正式工，级别太低，不可能接触核心秘密，可以排除。Saul和Danny也可以排除，主要原因是Danny在Raqim家屋顶搜查无果时，Saul指示Danny使用望远镜瞭望，从而发现疑点，线索转向狙击手。如果两人有一人是内奸，不太可能找到这个疑点。</p>
<p>剩下的只有David了。不管什么线索，只有Carrie和Saul知道的时候，啥事儿没有，时不时有些进展。只要让David知道了，就会出意外。另外，David还让Brody见了那个看守，把刀片给了他。</p>
<p>想来想去，内奸最有可能是David。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/939.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>让Sage Notebook中的LaTeX环境支持中文</title>
		<link>http://www.ai7.org/wp/html/934.html</link>
		<comments>http://www.ai7.org/wp/html/934.html#comments</comments>
		<pubDate>Wed, 30 Nov 2011 11:58:30 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[sage]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=934</guid>
		<description><![CDATA[只需要修改$SAGE/devel/sage-main/build/sage/misc/latex.py，就可以 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>只需要修改$SAGE/devel/sage-main/build/sage/misc/latex.py，就可以让notebook中的latex环境支持中文。<br />
测试环境：Archlinux + Sage 4.7 + TeXLive 2011</p>
<ol>
<li>COMMON_HEADER字符串的最后添加”\\usepackage{CJKutf8}\n“</li>
<li>文件中有三处包含”\\begin{document}\n“的字符串（注释块中的不算），在其后添加”\\begin{CJK}{UTF8}{gbsn}\n\n“</li>
<li>文件中有三处包含&#8221;\n\\end{document}&#8221;的字符串（注释块中的不算），在其前面添加”\n\n\\end{CJK}\n“</li>
</ol>
<p>这样，就能在notebook的%latex环境中使用中文了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/934.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>KDE回收站没有空间的解决方法</title>
		<link>http://www.ai7.org/wp/html/932.html</link>
		<comments>http://www.ai7.org/wp/html/932.html#comments</comments>
		<pubDate>Thu, 03 Nov 2011 02:24:33 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/932.html</guid>
		<description><![CDATA[症状：无法删除文件，删除文件时提示“回收站已到达其最大容量！ 请手动清理回收站。”用Dolphin打开回收站， [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>症状：无法删除文件，删除文件时提示“回收站已到达其最大容量！ 请手动清理回收站。”用Dolphin打开回收站，没有任何文件，并且回收站所在的分区有足够空间。</p>
<p>一种可能的原因是：~/.local/share/Trash/metadata文件中Size选项所对应的数值太大。</p>
<p>解决方法：将~/.local/share/Trash/metadata文件备份后删除。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/932.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>一个新的支持latex的vim插件</title>
		<link>http://www.ai7.org/wp/html/925.html</link>
		<comments>http://www.ai7.org/wp/html/925.html#respond</comments>
		<pubDate>Fri, 01 Jul 2011 17:53:23 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[atp]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/925.html</guid>
		<description><![CDATA[Automatic (La)TeX Plugin for Vim (atp-vim)是一个新的支持LaTeX的 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p><a href="http://atp-vim.sourceforge.net/requirements.shtml">Automatic (La)TeX Plugin for Vim (atp-vim)</a>是一个新的支持LaTeX的插件。前些天刚发现时，bug还比较多，经常出错，现在的版本好多了。与latexsuite相比，有些新的功能很不错（毕竟06年以后latexsuite就没有更新过），推荐给喜欢LaTeX，VIM，Python的朋友。</p>
<p>完整的特性可以查阅官方的<a href="http://atp-vim.sourceforge.net/features.shtml">Feature List</a>，或者<a href="http://atp-vim.sourceforge.net/automatic-tex-plugin.html">手册</a>。下面几条是我比较喜欢的。</p>
<ul>
<li>正向查找。由vim中光标处直接跳至pdf相应位置处。</li>
<li>反向查找。由pdf跳转至vim相应源代码处。</li>
<li>清理中间文件。这个功能实现起来不难，但是有了总是方便一点，特别是对有洁癖的人。</li>
<li>补全命令也很丰富。</li>
</ul>
<p>总的来说，值得一试。</p>
<p>ps. 目前最新的测试版是9.6.7。从SF的记录来看，最早的版本是今年3月份发布的，上来就是9.1。莫非现在流行大版本号？</p>
<p>7月11日补充：如果源文件所在目录的路径中包含中文，则会出现很多问题，而且很诡异。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/925.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arch Linux升级系统内核后无法启动的处理</title>
		<link>http://www.ai7.org/wp/html/921.html</link>
		<comments>http://www.ai7.org/wp/html/921.html#respond</comments>
		<pubDate>Thu, 09 Jun 2011 04:47:28 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[内核]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/921.html</guid>
		<description><![CDATA[个人感觉Arch Linux是比较激进的一个发行版。早早将Python的默认版本升级到3.0，对待内核也是不留 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>个人感觉Arch Linux是比较激进的一个发行版。早早将Python的默认版本升级到3.0，对待内核也是不留余地。内核文件不区分版本号，都叫kernel26.img，因此每次升级内核，都会将老内核文件覆盖。一旦新内核有问题，麻烦就大了。</p>
<p>今天一开机，习惯性的pacman -Syu，和往常一样，有若干软件包需要升级，直接确认升级。最后才注意到内核也升级了。重启后，卡在加载Alsa的那一步，无法进入系统。折腾了一上午，以下方法可以避免重装。</p>
<ul>
<li>
<p>Arch Linux还是给自己留了一条后路。系统一般安装了lts版（应该是长期支持版本）的内核，也就是kernel-lts.img和vmlinuz26-lts，都在/boot目录下。如果没有安装这个包，建议立即安装，以备不时之需。可以在系统启动时，修改启动参数，选择使用lts版内核。Grub菜单出现后，按e修改启动参数，将kernel26.img换成kernel26-lts.img，将vmlinuz26换成vmlinuz26-lts，按b启动即可。或者在系统还是正常的时候，修改/boot/grub/menu.lst文件增加一个使用lts内核的启动项。</p>
</li>
<li>
<p>如果已经进不了系统，也没有安装lts内核，用Arch Linux系统盘启动或者其他方式启动，想办法加载原系统的/分区，修改/etc/rc.conf文件，将启动时报错的服务禁用后重启。我这次是alsa和hal与新内核不兼容，重启后进入系统。</p>
</li>
<li>
<p>后来在Arch Linux的wiki上看到另外一个方法：<a href="https://wiki.archlinux.org/index.php/Kernel_Panics_(%e7%ae%80%e4%bd%93%e4%b8%ad%e6%96%87)">https://wiki.archlinux.org/index.php/Kernel_Panics_(%e7%ae%80%e4%bd%93%e4%b8%ad%e6%96%87)</a>，但是我自己还没有尝试。</p>
</li>
</ul>
<p>为了防止以后出现类似问题，可以将kernel26和kernel26-headers加入pacman.conf的忽略包列表，这样在使用pacman -Syu时，这两个包就不会被升级了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/921.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Archlinux下安装HP LaserJet P1505打印机</title>
		<link>http://www.ai7.org/wp/html/920.html</link>
		<comments>http://www.ai7.org/wp/html/920.html#comments</comments>
		<pubDate>Sun, 05 Jun 2011 04:18:45 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[arch linux]]></category>
		<category><![CDATA[archlinux]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[HP LaserJet P1505]]></category>
		<category><![CDATA[hplip]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/920.html</guid>
		<description><![CDATA[1) 安装cups 123sudo pacman -S cups 修改/etc/rc.conf，在DAEMON [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>1) 安装cups</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo pacman -S cups<br />
<br />
修改/etc/rc.conf，在DAEMONS中添加cups</div></td></tr></tbody></table></div>

</pre>
<p>2) 安装hplip和hplip-plugin</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yaourt -S hplip-plugin<br />
<br />
（注：以上命令运行时，会自动安装hplip）</div></td></tr></tbody></table></div>

</pre>
<p>3) 启动cups</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">重启计算机或运行如下命令：<br />
<br />
sudo /etc/rc.d/cups start</div></td></tr></tbody></table></div>

</pre>
<p>4) 添加打印机</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">- 将打印机连接到电脑上，打开电源<br />
- 通过浏览器访问http://localhost:631<br />
- 进入Administration --&amp;gt; Add Printer，按提示输入系统管理员账号密码<br />
- 选择&quot;HP LaserJet P1505 USB CA2988Z HPLIP (HP LaserJet P1505)&quot;（其中的编号有可能不同），点击&quot;Continue&quot;<br />
- 修改打印机名称等信息后点击&quot;Continue&quot;<br />
- 在Model中，选择&quot;HP LaserJet p1505, hpcups 3.11.3, requires proprietary plugin (en)&quot;，点击&quot;Add Printer&quot;<br />
- 选择打印机默认设置选项后，点击&quot;Set Default Options&quot;</div></td></tr></tbody></table></div>

</pre>
<p>5) 下载Firmware</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">运行<br />
<br />
hp-toolbox<br />
<br />
（或在程序菜单选择HP打印机管理程序）<br />
<br />
在左边选择正确的设备，点击&quot;Download Firmware&quot;，再点击&quot;Download Firmware&quot;</div></td></tr></tbody></table></div>

</pre>
<p>6) 打印测试页</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">如果以上步骤正确，应该能够输出正确的打印结果。（我的机子上，使用cups的web管理界面打印出的测试页有方块，不知道是不是缺字体的原因。）</div></td></tr></tbody></table></div>

</pre>
<p>注：如果有问题，可以尝试将用户加入到lp组：sudo gpasswd -a yourusername lp</p>
<p>===========================</p>
<p>English Version</p>
<p>Install HP LaserJet P1505 printer under Archlinux</p>
<p>1) Install cups</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo pacman -S cups<br />
<br />
Modify /etc/rc.conf, add cups to DAEMONS.</div></td></tr></tbody></table></div>

</pre>
<p>2) Install hplip and hplip-plugin</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">yaourt -S hplip-plugin<br />
<br />
(Note: hplip will be installed automatically with this command)</div></td></tr></tbody></table></div>

</pre>
<p>3) Start cups</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Reboot your pc or run this command in command-line window:<br />
<br />
sudo /etc/rc.d/cups start</div></td></tr></tbody></table></div>

</pre>
<p>4) Add printer</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">- Connect the printer and power on.<br />
- Using web browser to access http://localhost:631<br />
- Click Administration --&amp;gt; Add Printer，and input root's information.<br />
- Select &quot;HP LaserJet P1505 USB CA2988Z HPLIP (HP LaserJet P1505)&quot; (the number may be diffenent), click &quot;Continue&quot;.<br />
- Modify the information or not and click &quot;Continue&quot;.<br />
- In &quot;Model&quot;, select &quot;HP LaserJet p1505, hpcups 3.11.3, requires proprietary plugin (en)&quot;, click &quot;Add Printer&quot;.<br />
- Select the default options, and click &quot;Set Default Options&quot;</div></td></tr></tbody></table></div>

</pre>
<p>5) Download Firmware</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">run this command<br />
<br />
hp-toolbox<br />
<br />
or select from the program menu.<br />
<br />
Select right device in the left coloum, click &quot;Download Firmware&quot;, and click &quot;Download Firmware&quot; again.</div></td></tr></tbody></table></div>

</pre>
<p>6) Print test paper</p>
<pre>

<div class="codecolorer-container text vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">It's done.</div></td></tr></tbody></table></div>

</pre>
<p>Note: can anyone help me to improve my poor English?</p>
<p>=============================</p>
<p>周五晚将ubuntu 11.04换成Archlinux，速度有提升，但是太折腾。每项设置都要看着wiki，开着google。目前感觉最困难的是声音和打印机。</p>
<p>alsa折腾很久都没有声音，换oss。有声音了，还挺大，但是插上耳机没有用，还是用喇叭放。又换回alsa，莫明其妙好了，也不知道是哪个地方的设置起作用了。</p>
<p>打印机也很麻烦，什么hplip了，foo2zjs了，直接安装了，自己编译了，反正能查到的，能折腾的，都试了一遍。周六凌晨终于能够打印了。睡了一觉起来，打印机又不干活了。又折腾了一天，总算成功了。为了保险，将所有相关的程序都删除，再重新安装，确认没有问题。</p>
<p>关键的步骤有三点：1、第4步添加打印机时，只能用cups的web管理界面添加，不能用HP的管理程序添加。用HP的程序添加时，总是会卡在下载plugin那一步，无法下载。2、Model一定要选对，其他的不行，至少在我的机子上不行。3、第5步，Firmware一定要下载，不下载打印机不干活。</p>
<p>相信以上步骤对于其他发行版下安装HP打印机也有一定的参考价值。</p>
<p>PS：知道第一次安装、配置会很难，但是没想到这么难！现在我知道为什么装了Archlinux的人都说，装了一次，就不用重装了，折腾不起啊！</p>
<p>2012年3月1日更新：<br />
如果安装好之后，不能正常打印，可以试试下面的技巧，或许能够解决问题。</p>
<ul>
<li>cups是否正常启动？如果能访问web管理界面，一般是正常的。网上有一种说法，说是cups依赖avahi-daemon这个系统服务，我不确定，实在不行也可以试试。</li>
<li>如果web管理界面中显示打印机是paused什么的，而不是Idle（正常待机状态显示Idle）的话，可以选择Resume Printer试试。</li>
<li>在web管理界面中的任何操作，如果问你用户名和密码，请填写root的密码。这一点请Ubuntu，Debian，Arch用户注意，平时常用的那个用户，有sudo权限也不行，一定要填root的信息。至少在我的机子上是这样的，也可能是我的用户组没有设置好。</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/920.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Python中更改程序运行目录为程序所在目录</title>
		<link>http://www.ai7.org/wp/html/917.html</link>
		<comments>http://www.ai7.org/wp/html/917.html#respond</comments>
		<pubDate>Thu, 26 May 2011 08:14:29 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=917</guid>
		<description><![CDATA[一般情况下不需要做这一步，程序运行时默认的运行目录是程序所在的目录，但是有部分IDE会更改这一设置。所以，可以 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>一般情况下不需要做这一步，程序运行时默认的运行目录是程序所在的目录，但是有部分IDE会更改这一设置。所以，可以添加以下代码：</p>
<div class="codecolorer-container python vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">os</span><br />
<br />
<span style="color: #dc143c;">os</span>.<span style="color: black;">chdir</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">abspath</span><span style="color: black;">&#40;</span><span style="color: #dc143c;">os</span>.<span style="color: black;">path</span>.<span style="color: black;">dirname</span><span style="color: black;">&#40;</span>__file__<span style="color: black;">&#41;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/917.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python处理pdf文件的包</title>
		<link>http://www.ai7.org/wp/html/916.html</link>
		<comments>http://www.ai7.org/wp/html/916.html#comments</comments>
		<pubDate>Thu, 12 May 2011 10:56:08 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[软件]]></category>
		<category><![CDATA[pdf文件读写]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/916.html</guid>
		<description><![CDATA[pyPdf 纯Python的PDF处理工具。 主页：http://pybrary.net/pyPdf/。 主要 [&#8230;]]]></description>
				<content:encoded><![CDATA[<ul>
<li><a href="http://pybrary.net/pyPdf/">pyPdf</a><br />
  纯Python的PDF处理工具。<br />
  主页：<a href="http://pybrary.net/pyPdf/">http://pybrary.net/pyPdf/</a>。<br />
  主要功能：</p>
<ul>
<li>读取文档信息（标题，作者，……）</li>
<li>逐页分割文件</li>
<li>逐页合并文件</li>
<li>裁剪页面</li>
<li>合并多个页面为一个页面</li>
<li>加密、解密PDF文件</li>
</ul>
</li>
<li>
<p><a href="http://www.reportlab.com/software/opensource/rl-toolkit/">ReportLab</a><br />
  强大的生成PDF文件的库。<br />
  主页：<a href="http://www.reportlab.com/software/opensource/rl-toolkit/">http://www.reportlab.com/software/opensource/rl-toolkit/</a>。<br />
  主要功能：</p>
<ul>
<li>创建专业的PDF文件</li>
<li>Real document layout engine (Platypus) （这个不知道怎么翻译，大概是很NB的页面布局引擎）</li>
<li>浮动对象，如段落，标题行，表格，图像，图形等</li>
<li>支持嵌入Type-1字体或TTF字体</li>
<li>支持亚洲，希伯来和阿拉伯字符</li>
<li>支持任何流行格式的位图图像</li>
<li>支持矢量图形</li>
<li>包括一个可重用的基本图形库</li>
<li>可扩展的widget库</li>
<li>Layed architecture, written in Python</li>
<li>包含简单示例和更复杂的工具</li>
<li>允许使用任何数据源</li>
<li>源代码完全公开</li>
<li>强大的社区支持</li>
<li>跨平台</li>
</ul>
</li>
<li>
<p><a href="http://www.unixuser.org/~euske/python/pdfminer/index.html">PDFMiner</a><br />
  主要用于分析PDF文本内容的工具。<br />
  主页：<a href="http://www.unixuser.org/~euske/python/pdfminer/index.html">http://www.unixuser.org/~euske/python/pdfminer/index.html</a><br />
  主要功能：</p>
<ul>
<li>纯Python（2.4以上版本）</li>
<li>解析，分析和转换PDF文档</li>
<li>支持PDF-1.7标准（几乎完美支持）</li>
<li>支持CJK语言和竖向书写</li>
<li>支持多种字体格式（Type1，TrueType，Type3和CID）</li>
<li>基本的加密支持（RC4）</li>
<li>PDF转HTML（一个简单的Web转换器）</li>
<li>摘要（TOC）抽取</li>
<li>标记抽取内容</li>
<li>重构原始布局</li>
</ul>
</li>
</ul>
<p>简单讲，如果只折腾现成的PDF文件，用pyPdf，如果要生成新内容的PDF文件用ReportLab，如果要分析现有PDF文件的内容，用PDFMiner。</p>
<p>不过，生成PDF方面，我更愿意使用LaTeX系列的工具，这样质量有保证，乱码之类的问题比较少。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/916.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Sage-多项式插值</title>
		<link>http://www.ai7.org/wp/html/909.html</link>
		<comments>http://www.ai7.org/wp/html/909.html#comments</comments>
		<pubDate>Mon, 04 Apr 2011 14:08:52 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[sage]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=909</guid>
		<description><![CDATA[http://www.sagenb.org/home/pub/2736/ 下载：]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.ai7.org/wp/wp-content/uploads/2011/04/interpolate1.png"><img src="http://www.ai7.org/wp/wp-content/uploads/2011/04/interpolate1-273x300.png" alt="" title="interpolate" width="273" height="300" class="aligncenter size-medium wp-image-911" srcset="http://www.ai7.org/wp/wp-content/uploads/2011/04/interpolate1-273x300.png 273w, http://www.ai7.org/wp/wp-content/uploads/2011/04/interpolate1-933x1024.png 933w, http://www.ai7.org/wp/wp-content/uploads/2011/04/interpolate1.png 1068w" sizes="(max-width: 273px) 100vw, 273px" /></a></p>
<p><a href="http://www.sagenb.org/home/pub/2736/">http://www.sagenb.org/home/pub/2736/</a><br />
下载：<a href="http://www.ai7.org/wp/wp-content/plugins/download-monitor/download.php?id=5" title="Downloaded 1031 times">Interpolation</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/909.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>使用Sage求最小二乘拟合曲线</title>
		<link>http://www.ai7.org/wp/html/907.html</link>
		<comments>http://www.ai7.org/wp/html/907.html#respond</comments>
		<pubDate>Sat, 26 Mar 2011 03:16:23 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[sage]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/907.html</guid>
		<description><![CDATA[1234R=&#91;&#91;-3,3&#93;,&#91;0,1&#93;,&#91;2,1&#93;,&#038; [&#8230;]]]></description>
				<content:encoded><![CDATA[<div class="codecolorer-container python vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="python codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">R<span style="color: #66cc66;">=</span><span style="color: black;">&#91;</span><span style="color: black;">&#91;</span>-<span style="color: #ff4500;">3</span><span style="color: #66cc66;">,</span><span style="color: #ff4500;">3</span><span style="color: black;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">0</span><span style="color: #66cc66;">,</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">2</span><span style="color: #66cc66;">,</span><span style="color: #ff4500;">1</span><span style="color: black;">&#93;</span><span style="color: #66cc66;">,</span><span style="color: black;">&#91;</span><span style="color: #ff4500;">4</span><span style="color: #66cc66;">,</span><span style="color: #ff4500;">3</span><span style="color: black;">&#93;</span><span style="color: black;">&#93;</span><br />
var<span style="color: black;">&#40;</span><span style="color: #483d8b;">'a,b,c'</span><span style="color: black;">&#41;</span><br />
model<span style="color: black;">&#40;</span>x<span style="color: black;">&#41;</span><span style="color: #66cc66;">=</span> a*x^<span style="color: #ff4500;">2</span>+b*x+c<br />
find_fit<span style="color: black;">&#40;</span>R<span style="color: #66cc66;">,</span>model<span style="color: black;">&#41;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/907.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sage Notebook服务器地址大全</title>
		<link>http://www.ai7.org/wp/html/904.html</link>
		<comments>http://www.ai7.org/wp/html/904.html#respond</comments>
		<pubDate>Thu, 24 Mar 2011 14:55:46 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[sage]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/904.html</guid>
		<description><![CDATA[赞一下西安工业大学！ 以下信息来自：Sage Math Sage官方地址： 主站: http://www.sa [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>赞一下西安工业大学！</p>
<p>以下信息来自：<a href="http://sage.xuepx.cn/index.php/%E9%A6%96%E9%A1%B5">Sage Math</a><br />
Sage官方地址：</p>
<ul>
<li>主站: <a href="http://www.sagenb.org/">http://www.sagenb.org/</a></li>
<li>服务器2：<a href="http://480.sagenb.org/">http://480.sagenb.org/</a></li>
<li>服务器3：<a href="http://nt.sagenb.org/">http://nt.sagenb.org/</a></li>
<li>服务器4：<a href="http://demo.sagenb.org/">http://demo.sagenb.org/</a></li>
<li>服务器5：<a href="http://demo2.sagenb.org/">http://demo2.sagenb.org/</a></li>
</ul>
<p>其他服务器</p>
<ul>
<li><a href="http://standalone.sagenb.org/pub/">http://standalone.sagenb.org/pub/</a></li>
<li><a href="http://www.sagenb.com/">http://www.sagenb.com/</a></li>
<li><a href="http://sage.math.canterbury.ac.nz/">http://sage.math.canterbury.ac.nz/</a></li>
<li><a href="https://sagenb.kaist.ac.kr:8022/">https://sagenb.kaist.ac.kr:8022/</a></li>
<li><a href="https://sagenb.kaist.ac.kr:8066/">https://sagenb.kaist.ac.kr:8066/</a></li>
<li><a href="http://math1.skku.ac.kr/">http://math1.skku.ac.kr/</a></li>
</ul>
<p>西安工业大学SAGE校内服务器</p>
<p><a href="https://sagenb.xuepx.cn:8000">https://sagenb.xuepx.cn:8000</a></p>
<p>============================</p>
<p>3月26日补充：<br />
<a href="https://clemix.clemson.edu:34567/">https://clemix.clemson.edu:34567/</a></p>
<p>4月13日补充：<br />
<a href="http://nb.hssagemath.org/">http://nb.hssagemath.org/</a></p>
<p>8月20日补充：<br />
<a href="http://www.shumo.com:8000">http://www.shumo.com:8000</a></p>
<p>11月30日补充：<br />
<a href="https://sage.openopt.org:8000/">https://sage.openopt.org:8000/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/904.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[译]VIM每日技巧：开始，中间，最后</title>
		<link>http://www.ai7.org/wp/html/901.html</link>
		<comments>http://www.ai7.org/wp/html/901.html#respond</comments>
		<pubDate>Thu, 24 Mar 2011 09:03:31 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[DailyVim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/901.html</guid>
		<description><![CDATA[Vim提供了很多方法在屏幕上快速移动。可能你想很快的把光标移动到屏幕的最上面，中间或是底部。在normal模式 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Vim提供了很多方法在屏幕上快速移动。可能你想很快的把光标移动到屏幕的最上面，中间或是底部。在normal模式下，只要按下面的快捷键即可：<br />
H = Home (屏幕顶部)<br />
M = Middle (屏幕中部)<br />
L = Last (屏幕底部）</p>
<p>本篇来源：<a href="http://dailyvim.blogspot.com/2008/02/home-middle-last.html">Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Home Middle Last</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/901.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[转]LaTeX技巧503：LaTeX的符号查找技巧</title>
		<link>http://www.ai7.org/wp/html/899.html</link>
		<comments>http://www.ai7.org/wp/html/899.html#respond</comments>
		<pubDate>Thu, 24 Mar 2011 08:25:28 +0000</pubDate>
		<dc:creator><![CDATA[amao]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[符号]]></category>
		<category><![CDATA[识别]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=899</guid>
		<description><![CDATA[原文地址：http://blog.sina.com.cn/wangzhaoli11 很多网友问及这样的问题，l [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>原文地址：http://blog.sina.com.cn/wangzhaoli11</p>
<p>很多网友问及这样的问题，latex输入的那些符号都需要命令，这些命令又记不住怎么办，我说，查手册《<a href="http://www.ctan.org/tex-archive/info/symbols/comprehensive/">symbols-a4.pdf</a>》当然，看手册还是觉得符号不好找。</p>
<p>那么我推荐下面的网站 <a title="http://detexify.kirelabs.org/classify.html" href="http://detexify.kirelabs.org/classify.html">http://detexify.kirelabs.org/classify.html</a></p>
<p>网站界面如下：左边手写输入 符号，右边便是识别出来 对应 手册的命令和要使用的宏包，非常方便。推荐 推荐<br />
<a href="http://www.ai7.org/wp/wp-content/uploads/2011/03/detexify.jpg"><img src="http://www.ai7.org/wp/wp-content/uploads/2011/03/detexify-300x151.jpg" alt="" title="detexify" width="300" height="151" class="aligncenter size-medium wp-image-902" srcset="http://www.ai7.org/wp/wp-content/uploads/2011/03/detexify-300x151.jpg 300w, http://www.ai7.org/wp/wp-content/uploads/2011/03/detexify.jpg 690w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/899.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Email自动应答查询器</title>
		<link>http://www.ai7.org/wp/html/895.html</link>
		<comments>http://www.ai7.org/wp/html/895.html#comments</comments>
		<pubDate>Sat, 05 Mar 2011 15:38:27 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/895.html</guid>
		<description><![CDATA[标题不是特别准确，我想要的是这么个东西，比如考试完了，学生以学号1234为主题，发Email到abc这个邮箱， [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>标题不是特别准确，我想要的是这么个东西，比如考试完了，学生以学号1234为主题，发Email到abc这个邮箱，系统收到邮件后，在数据库中查询到成绩后，回复学生。</p>
<p>有没有这样的软件？</p>
<p>或者有没有这样的Wordpress插件，可以查询指定数据表中的指定字段，匹配成功则返回对应的另一字段的值？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/895.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>[译]Vim每日技巧：最后编辑位置</title>
		<link>http://www.ai7.org/wp/html/894.html</link>
		<comments>http://www.ai7.org/wp/html/894.html#respond</comments>
		<pubDate>Sat, 05 Mar 2011 10:08:18 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[DailyVim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/894.html</guid>
		<description><![CDATA[有些Linux发行版中是默认设置，有些不是。我喜欢打开Vim时，会自动定位于上次退出时的编辑位置。在.vimr [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>有些Linux发行版中是默认设置，有些不是。我喜欢打开Vim时，会自动定位于上次退出时的编辑位置。在.vimrc文件中添加下面的命令即可</p>
<p>au BufReadPost * if line(&#8220;&#8216;\&#8221;&#8221;) > 0 &#038;&#038; line(&#8220;&#8216;\&#8221;&#8221;) < = line("$") | exe "normal g'\"" | endif 

本篇来源：<a href="http://dailyvim.blogspot.com/2008/02/last-file-location.html">Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Last File Location</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/894.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[译]Vim每日技巧：新的man</title>
		<link>http://www.ai7.org/wp/html/892.html</link>
		<comments>http://www.ai7.org/wp/html/892.html#respond</comments>
		<pubDate>Thu, 03 Mar 2011 14:04:45 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[DailyVim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=892</guid>
		<description><![CDATA[我读了很多manpage（*nix系统的帮助系统），并且我喜欢以强大、灵活的方式读。幸运的是，Vim完全能够胜 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>我读了很多manpage（*nix系统的帮助系统），并且我喜欢以强大、灵活的方式读。幸运的是，Vim完全能够胜任。</p>
<p>我的基本桌面系统是一个现代的Linux发行版，它默认使用utf-8。我把下面的命令添加到我的bashrc文件中（实际上是zshrc，但在bash中应该同样能用）。</p>
<p>function man<br />
{<br />
    /usr/bin/man $* | col -bp | iconv -c | view -c &#8216;set ft=man nomod nolist&#8217; &#8211;<br />
}</p>
<p>如果你用的是不支持utf-8的老系统，可以试试下面的命令：<br />
function man<br />
{<br />
    /usr/bin/man $* | col -b | view -c &#8216;set ft=man nomod nolist&#8217; &#8211;<br />
}</p>
<p>注意，上面的函数可能会修改你的shell.</p>
<p>本篇来源：<a href="http://dailyvim.blogspot.com/2008/02/new-man.html">Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: New Man</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/892.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>py2exe几点备注</title>
		<link>http://www.ai7.org/wp/html/888.html</link>
		<comments>http://www.ai7.org/wp/html/888.html#respond</comments>
		<pubDate>Mon, 28 Feb 2011 12:47:39 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[python]]></category>
		<category><![CDATA[py2exe]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/888.html</guid>
		<description><![CDATA[不支持import Image as IM这样的导入方式，也不支持from Image import xxx， [&#8230;]]]></description>
				<content:encoded><![CDATA[<ul>
<li>不支持import Image as IM这样的导入方式，也不支持from Image import xxx，只能是import Image。</li>
<li>如果是scipy.ndimage这样的二级库，也只能import scipy.ndimage。</li>
<li>如果源文件是utf-8编码，涉及到文件路径中有汉字的，可以使用filename=u&#8217;一个文件.txt&#8217;.encode(&#8216;gbk&#8217;)这样的方式进行转码。</li>
</ul>
<p>btw: 本文使用VimRepress发布，详情见：<a href="http://apt-blog.net/release-of-vimrepress_cn">Vim中写Wordpress博客 &#8211; VimRepress | apt-blog.net IT民工养成计划 PT博客</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/888.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[译]Vim每日技巧-Golf</title>
		<link>http://www.ai7.org/wp/html/887.html</link>
		<comments>http://www.ai7.org/wp/html/887.html#respond</comments>
		<pubDate>Sun, 27 Feb 2011 09:32:41 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[DailyVim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/887.html</guid>
		<description><![CDATA[今天早上一个朋友让我写一个Vim宏，保留双引号中的内容，而删除其余的所有文本。比如文件内容像这样： Autom [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>今天早上一个朋友让我写一个Vim宏，保留双引号中的内容，而删除其余的所有文本。比如文件内容像这样：<br />
Automotive<br />
Banking<br />
Biotech<br />
……<br />
处理后，应该是这样<br />
Automotive<br />
Banking<br />
Biotech<br />
……<br />
开始，我用下面的序列（忽略了保存宏的命令）<br />
df&#8221;f&#8221;d$j0 （9个字符）<br />
效果不错，不过我还想改的更短一些：<br />
df&#8221;f&#8221;D+ （7个字符）<br />
我想，这应该是我能想到的最短的方案了，但是：<br />
df&#8221;wD+ （6个字符）<br />
这个是最短的，但是我希望我是错的。</p>
<p>更新：<br />
我的朋友Chris Sutter提出了另外一种方案：<br />
di&#8221;Vp (5个字符）<br />
或者如果你还想跳到下一行：<br />
di&#8221;Vgp （6个字符）</p>
<p>网友在评论中给出的其他解决方案：<br />
:%s/^.*&#8221;\(.*\)&#8221;.*$/\1/   （长了点，但是不需要宏）</p>
<p>本篇来源：<a href="http://dailyvim.blogspot.com/2008/02/golf.html">Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Golf</a></p>
<p>译注：<br />
df&#8221;wD+这个有问题，当引号中的内容不是一个单词时，结果是错误的。</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=7acfc455-9c6f-85e1-8f94-2be7ad73fef8" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/887.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[译]Vim每日技巧&#8211;加、减</title>
		<link>http://www.ai7.org/wp/html/886.html</link>
		<comments>http://www.ai7.org/wp/html/886.html#respond</comments>
		<pubDate>Sun, 20 Feb 2011 01:42:53 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[DailyVim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/886.html</guid>
		<description><![CDATA[在normal模式下，将光标移动到一个数字上面，按ctrl+a加一，按ctrl+x减一。 本篇来源：Daily [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>在normal模式下，将光标移动到一个数字上面，按ctrl+a加一，按ctrl+x减一。</p>
<p>本篇来源：<a href="http://dailyvim.blogspot.com/2008/02/add-and-subtract.html">Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Add and Subtract</a></p>
<p>注：移动到数字上面之后，如果是先按3再按ctrl+a，则数字加3。</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=330e4f07-c660-81cd-95fb-d46d638a587e" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/886.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[译]Vim每日技巧-查找时忽略大小写</title>
		<link>http://www.ai7.org/wp/html/885.html</link>
		<comments>http://www.ai7.org/wp/html/885.html#respond</comments>
		<pubDate>Sat, 19 Feb 2011 06:17:21 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[DailyVim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/885.html</guid>
		<description><![CDATA[很多Vim用户是用:set ic和set noic来控制查找时是否区分大小写。其实可以在查找时，实时忽略大小写 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>很多Vim用户是用:set ic和set noic来控制查找时是否区分大小写。其实可以在查找时，实时忽略大小写，只需要在要查找的字符串前加\c，比如<br />
/\chello<br />
将忽略大小写，查找与hello匹配的字符串。</p>
<p>本篇来源：<a href="http://dailyvim.blogspot.com/2008/02/insensitive-search.html">Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Insensitive Search</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=204e5c8c-b28e-85ea-acc0-5b3c3941001c" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/885.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[译]Vim每日技巧-备份</title>
		<link>http://www.ai7.org/wp/html/884.html</link>
		<comments>http://www.ai7.org/wp/html/884.html#respond</comments>
		<pubDate>Fri, 18 Feb 2011 13:16:52 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[DailyVim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/884.html</guid>
		<description><![CDATA[你可以让Vim在保存任何文件前做备份。在.vimrc文件中添加 set backup &#8220;使用备份  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>你可以让Vim在保存任何文件前做备份。在.vimrc文件中添加<br />
set backup &#8220;使用备份<br />
set backupdir=/your/homedir/.vim/backup &#8220;指定保存备份文件的目录<br />
也可以设置到临时目录<br />
set backupdir=/your/homedir/.vim/temp &#8220;新的临时目录<br />
注意：需要事先在.vim目录中新建该目录。</p>
<p>本篇来源：<a href="http://dailyvim.blogspot.com/2008/01/back-it-up.html">Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Back It Up</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=603e0264-3554-8595-b8bf-c61f7b6dca0e" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/884.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[译]Vim每日技巧-使用Perl</title>
		<link>http://www.ai7.org/wp/html/883.html</link>
		<comments>http://www.ai7.org/wp/html/883.html#respond</comments>
		<pubDate>Thu, 17 Feb 2011 15:48:17 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[VIM]]></category>
		<category><![CDATA[DailyVim]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/883.html</guid>
		<description><![CDATA[如果你使用的vim在编译时加入了内嵌的Perl解释器，那么你就能用这个强大的语言扩展vim的功能。我通常是在v [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>如果你使用的vim在编译时加入了内嵌的Perl解释器，那么你就能用这个强大的语言扩展vim的功能。我通常是在vim中用Perl的正则表达式。比如你在编辑一个文件，在visual模式下选中文本，并且使用字符x替换所有的数字，用ex命令perldo很容易实现。<br />
:perldo s/\d/x/g<br />
请查阅<a href="http://perldoc.perl.org/perlre.html" target="_blank">http://perldoc.perl.org/perlre.html</a>和:help perldo来获得更多信息。</p>
<p>本篇来源：<a href="http://dailyvim.blogspot.com/2008/01/using-perl.html">Daily Vim: Text Editor Tips, Tricks, Tutorials, and HOWTOs: Using Perl</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=2231e55f-f6bc-850a-99fa-b5d3faf97811" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/883.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>备忘：非官方Python扩展库Win版二进制包下载网站</title>
		<link>http://www.ai7.org/wp/html/882.html</link>
		<comments>http://www.ai7.org/wp/html/882.html#respond</comments>
		<pubDate>Wed, 16 Feb 2011 05:16:38 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/html/882.html</guid>
		<description><![CDATA[主要是与科学计算相关的扩展库，有32和64位，主要支持2.x，部分包支持Python 3。 地址：Python [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>主要是与科学计算相关的扩展库，有32和64位，主要支持2.x，部分包支持Python 3。<br />
地址：<a href="http://www.lfd.uci.edu/%7Egohlke/pythonlibs/">Python Extension Packages for Windows &#8211; Christoph Gohlke</a></p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" alt="" src="http://img.zemanta.com/pixy.gif?x-id=b64c551b-f1b9-88fe-890b-0ce528e9384c" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/882.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>测试QuickLaTeX插件</title>
		<link>http://www.ai7.org/wp/html/880.html</link>
		<comments>http://www.ai7.org/wp/html/880.html#comments</comments>
		<pubDate>Thu, 10 Feb 2011 16:50:38 +0000</pubDate>
		<dc:creator><![CDATA[Admin]]></dc:creator>
				<category><![CDATA[LaTeX相关]]></category>

		<guid isPermaLink="false">http://www.ai7.org/wp/?p=880</guid>
		<description><![CDATA[据说可以添加公式了。试试 $$ E=mc^2$$ QuickLaTeX插件主页：http://www.holo [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>据说可以添加公式了。试试<br />
$$ E=mc^2$$</p>
<p>QuickLaTeX插件主页：<a href="http://www.holoborodko.com/pavel/quicklatex/">http://www.holoborodko.com/pavel/quicklatex/</a><br />
一篇介绍文章：<a href="http://www.texdev.net/2011/02/10/quicklatex-a-latex-plugin-for-wordpress/">http://www.texdev.net/2011/02/10/quicklatex-a-latex-plugin-for-wordpress/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ai7.org/wp/html/880.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
