Monday, March 19, 2007

Ubuntu中使用texlive 2007

参考http://mailboxpublic.googlepages.com/texlive2007cjkchinesehowto
主要是Yue Wang在水木tex版发的文章

浙大88上也有texlive2007可以下载

1. Install texlive 2007
unzip texlive2007-live-20070212.iso.zip
mount -o loop texlive2007-live-20070212.iso /mnt
cd /mnt
sudo ./install-tl
then, press I to install.

2. Set the path. Take debian GNU/Linux as example, modify your /etc/environment
like this and make a reboot:
[
PATH="/usr/local/texlive/2007/bin/i386-linux:/usr/local/matlab/bin:/usr/local/sb
in:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games"
LANG="en_US.UTF-8"
LANGUAGE="en_US.UTF-8"
]

3. 安装字体

Yue Wang放了一份在
lftp softup@soft.eeatech.org:/texlive2007-zhfonts_yuewang>
文件名texlive-zhfonts.tar.bz2,//他应该还在更新中
首先remove自己的~/.texlive2007
然后,
cd ~
解压缩texlive-zhfonts.tar.bz2
sudo texhash
updmap --enable Map cjkutf8.map

字体有simsun,simhei,simli,simkai,simyou,simfang,
测试文件
#test.tex
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}
\begin{CJK}{UTF8}{song}
你好, 万岁
\end{CJK}
\end{document}

latex test.tex
dvipdfmx test.dvi
acroread test.pdf