ÔÚMagicLinux2.0´î½¨Tex»·¾³
Emacs+auctex+teTex3
Ò»£º°²×°teTeX3
²Î¿´ÁË
ºÎ²ªÁÁµÄ°²×°Ö¸ÄÏ
£¬ÒÔ¼°
LinuxfansÉϵÄÊÖ¼Ç
¡£ ¾ßÌå²½ÖèÈçÏ£º
£¨1£©.´Ó
teTeXÖ÷Ò³
ÕÒµ½tetex-src-3.0.tar.gzºÍtetex-texmf-3.0.tar.gz¡£¼ÙÉ谲װĿ¼Ϊ/usr/local/teTeX,¶øÏÂÔصÄÔ´Âë·ÅÔÚ/home/alpher/Ŀ¼Ï£¬ÄÇôÏȽ¨Á¢Ä¿Â¼£º
mkdir -p /usr/local/teTeX/share/texmf
cd /usr/local/teTeX/share/texmf
tar -xzvf /home/alpher/tetex-texmf-3.0.tar.gz
·µ»ØÔ´ÂëËùÔÚĿ¼ cd /home/alpher/
½âѹtetex£¬È»ºó°²×°
tar -xzvf tetex-src-3.0.tar.gz
cd tetex-src-3.0
./configure --prefix=/usr/local/teTeX --disable-multiplatform
make all
Çл»µ½³¬¼¶Óû§£ºsu £¨ÒÔºóµÄ°²×°Ö®Ç°¾ùÒªÇл»µ½³¬¼¶Óû§£¬±¾ÎÄÒÔºóÂÔÈ¥Õâ¸ö˵Ã÷£¬¶ÁÕß×Ô¼º¼Çס£©
make install
°²×°ÍêÒÔºó£¬ËùÓеÄtexÃüÁÔÚ/usr/local/teTeX/binÖУ¬ÒªÈÃϵͳÕÒµ½ÕâЩÃüÁÓкܶàÖÖ·½·¨£¬ÎÒÊÇÔÚ/etc/profileÎļþÖмÓÈëÕâ¸ö·¾¶£º
pathmunge /usr/X11R6/bin after
pathmunge /usr/local/teTeX/bin //Ìí¼ÓÕâÒ»ÐÐ
unset pathmunge
OK£¬µ½´ËΪֹ£¬teTeX°²×°Íê±Ï£¬Äã¿ÉÒÔ×¢Ïú£¬È»ºóÖØÆôx£¬ÔٵǼ£¬²âÊÔÒ»ÏÂÕâ¸öÃüÁtexconfig conf£¬Èç¹ûÄÜ¿´µ½Êä³ö£¬¾Í±íÃ÷texÅäÖÃûÓÐÎÊÌâÁË£¬ÄãÒѾ¿ÉÒÔ±àÒëtexÓ¢ÎÄÎĵµÁË¡£
£¨2£© °²×°CJK¡£Äã¿ÉÒÔµ½
CTAN
ÕÒCJK ÏÂÔØ£¬»òÕßÖ±½Óµ½CTexµÄ¾µÏñÏÂÔØ¡°ftp://ftp.ctex.org/mirrors/CTAN/language/chinese/CJK¡±, ×¢Ò⣬Õâ¸öFtpÖ»Äܵ¥Ï̡߳£CJKµÄ°²×°ºÜ¼òµ¥£¬½øÈëÏÂÔصÄÔ´ÂëĿ¼£¬ÈçÎÒµÄÊÇCJK/4_6.0,È»ºó°ÑtexinputĿ¼¿½±´Îª /usr/local/teTeX/share/texmf/tex/latex/CJK£¬¿½±´ÃüÁîÈçÏ£º
cd CJK/4_6.0
mv texinput /usr/local/teTeX/share/texmf/tex/latex/CJK
£¨3£©gbkfonts¡£´Ó
ºÎ²ªÁÁÄÇÀïÏÂÔØgbkfonts
,ΪÁË·½±ãʹÓ㬿ÉÒÔ½«gbkfonts¸´ÖƵ½/usr/local/teTeX/binÀïÃ棬ÃâµÃºóÃæÓõ½ËüµÄʱºòÒªÊäÈëÍêÕûµÄ·¾¶¡£
È»ºóÄã¿ÉÒÔµ½WinXPµÄC:/WINDOWS/Fonts/Ŀ¼Ï¿½±´ÐèÒªµÄÖÐÎÄ×ÖÌ壬£¨ÎÒÓÃsimsun.ttc(ÖØÃüÃûΪ simsun.ttf), simfang.ttf,simhei.ttf,simkai.ttf£¬³£ÓõĻ¹ÓÐsimli.ttfºÍsimyou.ttf£©£¬¿½±´µ½Ä¿Â¼ /usr/local/teTeX/share/texmf/fonts/truetype/chineseÏ£¬È»ºó£º
cd /usr/local/teTeX/share/texmf
gbkfonts fonts/truetype/chinese/simsun.ttf song
gbkfonts fonts/truetype/chinese/simkai.ttf kai
gbkfonts fonts/truetype/chinese/simfang.ttf fs
gbkfonts fonts/truetype/chinese/simhei.ttf hei
gbkfonts fonts/truetype/chinese/simli.ttf li
gbkfonts fonts/truetype/chinese/simyou.ttf you
OK,ÖÐÎÄ×ÖÌå¸ã¶¨ÁË¡£
£¨4£©dvipdfmx¡£µ½
dvipdfmxÖ÷Ò³
ÏÂÔØÔ´Â룬ÎÒÊÇÏÂÔØCVSµÄÔ´Â룬ÏÂÔØÃüÁîÈçÏ£º
cvs -d:pserver:anonymous@cvs.ktug.or.kr:/home/cvsroot login
cvs -d:pserver:anonymous@cvs.ktug.or.kr:/home/cvsroot co dvipdfmx
ÏÂÔØÍê³ÉÒÔºó°²×°Ö®£º
cd dvipdfmx
./configure --prefix=/usr/local/teTeX
make
make install
¸ù¾Ý ºÎ²ªÁÁ Ëù˵£¬±àÒëÖÐÎÄʱ£¬»¹ÐèÒªsfdÎļþºÎCMapÎļþ£¬·Ö±ðÔÚÕâÀïÏÂÔØ£º
sfdÎļþ
¡¢
CMapÎļþ
¡£ÔÚ/usr/local/teTeX/share/texmf/fontsĿ¼Ï½¨Á¢Á½¸öĿ¼£¬·Ö±ðΪsfdºÍcmap,½«ÏÂÔصÄUGBK.sdf¿½±´½øÈësfdĿ¼£¬½«ÏÂÔصÄCMapµÄzipѹËõ°ü½â¿ª£¬µÃµ½µÄÎļþ¿½±´½øcmapĿ¼¡£
×îºó±ðÍüÁ˸üÐÂÒ»ÏÂteTeXµÄÅäÖÃÎļþ£¬Ò²¾ÍÊÇÖ´ÐÐÒ»ÏÂÈçÏÂÃüÁ
texhash
£¨5£©[¿ÉÑ¡²Ù×÷]°²×°ghostscript¡£´Ó
ÆäÍøÕ¾
ÏÂÔØÔ´Â룬 ÎÒÏÂÔصÄghostscript-8.5-gpl.tar.bz2£¬½âѹ£¬È»ºó°²×°£º
tar -xjvf ghostscript-8.5-gpl.tar.bz2
cd ghostscript-8.5-gpl
./configure
make
make install
£¨6£©[¿ÉÑ¡²Ù×÷]ΪÁËÉú³ÉµÄpdf±êÇ©²»»á³öÏÖÂÒÂ룬ÄãÐèҪʹÓÃgbk2uni£¬Äã¿ÉÒÔ
µ½ÕâÀïÏÂÔØÆä
Ô´Âë¡£ÎÒÃÇÖ»ÐèÒªgbk2uni.c¡¢gbk2uni.h£¬ÏÂÔØÖ®ºóÓÃgcc±àÒë¼´¿É£º
gcc -o gbk2uni gbk2uni.c
cp gbk2uni /usr/local/teTeX/bin/
=============================
°²×°Íê±Ï¡£
OKOKOK
ÖÁ´Ë£¬ÄãÒѾ¿ÉÒÔʹÓÃtex´¦ÀíÖÐÎÄtexÎĵµÁË¡£²»¹ýÄã»òÐíÐèÒªEmacs,ÒÔ¼°¿ÉÒÔÔ¤ÀÀ¹«Ê½¡¢Í¼Æ¬µÄpreview-latex,ÄÇô£¬ÍƼöÄã½øÐÐÈçϲÙ×÷£º
£¨7£©ÏÂÔØemacsµÄCVS´úÂ룬±àÒ룬°²×°£º
cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/emacs co emacs
cd emacs
./configure
make bootstrap
make install
Èç¹ûÊÇGentooµÈÆäËûLinux·¢Ðа棬ÄãµÄEmacs¿ÉÄÜÖÐÎÄÏÔʾ²»Õý³££¬Ä㻹ÐèÒª½«ÖÐÎÄ×ÖÌåÎļþ¿½±´µ½/usr/share/fonts/TTF»òÆäËûĿ¼£¬È»ºóÈ·ÈÏÔÚxorg.confÖаüº¬ÓÐÕâ¸öĿ¼£¬ÔÙÖ´ÐÐÈçÏÂÃüÁ
mkfontscale
mkfontdirfc-cache
£¨8£©°²×°auctex+preview-latex.µ½
auctexÖ÷Ò³
ÏÂÔØ×îеÄauctex£¨ÀïÃæ°üº¬ÁËpreview-latex£©£¬È»ºó°²×°£º
tar -xzvf auctex-11.82.tar.gz
cd auctex-11.82
./configure
make
make install
OK£¬Ò»ÇÐÍê±Ï¡£¹ØÓÚauctexµÄʹÓÃ˵Ã÷£¬Äã¿ÉÒԲο¼Ò»ÏÂauctexÔ´ÂëĿ¼ÖеÄINSTALLÎļþµÄµÚËIJ¿·Ö¡£
£¨9£©ÕâÀïÊÇÎÒµÄ
EmacsÔ¤ÀÀ¹«Ê½µÄ½Øͼ
¡£
£¨10£©ÒªÏëʹÓÃThusisµÄÄ£°å£¬»¹Òª°²×°CJKpunct.
´Ó
http://lsec.cc.ac.cn/cgi-bin/viewcvs.cgi/cct/CJKpunct/
ÏÂÔØCJKpunct.styºÍextended.chxÁ½¸öÎļþ£¬¿½±´½ø/usr/local/teTeX/share/texmf/tex/latex/CJK/Ŀ¼Ï¡£È»ºóÔÚrootÓû§ÏÂÖ´ÐÐtexhashÃüÁˢÐÂÎļþÃûÊý¾Ý¿â¡£
£¨11£©»¹ÐèÒªÏÂÔØ hypernat.sty¡£µ½CTAN.orgËÑË÷һϾÍÄÜÕÒµ½£¬ÕâÀï¸øÒ»¸öCTex¾µÏñµÄÏÂÔصØÖ·£º
ftp://ftp.ctex.org/CTAN/macros/latex/contrib/misc/hypernat.sty
È»ºó½«hypernat.sty¿½±´½ø/usr/local/teTeX/share/texmf/tex/latex/hyphenatĿ¼Ï£¬È»ºóÔÚrootÓû§ÏÂÖ´ÐÐtexhashÃüÁî¡£
£¨12£©ÏÂÔØccmap.sty
http://lsec.cc.ac.cn/cgi-bin/viewcvs.cgi/cct/ccmap/ccmap.sty
¿½±´½ø/usr/local/teTeX/share/texmf/tex/latex/cmap/Ŀ¼ÏÂ
Ö´ÐÐtexhashÃüÁî¡£
(13)dvipsµÄÉèÖãºÕÒµ½/usr/local/teTeX/share/texmf/dvips/config/config.ps
¼ÓÉÏÒ»¾ä£¨ÈÃdvipsÕÒµ½ÖÐÎÄ×ÖÌ壩
p +cjk.map
×¢Ê͵ô£¨Ä¬ÈÏdvipsÖ¸Ïò´òÓ¡»ú£¬¸ÄµôËü£©
o | lpr
(14)psµÄÖÐÎÄ×ÖÌ壺 ÉÐδ½â¾ö¡£