Next Previous Contents

9. Appendix B: ¦w¸Ë CTAN ªº teTeX ®M¥ó

¤@¯ë¦Ó¨¥¡A¦w¸Ë teTeX ®M¥ó¨Ã¤£¤ñ¦w¸Ë Linux ªºµ{¦¡¶°Ãø¡A½Ð¬Ý¥H¤U¡G ¤@¯ë CTAN ®M¥ó

¦pªG§AÄÝ©ó¤U­±±¡§Î¤§¤@¡AÀ³¸Ó¦Ò¼{¦w¸Ë¨Ó¦Û¨º¨Ç CTANªº teTeX ÀÉ®×®M¥ó¡G

¥i°õ¦æÀɪº§¹¾ã¦w¸Ë»Ý­n¬ù 40-50 Mb ªººÏºÐªÅ¶¡¡Aª½±µ¥Ñ¨Ó·½½X¦w¸Ë«h»Ý­n¤j¬ù 75 Mb¡A©Ò¥H§AÀ³¸Ó¦b¶}©l½sĶ¤§«e¡A½T©w¦³¨¬°÷ªººÏºÐªÅ¶¡¡CÁöµM¦b X µøµ¡¤¤¡A¥i¥H¹wÄýµ²ªG¡A§A¤£»Ý­n¤@©w­n¦w¸ËX µøµ¡¨t²Î¡A¤]¤£»Ý­n¦w¸Ë GCC ½sĶµ{¦¡¡A¥þ³¡©Ò§A»Ý­n¬O¤@­Ó¯à°÷½s¿è²³æªº ASCII ¤å¥óªº½s¿èµ{¦¡¡C°÷²³æ§a ?

§A¯à±q ªþ¿ý A¤¤¡A¥ô¦ó¤@­Ó CTAN ÀÉ®×®w¡A¨ú¦^³o¨ÇÀɮסA ¦b¤U­±ªº¨Ò¤l¤¤¡A¨º¨ÇÀɮ׬O±q CTAN ÀÉ®×®w¡A ftp.tex.ac.uk¡A³Q¨ú¦^ªº¡C

9.1 ¤G¶i¦ìÀÉ®×®M¥óªº¦w¸Ë

³Ì¤pªº¦w¸Ë

­º¥ý¡A¥Î FTP ³s¨ì ftp.tex.ac.uk ¨Ã cd ¨ì¤U¦C¥Ø¿ý¡Gy

ctan/tex-archive/systems/unix/teTeX/distrib/
¨ú¦^³o¨ÇÀÉ®×
INSTALL.bin
install.sh
§â¥L­Ì©ñ¦b§A­n¦w¸Ë teTeX ªº³Ì¤W¼hªº¥Ø¿ý¤¤¡AÁ|¨Ò¨Ó»¡¡A /var/teTeX ¦pªG§A­p¹º¦b /var ¤¤¦w¸Ë teTeX ¡C

§â INSTALL.bin ÀɮצL¥X¨Ó¡A¨ÃÄ~Äò«O¦s¥¦¡A¦]¬°¥¦´y­z¸Ó¦p¦ó¦w¸Ë¤@­Ó³Ì¤pªº teTeX ¨t²Î¡C³Ì¤pªº¦w¸Ë¥u»Ý­n 10-15 MBªººÏºÐªÅ¶¡¡A ¦ý¬O¦pªG¦³¥i¯à¡A«Øij§A¦w¸Ë§¹¾ãªº teTeX ¨t²Î¡C¹ï©ó³Ì¤pªº¦w¸Ë¡A§A±N·|»Ý­n¨º¨ÇÀɮסG

ctan/tex-archive/systems/unix/teTeX/distrib/base/latex-base.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/base/tetex-base.tar.gz
§A¤]±N·|»Ý­n¤W­z¨â­ÓÀÉ®×®w¤§¤@ªº teTeX ªº¥i°õ¦æÀÉ¡A¨ú¦^³o­ÓÀɮסG
ctan/tex-archive/systems/unix/teTeX/distrib/binaries/i386-linux.tar.gz
¦pªG§Aªº¨t²Î¨Ï¥Î Linux ELF shared libraries ¡A ld.soªºª©¥»¦Ü¤Ö­n 1.73 ¥H¤W¡A clibs «h¦Ü¤Ö­n 5.09 ¥H¤W¡A¦pªG¨S¦³¡A¨ú¦^¡G
ctan/tex-archive/systems/unix/teTeX/distrib/binaries/i386-linuxaout.tar.gz
³o¬O¨Ï¥Î¸û¦Ñªº a.out ÀRºAµ{¦¡®w½sĶ¦¨ªº¥i°õ¦æÀÉ¡C

µM«á¡A¨Ì INSTALL.bin,«ü¥Ü¡A¦b³Ì¤W¼hªº teTeX ¦w¸Ë¥Ø¿ý¤¤°õ¦æ©R¥O¡G

sh ./install.sh
( ½T©w¨º¨Ç teTeX Àɮפ]¦b¨º¸Ì ) ¡A¤ù¨è¤§«á¡A¦w¸Ëµ{¦¡·|ĵ§i§A¡A§A¥¿¦b¥¢¥h¤@¨Ç teTeX ÀɮסAµM¦Ó¡A§A¥u·Q¦w¸Ë¤@­Ó³Ì¤pªº teTeX ¨t²Î¡A©Ò¥H§A¤£¥Î²z¸Bĵ§i¡AÄ~Äò ¦w¸Ë¡C¦Ü©ó¦p¦ó³]©w¡A°Ñ¦Ò©³¤U °ò¥»¨t²Î³]©w¡C

­n¦w¸Ë¨º¨Ç¨ä¾lªºµ{¦¡¶°, ½Ð°Ñ¦Ò¤U¤@¸`¡C

§¹¾ã¦w¸Ë

¬°¤F­n¦w¸Ë§¹¾ãteTeX ªº¨t²Î¡A°£¤F¨ú¦^¤W­z¨º¨ÇÀɮסAÁÙ­n¨ú¦^¤U¦CªºÀɮסG

ctan/tex-archive/systems/unix/teTeX/distrib/doc/ams-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/bibtex-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/eplain-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/fonts-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/general-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/generic-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/latex-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/makeindex-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/metapost-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/doc/programs-doc.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/fonts/ams-fonts.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/fonts/dc-fonts.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/fonts/ec-fonts.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/fonts/misc-fonts.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/fonts/postscript-fonts.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/fonts/sauter-fonts.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/amstex.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/bibtex.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/eplain.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/latex-extra.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/metapost.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/pictex.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/pstricks.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/texdraw.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/goodies/xypic.tar.gz
©Ò¦³³o¨ÇÀɮסAÀ³¸Ó³Q©ñ¦b§A­n¦w¸Ë teTeX ¨t²Îªº³Ì¤W¼hªº¥Ø¿ý¤§¤º¡A©M³Ì¤pªº¦w¸Ë¤@¼Ë¡A°õ¦æ©R¥O¡G
sh ./install.sh

9.2 °ò¥»¨t²Î³]©w

¨M©w­n¨º¤@ºØ¡@teTeX ¤§«á¡A°õ¦æ install.sh ·|¥X²{¤@¨Ç¿ï¶µªº¥Ø¿ý¡A°ß¤@»Ý­nªº³]©w¡A´N¬O " D " ¿ï¶µ¡A§Y¿ï¾Ü­n¦b¨ºùئw¸Ë¡@teTeX¡@¨t²Îªº³Ì¤W¼hªº¥Ø¿ý¡A·íµM¦b³o­Ó¥Ø¿ý¤¤¡A§A¥²¶·¾Ö¦³¼g¤JªºÅv§Q¡AÁ|¨Ò¨Ó»¡¡A§A¥¿¦b§Aªº®a¥Ø¿ý¸Ì¦w¸ËteTeX ¡A§A¥²¶·«ü©wteTeX ¦w¸Ëªº¥Ø¿ý¬°¡G

/home/john.q.public/teTeX
µM«á¦^¨ì¥D­nªº¥Ø¿ý¤§«á¡A¦A¿ï " I " ¿ï¶µ¡AÄ~Äò¦w¸Ë¡A³o¥Ø¿ý¥i¥H¤£¦s¦b¡Ainstall.sh ·|¦Û°Ê²£¥Í³o¥Ø¿ý¡C

§Y¨Ï§A­p¹º¥u¨Ï¥Î Postscript ®æ¦¡¡B Type 1 ¦r«¬©Î°¸¦Ó¨Ï¥Î Computer Modern ¦r«¬¡A§AÁÙ¬O¥i¥H¦Ò¼{¥t¤@­Ó¿ï¶µ¡A³]©w¤@­Ó¨ä¥¦ªº¥Ø¿ý¡A¦s©ñ²£¥Íªº¦r«¬¡A§AÁÙ­n¦³³o¥Ø¿ýªº¼g¤JÅv§Q¡C±µ¤W­±¨Ò¤l¡A§A¯à«ü©w¡G

/home/john.q.public/texfonts
©ÎªÌ¡A§A·QÅý¨t²Î¤Wªº©Ò¦³ªº¨Ï¥ÎªÌ¡A³£¯à¨Ï¥Î³o¨Ç²£¥Íªº¦r«¬¡A´N§â³o©ñ¦r«¬ªº¥Ø¿ý¥O¬°¡G
/var/texfonts
§Ú«Øij ¤£­n §â³o¥Ø¿ý¥O¬°/var/tmp/texfonts ¡A¦]¬°¦³¥i¯à¦b¨t²Î­«·s±Ò°Ê¤§«á¡A³o¨Ç¦r«¬·|³Q§R°£±¼¡A¦Ó¦b¤U¦¸­n¨Ï¥Î³o¨Ç¦r«¬®É¡A¤S­n­«·s»s³y¡C

¦b¿ï¤F " I " ¿ï¶µ«á¡A install.sh ·|Ä~Äò¦w¸Ë¡A³]©w¤£¦Pªº¤¹³\Åv¡A³sµ²Àɮץؿý¡A¨Ã½sĶÀɮסA³Ì«áµ²§ô¸õ¥X¡A¨Ã·|´£¿ô§A¡A§âteTeX ªº°õ¦æÀɥؿý¡A¥[¤J$PATHÀô¹ÒÅܼƤ¤¡Aman pages ©M info ÀÉ©Ò¦b¥Ø¿ý¡A¤À§O¥[¤J$MANPATH©M$INFOPATH Àô¹ÒÅܼƤ¤¡A¨Ò¦p¡A¦pªG§A¨Ï¥Îbash shell ¡A«h§â¤U¦C«ü¥O¥[¤J~/.profile¤¤¡G

export PATH=$PATH:"/home/john.q.public/teTeX/bin"
export MANPATH=$MANPATH":/home/john.q.public/teTeX/man"
export INFOPATH$=INFOPATH":/home/john.q.public/teTeX/info"
¦pªG§A¨Ï¥Î§OºØ shell ¡A«h¥[¤J  /.profile ¤¤¡CµM«áñ¥X¦Añ¤J¡A¨ÏÀô¹ÒÅܼƭ«·sµn¿ý¡A¦A°õ¦æ¡G
texconfig confall
¥H½T©w¦w¸Ë¬O¥¿½Tªº¡C

±µµÛ¡A§A¯à¬°¯S©wªºµwÅé³]©w teTeX ¡A°Ñ¦Ò©³¤U ¦w¸Ë§¹«á³]©wªº²Ó¸`

9.3 CTAN ¨Ó·½½X®M¥óªº¦w¸Ë

­n±qµ{¦¡½X¦Û¦æ½sĶ¦w¸Ë teTeX V. 0.4 ¡A¥ý¥Î ftp ¨ì CTAN¡A¦p ftp://ftp.tex.ac.uk ¡A§ì¨ú¡G

ctan/tex-archive/systems/unix/teTeX/distrib/INSTALL.src
ctan/tex-archive/systems/unix/teTeX/distrib/sources/README.texmf-src
ctan/tex-archive/systems/unix/teTeX/distrib/sources/teTeX-lib-0.4pl8.tar.gz
ctan/tex-archive/systems/unix/teTeX/distrib/sources/teTeX-src-0.4pl7.tar.gz

¥ý¬Ý INSTALL.src¤¤ªº«ü¥Ü¡A¦A¥Î suÅܬ°¨t²ÎºÞ²zªÌ¡AµM«á¦b¤@­Ó§A¦³Åª¡A¼g¡A°õ¦æµ¥Åv§Qªº¥Ø¿ý¤¤¡A¸Ñ¶}³o¨ÇÀɮסC

°O±otar­n¥Îp¿ï¶µ¡A¦Ó¥B¤]­n°O±o¦bbash¤¤ unset ¡Anoclobber¿ï¶µ¡A§A¥i¥H³o¼Ë¤U©R¥O¡G

set +o noclobber
+o ´N¬O ³]©w ¨ú®ø¤@­ÓÅܼơA´N¹³¹w´Á·|§@¥Î¡A¦ý¬O¨Sµo¥Í¤@¼Ë¡C

¸Ñ¶} teTeX-lib-0.4pl8.tar.gz ·|²£¥Í./teTeXªº¥Ø¿ý¡A¸Ñ¶} teTeX-src-0.4pl7.tar.gz ·|²£¥Í teTeX-src-0.4 ªº¥Ø¿ý¡A¦C¦LINSTALL.src ¡A¦Ó¥B«O¦s¦b¤âÃä¡A¥H«K¬°¤U¦C¨º¨Çªº¨BÆJ¨Ï¥Î¡C¦A ¤Á´« ¨ì ./teTeX-src-0.4 ªº¥Ø¿ý¡A¨Ì INSTALL.src ªº»¡©ú¡A­×§ï./Makefile¡C§AÁÙ¶·­n§â teTeX ©Ò¦bªºµ´¹ï¥Ø¿ý¡A¥O¬° TETEXDIR ªºÀô¹ÒÅܼơA³o¥Ø¿ý±N·|¬O§A¸Ñ¶}¨Ó·½½X©Mµ{¦¡®wÀɮשҦb¥Ø¿ýªºteTeX¤l¥Ø¿ý¡CÁ|¨Ò¨Ó»¡¡A¦pªG§A¦b¦Û¤vªº®a¥Ø¿ý¸Ñ¶}³o¨ÇÀÉ¡A´N§âTETEXDIR ¥O¬°¡G

/home/john.q.public/teTeX
³Ñ¤UMakefileªº¨ä¥L¿ï¶µ´N©M¤@¯ë®t¤£¦h¡A°£«D§A¨Ï¥Î¤@­Ó«D¼Ð·Ç¤Æªº½sĶ¾¹©Mµ{¦¡®wªº³]©w¡A©ÎªÌ­n½sĶ¾¹°µ§ó¦hªº³Ì¨Î¤Æ¡A©Î¨ä¥L­ì¦]¡A§_«h¥u­n GCC ªºª©¥»¬° 2.7.2©Î§ó·sªº´N¥i¥H¤F¡C¦]¬°½sĶ¹Lµ{¡Adialogµ{¦¡¨Ï¥Î¨ì ncurses µ{¦¡®w¡A©Ò¥HÁÙ­nÀˬdUSE_DIALOG¡AUSE_NCURSES©MHAVE_NCURSES ªºÅܼơA¬O§_³]©w¥¿½T¡C¦b¦w¸Ë®M¥óùØ¡A´N¥H¸g¥]§t¤Fncurses µ{¦¡®w¡A©Ò¥H Makefile ¥i¯à·|«Ü¶¶§Q¡A¦pªG§A¨S¦³ ncurses ¡A¥i¨Ñ³sµ²½sĶ¡Atexconfig ¨ÌµM¯à°õ¦æ¡C

¦pªG¨ì³oùØ¡A¨C¥ó¨Æ³£«Ü¥¿½T¡A§A´N¯à¦b³Ì¤W¼hªº¨Ó·½¥Ø¿ý¸Ì¡A°õ¦æ make world ¡Aµ¥¨ìteTeX ªº°õ¦æÀɳy¥X¨Ó¡A¦w¸Ë´N§¹¦¨¤F¡A³o¥i¯à­nªá´X­Ó¤p®É¡C

¦b¦w¸Ë§¹¦¨¤§«á¡A­n§â teTeX ¥Ø¿ý¥[¤J $PATH ¡A $MANPATH¡A $INFOPATH¨º¨ÇÀô¹ÒÅܼƤ§¤¤¡A©Ó¤W¨Ò¡A¥u­n¦b~/.bash_profile ÀÉ®×¥[¤J¡G

export PATH=$PATH":/home/john.q.public/teTeX/bin/i386-linux"
export MANPATH=$MANPATH":/home/john.q.public/teTeX/man"
export INFOPATH=$INFOPATH":/home/john.q.public/teTeX/info"
¥Î¨Ó·½½X¦w¸Ë©M¥Î¥H½sĶ¦nªº¤G¶i¦ì½X¦w¸Ë¡A $PATH ÅܼƬO¤£¦Pªº¡A«eªÌªº¥i°õ¦æÀɪº¸ô®|¬O teTeX/bin/i386-linux ¡A¦Ó«áªÌ¬OteTeX/bin¡C

¨ì³oùØ¡A§A¯à°õ¦æ texconfig confall ¡A½T©w¨º¨Ç¸ô®|¤w¸g¥¿½T¦a³Q³]©w¡AµM«á¶i¦æ¦p¦P©M¥Î¦w¸Ë¥i°õ¦æÀɪº¨BÆJ¤@¼Ë¡A°Ñ¦Ò ¦w¸Ë§¹«á³]©wªº²Ó¸`¡C

9.4 ¦w¸Ë§¹«á³]©wªº²Ó¸`

­º¥ý°Ñ¦Ò Thomas Esser ªºREADME ÀɮסA¥¦¥]§t³\¦h¡A¦p¦ó³]©wteTeX ªº¿é¥X¸Ë¸m ( ¤]´N¬O¡A¦Lªí¾÷ ) ªº·t¥Ü¡C READMEÀɮצì©ó¥Ø¿ý¡G

/usr/lib/teTeX/texmf/doc/tetex
¥Î¤U¦C©R¥OÂsÄý³oÀɮס] ¦b¦¹¬O¨Ï¥Î Slackware ®M¥ó ¡^¡G
less /usr/lib/teTeX/texmf/doc/tetex/README
©Î¥Î³o©R¥O¦C¦L¥X¨Ó¡G
cat /usr/lib/teTeX/texmf/doc/tetex/README >/dev/lp0
°²©w§Aªº¦Lªí¾÷³Q³s±µ¨ì /dev/lp0¡C ¦pªG¤£¬O¡A«h¾A·íªº­×§ï¦¨³s±µªº¸Ë¸m¡C

©ÎªÌ¨Ï¥Î lpr©R¥O¡G

lpr /usr/lib/teTeX/texmf/doc/tetex/README
§AÀ³¸Ó¦b¦w¸Ë Linux ®É¡A¤w¸g¶¶«K¦w¸Ë¦Lªí¾÷ daemon ¤F¡A¦pªG¨S¦³¡A¦A¨Ì¦w¸Ë¹Lµ{¡A­«·s¦w¸Ë¤@¦¸¡C

¦L¥X teTeX-FAQ. ¡A¨Ã©ñ¦b¤âÃä¡A¥¦¥]§t³\¦h¦p¦ó³]©wteTeX ªº¦Lªí¾÷ÅX°Êµ{¦¡ªº·t¥Ü¡A¦b¤ñ¸û·sªº teTeX ª©¥»¤¤¡A«h¥iª½±µ¥Ñtexconfig¬Ý¨ì teTeX-FAQ ¡C

µM«á¡A§A­n©w¸q¤@­Ó¥Ø¿ýÀx¦s§Aªº¦Û¤vªº TeX ®æ¦¡ÀɮסCteTeX ·|·j´M¡A¦b¨t²Î¤ºªº/etc/profileÀÉ¡A³Q¦C¦b $TEXINPUTS Àô¹ÒÅܼƤ¤¨º¨Ç¥Ø¿ý¤ºªº TeX ¿é¤JÀɮסG

export TEXINPUTS=".:~/texinputs:"
­Ó§Oªº¨Ï¥ÎªÌ¡A«h§â¥¦¥[¤J¥L­Ìªº~/.profile ¤¤¡A©Î¥[¤J~/.bash_profile ¡A¦pªG¨Ï¥Î bash ªº¸Ü¡C$TEXINPUTS Àô¹ÒÅܼơA§i¶DteTeX ¡A¨ì¨Ï¥ÎªÌªº®a¥Ø¿ý¤§¤Uªº~/texinputs ¥Ø¿ý¡A¥h´M§ä¨Ï¥ÎªÌªº­Ó§O TeX ®æ¦¡ÀɮסA­n½T¹êªº ¦b¥Ø¿ý«e­±©M«á­±¥[¤W«_¸¹¡A¤]´N¬O§â·j´M¨ìªºµ²ªG¡Aªþ¥[¨ì§Aªº¥Ø¿ý¡C­º¥ý§A¥²¶·¨Ï teTeX ¥h·j´M³¡¤Àªº®æ¦¡ÀɮסAµM«á¥¦¦A¨Ï¥Î§A½s¿è¹Lªº¼Ð·Ç®æ¦¡Àɮתº³¡¤Àª©¥»¡C

¦pªG§A¥HºÞ²zªÌªº¨­¥÷¦w¸ËteTeX ¡A§â/usr/lib/teTeX/bin ¥Ø¿ý¡A¥[¤J¨t²Îªº¸ô®|¡A­Y§A¬O¦Û¤v­Ó¤H­n¦w¸Ë¡A§â teTeX ªº°õ¦æÀɪº¥Ø¿ý¡A©ñ¨ì~/.profile ©Î~/.bash_profile¤¤$PATHªº«e­±¡G

export PATH="~/tetex/bin:"$PATH
²{¦b¥H root¨­¥÷ñ¤J¡A¨Ã¨ÌteTeX-FAQ«ü¥Ü¡A°õ¦ætexconfig¡A¦Ó¥B¿ï¾Ü»P§A¨t²Î³s±µªº¦Lªí¾÷¡A½T©w§A¦b teTeX ¤¤¡A¬O§_¥¿½Tªº³]©w¦n¦Lªí¾÷©M¦Lªí¾÷¸ÑªR«×¡C

³Ì«á°õ¦ætexhash ¡A¥H½T©w teTeX ªº¤º¦b¸ê®Æ®w¬O³Ì·sªº¡A¸ê®Æ®w¹ê»Ú¤W¬O¤@­Óls-lRÀɮסA¨C¤@¦¸§ïÅܨt²Îµ²ºc¥²¶· °õ¦æ texhash¡A§_«h teTeX ±N¤£¯à°÷§ä¥X§A§ïÅܪº¦a¤è¡C


Next Previous Contents