latex 下安装中文支持,需要安装一系列宏包,然后拷贝生成字体什么的,甚是繁琐。一步抄作出问题,会浪费很多时间。
不如写成一个script, shell 脚本。出问题,或机器重装,运行此脚本即可,一劳永逸。
备忘。 脚本下载:install_cjk
samples : \documentclass{article} \usepackage{CJK} \begin{document} \begin{CJK}{UTF8}{song} 这是so8848 \end{CJK} \end{document} Incoming search terms for the article:latex samples (2)latex中文支持 (2)bib 中文 undefined control sequence (1)ubuntu 9 10 LaTeX 安装 (1)ubuntu 9 10 latex 中文问题 (1)Related Postsubuntu kile下 解决中文问题-CJK{GBK}fix problems in ubuntu kile: multirow.sty’ not foundKile spell check doesn’t workpdflatex To Use US. Letter [...]]]>2. goto Applications->Other->Spell Checker (it seems that it is not necessary)
in client choose Aspell, this will change the dictionary to Aspell (for me by default appeared Ispell as dictionary).
3. restart Kile (if it is open)
Incoming [...]]]>打开终端,执行下述命令安装TexLive和常用的一些Latex宏包(可以根据自己的需要增改):
sudo apt-get install texlive texlive-math-extra texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-science texlive-bibtex-extra texlive-common latex-beamer
如果硬盘充裕的话,直接完整安装也可以:
sudo apt-get install texlive-full latex-beamer
安装完后,就可以安装CJK的相关软件包了,如果只需要获得中文支持,那么执行:
sudo apt-get install latex-cjk-chinese ttf-arphic-* hbf-*
否则,建议安装latex-cjk-all以获取完整支持。
安装 gbkfonts
下载1: gbkfontsfortetex3.0
下载2: gbkfonts
直接把gbkfonts 文件copy 到 目录/usr/bin, 记得要chmod, 命令: sudo chmod 777 /usr/bin/gbkfonts , 因为这个文件是从别地方copy过来, not permit.
然后开始拷贝字体sudo cp /media/hda1/windows/Fonts/sim* /usr/share/fonts/zh_CN/TrueType/
mkdir ~/texmf #如果你不是把目录建在这,比如建在~/.texmf,请参阅附录2作相应修改 cd ~/texmf
gbkfonts [...]]]>
sudo apt-get install texlive-latex-extra
I seems that some packages are missing in the default setting of kile. It will take you a lot time to download the extra packages via the above command.
Incoming search terms for the article:multirow sty ubuntu (15)multirow [...]]]>