当前位置:操作系统 > Unix/Linux >>

Slackware9/-currentLaTeX+CJKSolution

(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
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,