latex 显示中文

中文支持须要cjk-latex,总得来讲中文可使用GB和GBK两种字体,GBK须要从windows下copy *.ttc或*.ttf, GB字体则在linux下就用。
  
  先说支持GB的中文显示,安装如下deb包:
   apt-get install cjk-latex tetex-extra tetex-doc tfm-arphic-gbsn00lp tfm-arphic-gkai00mp ttf-arphic-gbsn00lp ttf-arphic-gkai00mp ,
  编辑tex源文件sample.tex
  coosbay:~/tex# cat sample.tex
  \documentclass{article}
  \begin{document}
  \begin{CJK*}{GB}{song}
  显示中文
  \end{CJK*}{GB}{song}
  \end{document}
  
  接下来只须要latex sample.tex; dvipdfm sample.dvi就能够生成sample.pdf文件了。GB支持{song}和{kai}两种字体。
  
  若是须要支持GBK字体文件,则须要安装texmf-zh (这个包在ustc目录里,包括install-gbkfonts,update-gbkfonts,remove-gbkfonts 三个命令)
linux

相关文章
相关标签/搜索