ºìÁªLinuxÃÅ»§
Linux°ïÖú

FC6Ï°²×°ºÍÅäÖÃlatex-cjk

·¢²¼Ê±¼ä:2006-11-08 01:20:27À´Ô´:ºìÁª×÷Õß:tongxiaokun
×¼±¸¹¤×÷£º
#yum install tetex-latex tetex-afm tetex-dvipost tetex-unicode tetex-xdvi zlib-devel latex2html pdftk
1¡¢ÔÚ/usr/shareÏÂÃ潨Á¢ºÃĿ¼
#cd /usr/share/texmf/fonts/truetype/
#mkdir chinese
2¡¢ÄãµÄ×ÖÌåËùÔÚĿ¼¸´ÖÆ×ÖÌåµ½/usr/share/texmf/fonts/truetype/chineseĿ¼ÏÂ
#cp simfang.ttf simhei.ttf simkai.ttf simsun.ttf simli.ttf /usr/share/texmf/fonts/truetype/chinese/
3¡¢°²×°CJK
µ½ http://cjk.ffii.org/ ÏÂÔØ cjk-4.7.0.tar.gz
#cd /usr/share/texmf/tex/latex/
#mkdir CJK
#cp cjk-4.7.0.tar.gz /usr/lib
#cd /usr/lib
#tar zxvf cjk-4.7.0.tar.gz
#rm -fr cjk-4.7.0.tar.gz

Çл»µ½rootÓû§(×¢Ò⣺Èç¹ûÖ±½ÓÓÃcpÃüÁ¿ÉÄÜ»áÓÐijЩÎļþ²»ÄÜÍêÈ«¸´ÖƹýÀ´£¬Ôì³ÉsimsunÎÞ·¨Éú³É×ÖÌå)£¬
#cd /usr/lib/cjk-4.7.0
°Ñµ±Ç°cjk-4.7.0ÖеÄÎļþ¸´ÖƵ½ /usr/share/texmf/tex/latex/CJK
°Ñ texinputĿ¼ÏµÄÎļþ¸´ÖƵ½ /usr/share/texmf/tex/latex/CJK
4 ¡¢°²×°×ÖÌåÉú³ÉÎļþgbkfonts
#cp gbkfonts-linux-0.3.tar.bz2 /usr/local/lib
#cd /use/local/lib
#tar zxvf gbkfonts-linux-0.3.tar.bz2
#rm -fr gbkfonts-linux-0.3.tar.gz
#cd gbkfonts-linux-0.3
#cp gbkfonts /usr/local/bin
#cp appendconf /usr/local/bin
#cp go /usr/local/bin

ÐÞ¸Ä/usr/local/bin/goÎļþ
#cd /usr/local/bin
#vim go
ÐÞ¸ÄÏÂÃæÕâÒ»¶Î
gbkfonts ${opts} $dir/simsun.ttf song
gbkfonts ${opts} $dir/simkai.ttf kai
gbkfonts ${opts} $dir/simhei.ttf hei
gbkfonts ${opts} $dir/simfang.ttf fs
gbkfonts ${opts} $dir/fzssjw.ttf fzss
gbkfonts ${opts} $dir/fzs3jw.ttf fzs3
gbkfonts ${opts} $dir/fzxkjw.ttf fzxk
gbkfonts ${opts} $dir/fznbsjw.ttf fznbs
gbkfonts ${opts} $dir/fzfsjw.ttf fzfs
gbkfonts ${opts} $dir/fzktjw.ttf fzkt
gbkfonts ${opts} $dir/fzs3jw.ttf fzs3


½«²»ÓõÄÐÐÓÃ#×¢Ê͵ô¡£ÎÒֻҪǰÃæËĸö£¬°ÑºóÃæµÄ×¢Ê͵ô¾Í¿ÉÒÔÁË¡£
½ÓÏÂÀ´¿ªÊ¼Éú³É×ÖÌå
#cd /usr/share/texmf
#go fonts/truetype/chinese


¸üÐÂÊý¾Ý¿â£º
#mktexlsr

5¡¢°²×°dvipdfmx
#cd /usr/local/src
#tar zxvf dvipdfmx-20050831.tar.gz
#cd dvipdfmx-20050831
#./configure --prefix=/usr
#make
#make install

6¡¢ÏÖÔÚÐ޸ļ¸¸öÅäÖÃÎļþ
ÔÚ/usr/share/texmf/dvips/config/config.ps Öн«
o |lpr
Ç°¼Ó%×¢Ê͵ô£¬ÒÔ¼°¼ÓÉÏÕâçÛÒ»ÐÐ
p +cjk.map
ÕâÑù¾ÍÄÜʹÓÃdvipsÉú³ÉpsÎļþÁË¡£
7¡¢½«Õ⼸¸öÎļþ·Ö±ð¸´ÖƵ½ÏÂÃ漸¸öĿ¼¡£UGBK.sfd(ÏÂÔصØÖ·£ºhttp://www.hebl.name/software/tex/cjk/UGBK.sfd)
¸´ÖƵ½/usr/share/texmf/ttf2pk Adobe-GB1-UCS2¡¢UniGB-UCS2-HºÍUniGB-UCS2-V¸´ÖƵ½
/usr/share/texmf/dvipdfm/CMap ¡£ÕâÑù¾Í¿ÉÒÔÁË¡£
# cp UGBK.sfd /usr/share/texmf/ttf2pk/
# cp Adobe-GB1-UCS2 Uni* /usr/share/texmf/dvipdfm/CMap/

×¢Ò⣺ÉÏÃæµÄÎļþ¿ÉÒÔµ½http://partners.adobe.com/public/dev...dex.htmlÏÂÔØ
adobe Cmaps.zip

9¡¢¸üÐÂTeXÊý¾Ý¿â
[root@loaclhost texmf]#mktexlsr

10.½â¾ö²»ÄÜת»»pdfµÄÎÊÌ⣺
#cd /usr/share/texmf/
#cp cjk.map /usr/share/texmf/dvips/config/
# cd /usr/share/texmf/web2c/
#vim updmap.cfg
ÔÚ×îºóÃæ¼ÓÉÏÒ»ÐУºMap cjk.map
#updmap

×îºó×öÒ»¸ö²âÊÔ£¬¿´Õû¸öϵͳÊÇ·ñÔËÐÐÕý³££¿±à¼­Ò»¸öСµÄTeXÎļþ£ºtest.tex
±àÒ룺
#latex test.tex
ת»»Îªpdf£º
#dvipdfmx test.dvi
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ