Tetex+CJK+CCT for Ubuntu

Follow me:

  1. Copy all of fonts to your home folder.
  2. cp *.ttf ~/.fonts

  3. Come on...

  4. sudo apt-get install tetex-base tetex-bin tetex-extra cjk-latex
    sudo apt-get install dvipdfm dvipdfm-cjk dvipdfmx fontforge
    wget ftp://ftp.cc.ac.cn/pub/cct/Linux/cct_0.6180.2_i386.deb
    sudo dpkg -i cct_0.6180.2_i386.deb
    wget https://www.aizog.com/pub/gbkfonts.tar.bz2
    bzip2 -d gbkfonts.tar.bz2
    tar -xvf gbkfonts.tar
    chmod +x gbkfonts
    sudo cp -p gbkfonts /usr/bin
    sudo mkdir -p /usr/share/texmf/fonts/truetype/chinese
    cd /usr/share/texmf/fonts/truetype/chinese/
    ln -s ~/.fonts/simsun.ttc
    ln -s ~/.fonts/simhei.ttf
    ln -s ~/.fonts/simfang.ttf
    ln -s ~/.fonts/simkai.ttf
    cd /usr/share/texmf/
    sudo gbkfonts fonts/truetype/chinese/simfang.ttf fs
    sudo gbkfonts fonts/truetype/chinese/simsun.ttc song
    sudo gbkfonts fonts/truetype/chinese/simkai.ttf kai
    sudo gbkfonts fonts/truetype/chinese/simhei.ttf hei
    sudo texhash
    sudo updmap-sys --enable Map cjk.map

  5. After these, test it.
  6. emacs test.tex

    \documentclass{article}
    \usepackage{CJK}
    \begin{document}
    \begin{CJK}{GBK}{song}
    这是latex
    \end{CJK}
    \end{document}

  7. If your code is utf8, Attention please, Convert it ro GBK
  8. iconv -f utf-8 -t gbk test.tex > ttest.tes

  9. Out put PDF

  10. latex *.tex
    dvipdfm/dvipdfmx *.dvi

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:2   其中:访客  2   博主  0

    • avatar ubuntu 0

      aptitude purge $(dpkg -l|grep ^rc|awk ‘{ print $2 }’) remove all error package

      • avatar dawnxm 2

        dpkg -l | grep ^rc | cut -d’ ‘ -f3 | sudo xargs dpkg –purge