<?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>鬼の领地 &#187; LaTeX</title>
	<atom:link href="http://blog.upsuper.org/tag/latex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.upsuper.org</link>
	<description>the place where there are some ghost appearing...</description>
	<lastBuildDate>Wed, 19 Oct 2011 13:21:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>解决 Ubuntu 下 TexLive 不能正确安装的问题</title>
		<link>http://blog.upsuper.org/solve-the-problem-that-texlive-cannot-be-installed-properly-in-ubuntu/</link>
		<comments>http://blog.upsuper.org/solve-the-problem-that-texlive-cannot-be-installed-properly-in-ubuntu/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 13:47:09 +0000</pubDate>
		<dc:creator>upsuper</dc:creator>
				<category><![CDATA[雕虫小技]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.upsuper.org/?p=926</guid>
		<description><![CDATA[又想弄 LaTeX 了，OpenOffice.org 和 M$ Office 果然还是有点差距的，还不如用 LaTeX……不是据说还有一个“几乎可视化”的 LaTeX 编辑器？ 不过摆弄 LaTeX 果然还是不容易……真想不通，LaTeX 发展了这么长时间，为何不把这弄简单一点呢，就像 Linux 这样…… 不想下载和摆弄 TexLive 了，直接从 apt 里面安装，结果安装出现了下面错误提示： 1 2 3 4 5 6 7 updmap-sys failed. Output has been stored in /tmp/updmap.jh4rQYNc Please include this file if you report a bug. &#160; Sometimes, not accepting conffile updates in /etc/texmf/updmap.d causes updmap-sys [...]]]></description>
			<content:encoded><![CDATA[<p>又想弄 LaTeX 了，OpenOffice.org 和 M$ Office 果然还是有点差距的，还不如用 LaTeX……不是据说还有一个“几乎可视化”的 LaTeX 编辑器？</p>
<p>不过摆弄 LaTeX 果然还是不容易……真想不通，LaTeX 发展了这么长时间，为何不把这弄简单一点呢，就像 Linux 这样……<br />
<span id="more-926"></span><br />
不想下载和摆弄 TexLive 了，直接从 apt 里面安装，结果安装出现了下面错误提示：</p>

<div class="wp_codebox"><table><tr id="p9262"><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code" id="p926code2"><pre class="text" style="font-family:monospace;">updmap-sys failed. Output has been stored in
/tmp/updmap.jh4rQYNc
Please include this file if you report a bug.
&nbsp;
Sometimes, not accepting conffile updates in /etc/texmf/updmap.d
causes updmap-sys to fail.  Please check for files with extension
.dpkg-dist or .ucf-dist in this directory</pre></td></tr></table></div>

<p>因为是 tex-common 配置的时候出错，后面全部都不能正常安装，囧……</p>
<p>反复用 &#8211;purge 清除配置文件的方式卸载安装了好几遍，问题还是没有解决。最后我就干脆亲自排查 TexLive 的各个配置文件所在的文件夹。TexLive 似乎会用到 /usr/share/texmf、/usr/share/texmf-texlive、/var/lib/texmf 和 /etc/texmf 文件夹。开始我只知道前三个，然后发现 purge 以后就都没了，最后才知道还有个 /etc/texmf。删掉这个文件夹，再次重装，终于成功完成了！</p>
<p>我个人强烈希望能有一个简单一点的类似排版系统，LaTeX 实在太过复杂了……</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.upsuper.org/solve-the-problem-that-texlive-cannot-be-installed-properly-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP空间也做LaTeX公式显示</title>
		<link>http://blog.upsuper.org/php-space-show-latex-formula/</link>
		<comments>http://blog.upsuper.org/php-space-show-latex-formula/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 02:43:21 +0000</pubDate>
		<dc:creator>upsuper</dc:creator>
				<category><![CDATA[探究学习]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.upsuper.org/?p=713</guid>
		<description><![CDATA[原来一直以为只有自己的机子安装了 LaTeX、dvips 等等这些软件才能显示 LaTeX 公式。 今天上网查找了一下，发现不是这样的，原来比较基本的 LAMP 空间也可以这样了，这完全得益于一个叫做 mimeTeX 的开源软件。虽然这个软件生成的没有 LaTeX 生成的漂亮，不过还是比 Word 的公式编辑器生成的漂亮，最重要的是可以在网站上使用！ 要安装这个，有一个比较必要的前提，就是你的网站必须不能运行在 PHP 的安全模式下，还有就是网站必须允许是用 .htaccess 配置文件，否则可能不行……不是……是肯定不行……另外权限设置比较严格的服务器上注意把相应权限设置妥当。 如果服务器是 Linux 平台下的，首先，我们要下载这个软件，源代码可以点击这里下载：mimetex.zip 这里推荐解压后直接上传整个文件夹的代码上去，因为最好可以在服务器端编译，而非客户端编译好，否则平台可能不兼容。在解压出来的文件目录中新建一个 complie.php 文件，其中输入 1 2 3 &#60;?php echo `cc -DAA mimetex.c gifsave.c -lm -o mimetex.cgi &#62; cc1 2&#62; cc2`; ?&#62; 然后通过浏览器访问这个 PHP，再查看 cc1 和 cc2 文件。如果不出意外，cc1 和 cc2 应该都是没有内容的空文件。 接下来，把这个 mimetex.cgi 移动到你想要的文件夹，并给它加上执行权限（不然可能出现 500 [...]]]></description>
			<content:encoded><![CDATA[<p>原来一直以为只有自己的机子安装了 LaTeX、dvips 等等这些软件才能显示 LaTeX 公式。</p>
<p>今天上网查找了一下，发现不是这样的，原来比较基本的 LAMP 空间也可以这样了，这完全得益于一个叫做 mimeTeX 的开源软件。虽然这个软件生成的没有 LaTeX 生成的漂亮，不过还是比 Word 的公式编辑器生成的漂亮，最重要的是可以在网站上使用！<br />
<span id="more-713"></span><br />
要安装这个，有一个比较必要的前提，就是你的网站必须不能运行在 PHP 的安全模式下，还有就是网站必须允许是用 .htaccess 配置文件，否则可能不行……不是……是肯定不行……另外权限设置比较严格的服务器上注意把相应权限设置妥当。</p>
<p>如果服务器是 Linux 平台下的，首先，我们要下载这个软件，源代码可以点击这里下载：<a href="http://www.forkosh.com/mimetex.zip">mimetex.zip</a><br />
这里推荐解压后直接上传整个文件夹的代码上去，因为最好可以在服务器端编译，而非客户端编译好，否则平台可能不兼容。在解压出来的文件目录中新建一个 complie.php 文件，其中输入</p>

<div class="wp_codebox"><table><tr id="p7137"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p713code7"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">echo</span> `cc <span style="color: #339933;">-</span>DAA mimetex<span style="color: #339933;">.</span>c gifsave<span style="color: #339933;">.</span>c <span style="color: #339933;">-</span>lm <span style="color: #339933;">-</span>o mimetex<span style="color: #339933;">.</span>cgi <span style="color: #339933;">&gt;</span> cc1 <span style="color: #cc66cc;">2</span><span style="color: #339933;">&gt;</span> cc2`<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>然后通过浏览器访问这个 PHP，再查看 cc1 和 cc2 文件。如果不出意外，cc1 和 cc2 应该都是没有内容的空文件。<br />
接下来，把这个 mimetex.cgi 移动到你想要的文件夹，并给它加上执行权限（不然可能出现 500 错误）。</p>
<p>如果服务器是 Windows 的，因为 Windows 似乎对兼容做得比较不错，因此可以直接用我编译的这个cgi (编译器 mingw gcc 3.1.1)：<a href="http://down.upsuper.org/mimetex.cgi">mimetex.cgi</a> (924KB)</p>
<p>下面，在你安放 mimetex.cgi 的文件夹下新建一个 .htaccess 文件，并设置如下内容：</p>

<div class="wp_codebox"><table><tr id="p7138"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p713code8"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">Options</span> +ExecCGI
<span style="color: #00007f;">AddHandler</span> cgi-<span style="color: #00007f;">script</span> cgi</pre></td></tr></table></div>

<p>如果你不想让别人借你的服务器生成图片的话，还可以输入以下内容：</p>

<div class="wp_codebox"><table><tr id="p7139"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p713code9"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">Order</span> <span style="color: #00007f;">deny</span>,<span style="color: #00007f;">allow</span>
<span style="color: #00007f;">Deny</span> from <span style="color: #0000ff;">all</span>
<span style="color: #00007f;">Allow</span> from 127.0.0.0/255.0.0.0 ::<span style="color: #ff0000;">1</span>/<span style="color: #ff0000;">128</span></pre></td></tr></table></div>

<p>当然，这样你就只能在 PHP 中用 curl 访问了~虽然我也推荐这样做。</p>
<p>上面这样就可以了，然后如果要生成某个 LaTeX 的图片，只要访问 <em>mimetex.cgi?你的公式</em> 就可以了，如</p>

<div class="wp_codebox"><table><tr id="p71310"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p713code10"><pre class="text" style="font-family:monospace;">mimetex.cgi?\sqrt{2}^2=2</pre></td></tr></table></div>

<p>这样，漂亮的 gif 图片就出来了。</p>
<p>最后再说说，我个人觉得，直接让客户端访问这个并不好，所以推荐加上权限控制，然后在 PHP 中是用 curl 获取，并做一次缓存。毕竟不管怎样，生成这个是要花费不少的 CPU，如果遇到大量公式的时候，应该会相当可怕……所以这种时候做一个缓存应该是很好的选择，毕竟那些 gif 都不大。这段代码就不写了，我想应该是很简单的~</p>
<p>说回来，如果认真看这个程序的 README 还会发现，如果加上编译参数 -DCACHEPATH=地址 就可以在 cgi 级别使用 MD5 Hash 的文件缓存。不过再想想，其实没什么必要，一个是用 PHP 控制缓存文件要更方便，同时考虑到文件系统在一个目录下文件多于 10000 个时会出现严重性能问题，最好使用多级目录来做缓存，不过看代码似乎没有多级缓存。除此之外，我想还有一些不错的方法可以做一些初级判重，这些用 PHP 实现会比改 cgi 要简单的多了~建议大家可以自己再多看看编译说明，似乎有不少有趣的编译参数~</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.upsuper.org/php-space-show-latex-formula/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu之旅（七）——LaTeX归来</title>
		<link>http://blog.upsuper.org/ubuntu-trip-7-latex-return/</link>
		<comments>http://blog.upsuper.org/ubuntu-trip-7-latex-return/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 04:12:03 +0000</pubDate>
		<dc:creator>upsuper</dc:creator>
				<category><![CDATA[探究学习]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[TexLive]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://blog.upsuper.org/?p=119</guid>
		<description><![CDATA[今天最主要的成绩就是终于把LaTeX环境给弄好了！主要参考了这些资料：TeXLive 2007 CJK Chinese Howto、TeXLive 2007中文配置指南 #18，似乎是同一个人的，很厉害的说！ 原来是想依赖apt-get的，但是看到要下载大达500MB+的文件，而且最近源的速度似乎很慢，下了几个包就放弃了。想起原来看到过的TexLive光盘，可以下载来看看。因为知道那个也有900MB+大，就开VMware到Windows下开迅雷下（Wine下的迅雷我始终不能正常使用，不知何故）。开始的时候下的也很慢，不过后来不知什么时候突然蹿到1MB+/s，下了大约半个小时就下完了，比起源里面那个一会儿告诉我半小时一会儿告诉我17小时要好多了…… 下载后解压，然后 1 2 3 4 sudo mkdir /media/texlive sudo mount -o loop texlive2007-live-20070212.iso /media/texlive cd /media/texlive sudo ./install-tl 然后按I开始安装。安装过程是全自动化的，不需要动什么，不过在安装的过程中可以预先做下一步。 为了使之能正常使用，需要编辑/etc/environment，在PATH的最前面加上“/usr/local/texlive/2007/bin/i386-linux:”，我的改完以后看起来像这样： 1 PATH=&#34;/usr/local/texlive/2007/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games&#34; 现在重启一下。 重启后试了一下已经好的LaTeX环境： 1 2 3 4 \documentclass{article} \begin{document} Hello World! \end{document} 1 pdflatex test.tex 可以看到那些熟悉的文件，特别是那个PDF。打开看，“Hello World!” 接下来来中文支持。 看到先人们说那篇“Howto”的方法太慢，又查到了一个快的方法，就是用mkfont脚本。需要的话可以点击这里下载：mkfont.tar.gz (96.83 KB) 解压后把需要的字体文件逐个拷贝到mkfont所在文件夹，然后执行mkfont。具体的我以楷体为例： 1 time ./mkfont.sh simkai.ttf [...]]]></description>
			<content:encoded><![CDATA[<p>今天最主要的成绩就是终于把LaTeX环境给弄好了！主要参考了这些资料：<a href="http://mailboxpublic.googlepages.com/texlive2007cjkchinesehowto" target="_blank">TeXLive 2007 CJK Chinese Howto</a>、<a href="http://bbs.ctex.org/viewthread.php?tid=38043&#038;page=2#pid288649" target="_blank">TeXLive 2007中文配置指南 #18</a>，似乎是同一个人的，很厉害的说！</p>
<p><span id="more-119"></span></p>
<p>原来是想依赖apt-get的，但是看到要下载大达500MB+的文件，而且最近源的速度似乎很慢，下了几个包就放弃了。想起原来看到过的TexLive光盘，可以下载来看看。因为知道那个也有900MB+大，就开VMware到Windows下开迅雷下（Wine下的迅雷我始终不能正常使用，不知何故）。开始的时候下的也很慢，不过后来不知什么时候突然蹿到1MB+/s，下了大约半个小时就下完了，比起源里面那个一会儿告诉我半小时一会儿告诉我17小时要好多了……</p>
<p>下载后解压，然后</p>

<div class="wp_codebox"><table><tr id="p11919"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p119code19"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>texlive
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> loop texlive2007-live-<span style="color: #000000;">20070212</span>.iso <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>texlive
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>texlive
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>install-tl</pre></td></tr></table></div>

<p>然后按I开始安装。安装过程是全自动化的，不需要动什么，不过在安装的过程中可以预先做下一步。</p>
<p>为了使之能正常使用，需要编辑/etc/environment，在PATH的最前面加上“/usr/local/texlive/2007/bin/i386-linux:”，我的改完以后看起来像这样：</p>

<div class="wp_codebox"><table><tr id="p11920"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p119code20"><pre class="text" style="font-family:monospace;">PATH=&quot;/usr/local/texlive/2007/bin/i386-linux:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games&quot;</pre></td></tr></table></div>

<p>现在重启一下。</p>
<p>重启后试了一下已经好的LaTeX环境：</p>

<div class="wp_codebox"><table><tr id="p11921"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p119code21"><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: #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>
	Hello World!
<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>


<div class="wp_codebox"><table><tr id="p11922"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p119code22"><pre class="bash" style="font-family:monospace;">pdflatex test.tex</pre></td></tr></table></div>

<p>可以看到那些熟悉的文件，特别是那个PDF。打开看，“Hello World!”</p>
<p>接下来来中文支持。</p>
<p>看到先人们说那篇“Howto”的方法太慢，又查到了一个快的方法，就是用mkfont脚本。需要的话可以点击这里下载：<a href="http://down.upsuper.org/mkfont.tar.gz">mkfont.tar.gz</a> (96.83 KB)</p>
<p>解压后把需要的字体文件逐个拷贝到mkfont所在文件夹，然后执行mkfont。具体的我以楷体为例：</p>

<div class="wp_codebox"><table><tr id="p11923"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p119code23"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">time</span> .<span style="color: #000000; font-weight: bold;">/</span>mkfont.sh simkai.ttf simkai kai</pre></td></tr></table></div>

<p>前面那个time是用来计时的，我看了一下，在我的机上，一个字体大概需要用2分半左右生成。</p>
<p>另外就是宋体，宋体必须要用Windows 98所带的宋体，不然不支持。如果手头有Windows 98的安装盘可以找到很多cab的那个目录，执行：</p>

<div class="wp_codebox"><table><tr id="p11924"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p119code24"><pre class="bash" style="font-family:monospace;">cabextract <span style="color: #660033;">-F</span> simsun.ttf cab目录<span style="color: #000000; font-weight: bold;">/</span>Win98_58.cab</pre></td></tr></table></div>

<p>即可获得可用的宋体。如果实在没有，可以点击这里下载：<a href="http://down.upsuper.org/simsun.ttf.7z">simsun.ttf.7z</a> (4.8 MB)</p>
<p>接下来与楷体一样的，执行</p>

<div class="wp_codebox"><table><tr id="p11925"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p119code25"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">time</span> .<span style="color: #000000; font-weight: bold;">/</span>mkfont.sh simsun.ttf simsun song</pre></td></tr></table></div>

<p>同样的方法我还转换了黑体和仿宋。</p>
<p>最后找到主文件夹下有一个“texmf”文件夹，将里面的东西拷贝到“~/.texlive2007/texmf-var”文件夹下即可。</p>
<p>下面来测试一下各个字体：</p>

<div class="wp_codebox"><table><tr id="p11926"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p119code26"><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;">CJKutf8</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;">CJK*</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">UTF8</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">song</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;">CJK*</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;">CJK*</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">UTF8</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">kai</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;">CJK*</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;">CJK*</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">UTF8</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">hei</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;">CJK*</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;">CJK*</span></span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">UTF8</span><span style="color: #E02020; ">}{</span><span style="color: #2020C0; font-weight: normal;">fang</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;">CJK*</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></td></tr></table></div>

<p>成功了！而且还可以正常复制中文，在Windows下也可以正常查看！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.upsuper.org/ubuntu-trip-7-latex-return/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>初试LaTeX判断语句</title>
		<link>http://blog.upsuper.org/once-try-latex-judge-sentence/</link>
		<comments>http://blog.upsuper.org/once-try-latex-judge-sentence/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 02:18:37 +0000</pubDate>
		<dc:creator>upsuper</dc:creator>
				<category><![CDATA[雕虫小技]]></category>
		<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://blog.upsuper.org/?p=25</guid>
		<description><![CDATA[今天为了解决LaTeX里面的一个判断语句，进行了艰苦卓绝的研究。在经过了大量试验和参考了大量代码后，终于成功了！ 可能不是通法，不过这里和大家分享一下我的方法，我的目的是判断传入参数#1是否为空： 1 2 3 4 \if!#1! {} \else #1 \\ \fi 这段意识是如果#1不为空则显示它并换行。如果大家有更好的方法一定要告诉我哈！]]></description>
			<content:encoded><![CDATA[<p>今天为了解决LaTeX里面的一个判断语句，进行了艰苦卓绝的研究。在经过了大量试验和参考了大量代码后，终于成功了！</p>
<p>可能不是通法，不过这里和大家分享一下我的方法，我的目的是判断传入参数#1是否为空：</p>

<div class="wp_codebox"><table><tr id="p2528"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p25code28"><pre class="latex" style="font-family:monospace;"><span style="color: #800000; font-weight: normal;">\if</span>!#1! <span style="color: #E02020; ">{</span><span style="color: #E02020; ">}</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">else</span>
#1 <span style="color: #E02020; ">\\</span>
<span style="color: #E02020; ">\</span><span style="color: #800000;">fi</span></pre></td></tr></table></div>

<p>这段意识是如果#1不为空则显示它并换行。如果大家有更好的方法一定要告诉我哈！</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.upsuper.org/once-try-latex-judge-sentence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>初尝WikiTeX</title>
		<link>http://blog.upsuper.org/once-try-wikitex/</link>
		<comments>http://blog.upsuper.org/once-try-wikitex/#comments</comments>
		<pubDate>Mon, 22 Oct 2007 13:45:16 +0000</pubDate>
		<dc:creator>upsuper</dc:creator>
				<category><![CDATA[琐事杂谈]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[MediaWiki]]></category>

		<guid isPermaLink="false">http://blog.upsuper.org/?p=79</guid>
		<description><![CDATA[看到了WikiTeX的强大，想要安到我建的那个Wiki里面。在复制完文件后，安装了Graph对应的东西，当我输入Graph的代码，看到的却是WikiTeX.sh不能运行…… 囧，初尝算是失败了，以后慢慢研究]]></description>
			<content:encoded><![CDATA[<p>看到了WikiTeX的强大，想要安到我建的那个Wiki里面。在复制完文件后，安装了Graph对应的东西，当我输入Graph的代码，看到的却是WikiTeX.sh不能运行……</p>
<p>囧，初尝算是失败了，以后慢慢研究</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.upsuper.org/once-try-wikitex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

