Fedora9 comes with texlive2007. It is very easy to write in English only. $ Sudoyuminstalltexlive * $ sudoyuminstallkile: you can install lyx $ sudoyuminstalllyx. Unfortunately, I want to use Chinese characters. The texliverpm package in fedora9 does not contain the CJK macro package, many Chinese websites are configured, but most of them are compared.
Fedora 9 comes with texlive 2007. If you only write in English, it is very simple.
$ Sudo yum install texlive *
$ Sudo yum install kile
You can install a lyx
$ Sudo yum install lyx
Unfortunately, I want to use Chinese characters. The texlive rpm package in fedora 9 does not contain the CJK macro package. Many Chinese languages are configured online, but most of them are complicated. If it is Ubuntu, you can use the source for installation, which is simpler.
In comparison, I chose to install the full package. This is a little simpler, but it takes up a lot of space. It is best to ensure 2 GB of free space.
1 install texlive 2007
Uninstall texlive 2007 that may have been installed before installation
$ Sudo yum remove texlive *
Then download the complete installation package for texlive 2007 from the http://www.ctan.org/tex-archive/systems/texlive/Images/
Texlive2007-live-20070212.iso.zip
Download the image file to the/opt directory, mount it to/mnt/cdrom, and enter the directory:
# Mount-t iso9660-o loop/opt/texlive2007-live-20070212.iso/mnt/cdrom
# Cd/mnt/cdrom
Run the install-tl.sh script in the/mnt/cdrom directory to go to The TeXLive installation menu:
#./Install-tl.sh
Enter S, select full installation, and enter R to return to the main menu.
Enter L and select the language for installation:
Input-, all languages are not selected
Enter d and select cjk.
Enter R and return to the main menu.
Enter I to start installation.
After installation
$ Vi ~ /. Modify bash_profile PATH:
PATH =/usr/local/texlive/2007/bin/i386-linux: $ PATH: $ HOME/bin
2. Install Chinese Fonts
This thing I rummaged online for a long time, finally in http://bj.soulinfo.com /~ Hugang/tex/found the YueWang-zhfonts-final_1.01.tar.bz2, download to/home/yourname/directory
$ Mv ~ /. Texlive2007 ~ /. Texlive2007.bak
$ Tar jxvf ~ YueWang-zhfonts-final_1.01.tar.bz2
$ Texhash
3. Test the Chinese Environment
The content of $ vi test. tex is as follows:
\ Documentclass {article}
\ Usepackage {CJKutf8}
\ Begin {document}
\ Begin {CJK} {UTF8} {hei}
Hello, Latex!
The Chinese Olympic Legion is amazing!
\ End {CJK}
\ End {document}
Save and exit
$ Latex test. tex
$ Dvipdfm test. dvi
If the testbench file is generated and Chinese characters are displayed normally, the result is successful.
4. If you like vim, you can use vim + latex-suite to write latex files:
Download latexsuite20060325.zip from http://vim-latex.sourceforge.net... load & title = Download
$ Mkdir ~ /. Vim
$ Unzip-d ~ /. Vim latexSuite20060325.zip
$ Vi ~ /. Vimrc
Add at the end of the file
Filetype plugin on
Set shellslash
Set grepprg = grep \-nH \ $ *
Filetype indent on
Then
: Helptags ~ /. Vim/doc and exit.
$ Vi a. tex: help latex-suite.txt to see tutorialfiletype plugin on
Set shellslash
Set grepprg = grep \-nH \ $ *
Filetype indent on
Then
: Helptags ~ /. Vim/doc and exit.
$ Vi a. tex: help latex-suite.txt to see tutorial
5. Install kile
If you use yum to install kile, fedora 9 will install the texlive rpm package, overwrite the path, and cannot find the CJK macro package, that is, it does not support Chinese characters.
So I downloaded the source file compilation and installation from http://kile.sourceforge.net.
Compile can refer to http://kile.sourceforge.net/help.php#compile