Google

Archives

ubuntu 下 latex 中文支持script & samples

介绍如何在ubuntu 下按章cjk 支持,一下脚本在ubuntu 9.10 + kile 下测试好使。

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)latex 中文 ubuntu (1)Latex 中文支持 (1)

Kile spell check doesn't work

Just for future reference. the following steps were what I followed:
1. open the Synaptic manager and install
Kile
apsell
kcontrol

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 [...]

ubuntu kile下 解决中文问题-CJK{GBK}

1. 安装TexLive 和 Latex 宏包

安装这些其实还可以避免其他很多ubuntu kile 下的问题

打开终端,执行下述命令安装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 [...]

fix problems in ubuntu kile: multirow.sty' not found

The problems such as multirow.sty’ not found can be fixed via the following command (Ubuntu system):

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 (10)multirow [...]