LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 673|回复: 2

Install LaTeX + CJK on Slackware !

[复制链接]
发表于 2004-4-9 05:34:21 | 显示全部楼层 |阅读模式
This is a quick solution to install CJK for tetex under Slackware.

(1) Install tetex package

(2) Prepare localized directory tree


# mkdir -p /usr/share/texmf-local/tex/latex/

2

(3) Download latest CJK from the following link:


ftp://ftp.ffii.org/pub/cjk/
Uncompress the CJK package, then:
# mv cjk-version/texinput/ /usr/share/texmf-local/tex/latex/CJK

(4) Build tools:
gbkfonts, it requires header file from freetype 1.x
http://learn.tsinghua.edu.cn/homepage/015450/programs.html
ttf2pk, it is included in contrib/ of freetype 1.x, build it
statically since your system may have freetype2 installed!

(5) Build fonts from TTF fonts:


# cd /usr/share/texmf-local/
# gbkfonts /usr/X11R6/lib/X11/fonts/TTF/simsun.ttc song
# gbkfonts /usr/X11R6/lib/X11/fonts/TTF/simhei.ttc hei
# gbkfonts /usr/X11R6/lib/X11/fonts/TTF/simkai.ttc kai
# gbkfonts /usr/X11R6/lib/X11/fonts/TTF/simfang.ttc fs
# gbkfonts /usr/X11R6/lib/X11/fonts/TTF/fzwbjw.ttc fzweibeis
# gbkfonts /usr/X11R6/lib/X11/fonts/TTF/fzwbfw.ttc fzweibeit

Move generated file in the current directory (/usr/share/texmf-local) to correct location:


# mv cid-x.map dvipdfm/config/
# mv cjk.map dvips/config/
# cp ../texmf/dvips/config/config.ps dvips/config/
# echo "p +cjk.map" >> dvips/config/config.ps
# mv pdftex.cfg pdftex/config/

(6) Clean up:


# cd tex/latex/CJK/
# rm -rf JIS/ KS/ SJIS/ thai/ CEF/
# /usr/share/texmf/bin/mktexlsr

(7) Change permissions:


# chown -R root:root /usr/share/texmf-local/

(8) Change $PATH:

# vi /etc/profile.d/tetex.csh /etc/profile.d/tetex.sh
发表于 2004-4-9 08:45:42 | 显示全部楼层
这个不是terminator的帖子吗?已经在本版发过了,精华区里有。
发表于 2004-4-9 10:13:26 | 显示全部楼层
ooops, somebody catches you ... ;-)

估计不是有意的,应该是转帖。-- windrose
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表