Monthly Archive for June, 2006

使用MoinMoin Wiki进行文献管理 - 安装BibTex Parser

BibTex Parser需要bibtex2html的支持。

先下载bibtex2html。我是在Windows XP上使用MoinMoin Desktop Edition,所以选择Windows版本的bibtex2html,版本为1.79。下载后放到Miktex的bin目录下(我使用CTex,这个目录是C:\CTeX\texmf\miktex\bin)。

bibtex.py需要放到MoinMoin的数据目录中(DATA-DIR/plugin/parser),DATA-DIR是在wikiconfig.py 中指定的那个目录。

需要修改bibtex.py,第177和178行,指定bibtex2html.exe和bibtex.exe的位置。由于这两个程序都在C:\CTeX\texmf\miktex\bin目录下,已经包含在PATH环境变量里了,所以这里改成下面这样就可以:

bibtex2html = 'bibtex2html.exe'
bibtex = 'bibtex.exe'

但不知为什么 bibtex2html.exe 的stdin和stdout在Windows下无法工作,解析不了BibTex标记,所以我改成使用临时文件的方式。改动后的bibtex.py可以在这里下载(也可以用这个patch文件)。

现在,可以从Google Scholar导出BibTex放进Wiki页面了。

{ { {#!bibtex
@Book{aho.74,
author= {Alfred V. Aho and John E. Hopcroft and Jeffrey D. Ullman},
title = {The Design and Analysis of Computer Algorithms},
publisher= {Addison-Wesley},
year  = {1974},
}
} } }

poedit

poEdit (http://www.poedit.org/) - An open source program for Windows and UNIX/Linux which provides an easy-to-use GUI for editing PO files and generate MO files.

收集了一些LaTex学习资源

LaTex学习 - 使用中文

我用的是CTEX套件,中文支持都配置好了。

CCT:

\documentclass[CJK]{cctart}
\begin{document}
\kaishu 这是中文楷体字。
\end{document}

CJK*:

\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK*}{GBK}{kai}
这是中文楷体字。
\end{CJK*}
\end{document}

编译方法和英文文档一样:

> latex chinese
> dvips chinese
> ps2pdf chinese.ps chinese.pdf

LaTex学习 - Absolute beginners

准备开始做学位论文了,打算用LaTex。

先学习LaTex的Hello World

% hello.tex - Our first Latex example!

\documentclass{article}

\begin{document}

Hello World!

\end{document}
生成文档

> latex hello

再转成Postscript文件

> dvips hello.dvi -o hello.ps

输出PDF文件

> ps2pdf hello.ps hello.pdf