|
发表于 2004-3-17 23:23:28
|
显示全部楼层
这是我当时做的笔记
Prerequisities
* xforms
For the current lyx frontend is built on xforms, You should have xforms installed. For CJK, also it should be patched, you can get the patch file from ftp://cellular.phys.pusan.ac.kr/CJK-LyX/xforms/
* CJK-lyx
It is obviously neccessary. Get it from ftp://cellular.phys.pusan.ac.kr/CJK-LyX/xforms/
Installation
* Install xforms
- $ alien xforms-1.0-i18n_7.src.rpm
- $ dpkg-deb -x xforms_1.0-1_i386.deb ./xform-1.0
- $ cd xform-1.0
- $ tar zxvf xforms-1.0-release.tgz
- $ cd xforms-1.0-release
- $ patch -p1 <../xforms-1.0-i18n_7.patch
- $ xmkmf -a
- $ make
- $ make install
复制代码
* Install CJK-lyx
- $ tar zxvf CJK-LyX-xforms-1.3.4-src.tar.gz
- $ cd CJK-LyX-xforms-1.3.4
- $ ./configure --with-extra-lib=/usr/X11R6/lib --with-extra-inc=/usr/X11R6/include
- $ make
- $ make install
复制代码
Configuration
* Create your own config files
- cp /usr/share/lyx/lyxrc.defaults ~/.lyx/
- cp /usr/share/lyx/lyxrc.example ~/.lyx/
- cd ~/.lyx
- mv lyxrc.example lyxrc
复制代码
* Edit the config file, Add the following lines to the end of lyxrc.defaults
- \screen_font_i18n1_gothic "-*-simsun"
- \screen_font_i18n1_normal "-*-simsun"
- \screen_font_i18n1_encoding "gbk-0"
- \screen_font_i18n2_gothic "-*-simsun"
- \screen_font_i18n2_normal "-*-simsun"
- \screen_font_i18n2_encoding "gbk-0"
复制代码
* Append the following lines to lyxrc
- #
- # CHINESE SUPPORT SECTION ##################
- #
- # use CJK Package
- \language_auto_begin false
- \language_auto_end false
- \language_command_begin "\begin{CJK*}{GBK}{song}"
- \language_command_end "\end{CJK*}"
- \language_package "\usepackage{CJK}"
复制代码
Then start your lyx and test Chinese.
Have fun. |
|