中文支持須要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