第一次安装和使用latex+cjk

June 2, 2006

    在网上听很多人说用latex处理文档的效果很好,这一周,我也装了试试,感觉还不错:

1、安装英文texlive: 

首先安装下载texlive2005,挂载在磁盘上后进入目录中,运行:sh install-tl.zh

                                    这样一个英文版的latex就能自动安装在你的系统上面了。

 2、设置环境变量:

        编辑  .bashrc文件。在文件最后加上

            PATH=/usr/local/texlive2005/bin/i386-linux/:$PATH

              export PATH
 3、生成中文字体

        下载gbkfonts程序(需要的时候可以在google上面搜索,这是一个由王垠编写的把windows下中文字体转为linux下字体的程序),下载simsun.ttf和simhei.ttf等字体。建立fonts文件夹,在其中运行命令:

             gbkfonts  simsun.ttf   song

             gbkfonts  simhei.ttf     hei

这样就生成了宋体和黑体字。

4、把字体复制到合适位置。

在fonts目录下面运行:cp * /usr/local/texlivetexmf-local

这样,你的支持中文的latex就安装完成了。

当你写好一源文件   x.tex后,通过下列命令,就可以得到pdf文档:

 latex  x.tex 

 dvipdfmx  x.dvi

 一上就是我第一次安装和使用latex的过程,刚刚用它写了两份实验报告,效果确实很好。

我的系统环境是(SUSE Linux 10.0)

1 Comment »

The URI to TrackBack this entry is: http://delta.blogsome.com/2006/06/02/p2/trackback/

  1. gjhjhjhjhjhj

    Comment by delta — June 2, 2006 @ 8:29 am

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.