Slackware 9/-current LaTeX + CJK So

火星人 @ 2014-03-12 , reply:0


   摘要
This is a quick solution to install CJK for tetex under Slackware.(2004-01-29 17:55:31)

By terminator

(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




[火星人 via ] Slackware 9/-current LaTeX + CJK So已經有330次圍觀

http://www.coctec.com/docs/enterprise/show-post-73670.html