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/


(3) Download latest CJK from the following link:
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
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 dvipdfm/config/
# mv dvips/config/
# cp ../texmf/dvips/config/ dvips/config/
# echo "p" >> dvips/config/
# 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/

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