+ -
当前位置:首页 → 问答吧 → Install LaTeX + CJK on Slackware !

Install LaTeX + CJK on Slackware !

时间:2004-04-09

来源:互联网

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/homepag.../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

作者: AMD-K6   发布时间: 2004-04-09

这个不是terminator的帖子吗?已经在本版发过了,精华区里有。

作者: windrose   发布时间: 2004-04-09

ooops, somebody catches you ... ;-)

估计不是有意的,应该是转帖。-- windrose

作者: terminator   发布时间: 2004-04-09

热门下载

更多