The teTeX HOWTO: Linux-teTeX ³¡¥÷«ü¾É
Robert Kiesling
v3.7, 9 November 1998
_________________________________________________________________
³o¥÷¤å¥ó¡A¥Dn²[»\¦b^¤å Linux ®M¥ó¤¤ªºteTeX ¡A TeX ¡A LaTeX ªº°ò¥»¦w¸Ë
©M¥Îªk©M¨ä¥Lªº»²§Uµ{¦¡¶°¡A¨Ò¦p Ghostscript ¡C teTeX HOWTOªº¤º®e:
Linux-teTeX ³¡¥÷«ü¾Éªºª©Åv¡AÄÝ©óRobert A. Kiesling 1997 ¡A 1998 ¡A½T¹ê
¤º®e¡A¦b²¤¶©Mªþ¿ý¤¤¡Aµù¥Uªº°Ó¼Ð¡A¤À§OÄÝ©ó¾Ö¦³ªÌ¡C¥ô¦ó©ê«è¡A´£Ä³¡A¿ù»~
©M¨ä¥L¥ô¦óªº¨Æ¡A½Ð±Hµ¹ [1]kiesling@ix.netcom.com ¡A¨Ï±o³o¤å¥ó¾¨¶q¯à°÷«O
«ù§¹¾ã¨Ã¥B¸ò±o¤W³Ì·sªºµo®i¡C
_________________________________________________________________
1. ¤¶²Ð
* 1.1 ª©Åv.
* 1.2 ¦b³o¥÷¤å¥ó¤¤´yzªº³nÅé
2. ¨Ï¥Î teTeX.
* 2.1 ¦C¦L¤å¥ó
3. TeX ©R¥O
* 3.1 «ü¥O·§½×
* 3.2 ¦r«¬©R¥O
* 3.3 ¬q¸¨«¬ºA©M¤Ø¤o¤j¤p
* 3.4 ¶±³]p
* 3.5 ¶¼Æ¡B¼Ðº©Mµù¸}
* 3.6 ¼ÐÃD©M¥¨¶°
4. LaTeX ©R¥O
* 4.1 ¤å³¹¬[ºc
* 4.2 ¦r¤¸»P¤º¤å«¬ºA
* 4.3 Ãä½t©M¦æ¶Z
* 4.4 ¤å³¹®æ¦¡
5. LaTeX ÂX¥Rµ{¦¡¶°»P¨ä¥L¸ê·½
6. ¥Î dvips ²V¦X¤å»P¹Ï
* 6.1 ¦pªG§Úªº¦Lªí¾÷¤£³Q¤ä´©¡A«ç»ò¿ì¡H
7. ¨Ï¥ÎPostscript¦r«¬
8. Appendix A: CTAN ºô§}¦ì¸m¥Ø¿ý
9. Appendix B: ¦w¸Ë CTAN ªº teTeX ®M¥ó
* 9.1 ¤G¶i¦ìÀÉ®×®M¥óªº¦w¸Ë
* 9.2 °ò¥»¨t²Î³]©w
* 9.3 CTAN ¨Ó·½½X®M¥óªº¦w¸Ë
* 9.4 ¦w¸Ë§¹«á³]©wªº²Ó¸`
10. ¡@ªþ¿ý 3¡G ®M¥ó©Mª©Åv
* 10.1 ®M¥ó
* 10.2 GNU GENERAL PUBLIC LICENSE
* 10.3 How to Apply These Terms to Your New Programs
_________________________________________________________________
1. ¤¶²Ð
1.1 ª©Åv.
teTeX-HOWTO ¬OÄÝ©ó Robert Kiesling (C) 1997 ¡A 1998 ªºª©Åv¡C¦b«O¦³ª©Åv
³q§i©M³\¥i³q§i¤U¡A¤¹³\»s³y¨Ã¥B´²§G³o¥»¤â¥U¡A¦bªþ¦³ì¥ý " Distribution
" ©M " GNU General Public License " ¤U¡A¤¹³\½Æ»s¨Ã¥B´²§Gקï¹Lªº¤â¥U¡A
¨Ã©M«eªÌ¤@¼Ë¡A¤¹³\Åý¤H´²§Gקï¹Lªº¤â¥U¡C¦P®É©Mקï¤â¥Uªºì«h¤@¼Ë¡A¤¹³\
½Æ»s¨Ã¥B´²§G½Ķ¦¨¥¦ºØ»y¨¥ªº¤â¥U¡A°£¤Fnªþ¤W Free Software Foundation
»{¥iªº " Distribution " ©M " GNU General Public License " ªºÂ½Ä¶¥»¡A½Ð
°Ñ¦Ò [2]´²§G»Pª©Åv
1.2 ¦b³o¥÷¤å¥ó¤¤´yzªº³nÅé
TeX ¥u³B²z®æ¦¡¤å¥óªº³¡¥÷¡C±qTeX ²£¥Í¿é¥X¡A´N¹³§â¨Ó·½½X½s¦¨¥Øªº½X¡AÁÙ»Ý
n³sµ²¡C·Ç³Æ¤@ӥΤå¦r½s¿èµ{¦¡¿é¤J¤@ÓÀÉ®× ---- §Y¤j¦h¼Æ¤H©Ò¿×ªº `` ¤å
®Ñ³B²z '' --- ¦A¥Î TeX ¡A§â¥¦½sĶ¦¨¤@Ó»P³]³ÆµLÃöªº¿é¥XÀɮסA¥s§@dviÀÉ
¡C§A¤]»Ýn¤@©Î¤GÓµ{¦¡¡A½Ķ TeX ªº dviÀÉ¡A¥Ñ§AªººÊµø¾¹©Î¦Lªí¾÷¿é¥X¡A³o
¨Çµ{¦¡³Q³qºÙ¬° " dviware " ¡AÁ|¨Ò¨Ó»¡¡A TeX ¥uµo¥X¨Ï¥Î¦r«¬n¨D¡A¤£ºÞ¬O
¥ÑºÊµø¾¹©Î¦Lªí¾÷¿é¥X¡A³£¬Odvi½Ķ¾¹´£¨Ñ¯u¹êªº¦r«¬¡A¥H¨Ñ¿é¥X¡C³oÓÃB¥~ªº
¨BÆJ¡A¦n¹³«Ü½ÆÂø¡A¦ý¬O¥¦¥unµy·L§ó§ï©Î¬Æ¦Ü¤£¥Î§ïÅÜ¡A´N¥i¥H¦b¤£¦Pªº¸Ë¸m
¤W¡AÅã¥Ü¬Û¦Pªºµ²ªG¡C
teTeX.
TeX¥i¥H³Q¥@¬É¤W¨C¤@Ó«nªº¹q¸£¨t²Î --- ©M¬Û·í¦hªº " «D«nªº¹q¸£¨t²Î
" --- ©Ò¨Ï¥Î¡A¦]¦¹¤@¤è±¡A°ò©óteTeX's ¥»¨ªº½ÆÂø©Ê¡A¥t¥~¦Ò¼{¨ì¦w¸Ë TeX
ªº½ÆÂø©Ê¡A¥²¶·´£¨Ñ¦w¸Ë³o¨Ç¨t²Îªº¤u¨ã¡A¥H«K©ó¨Ï¥Î¡C°£«D§A¤w¸g¼ô±x TeX¨t
²Î¡A§_«h¦w¸Ë³o¨t²Î¬O¤@¥óÁ}¹dªº¤u§@¡A«Ü®e©ö¦b°õ¦æ¤@¤j°ïµ{¦¡¡A¤Î¦w¸Ë TeX
ÀɮסA¤å¥ó©M¦r«¬¤¤°g¥¢±¼¡C
©¯¹B¦a¡A teTeX ¬O¤@Ó GNU/Linux ®M¥ó¡A«Ü®e©ö§Q¥Î GNU/Linux ªº¦w¸Ë¤u¨ã¡A
´N¯à¸Ë¦n³oµ{¦¡¶°¡C§A¥i¯à¤w¸g¦b§Aªº¨t²Î¤W¸Ë¦n¤FteTeX ¡A¦pªG¬O³o¼Ë¡A§A¥i
¸õ¹L [3]¨Ï¥Î teTeX³o¤@¸`¡CµL½×¦p¦ó¡A¦w¸Ë¤@Ó¯à¥Îªº teTeX ¡A©Ò»ÝªºÀɮסA
³£¦bºô¸ô¤Wªº CTAN ¸ê®Æ®w§ä±o¨ì¡A¦b [4]CTAN ºô§}ªí¦³³o¨Ç¦ì§}ªº¥Ø¿ý¡C
CTAN ¬O¼sªxªº TeX Archive ºô¸ô¡A§Y¤@¨t¦C¥i¨Ï¥Î°Î¦WªºFTP ºô¯¸¡A¨ä¤¤¥]
§tTeX µ{¦¡¥¨¶°¡A¦r«¬¡A©M¤å¥ó¡C¦b¨Ï¥Î TeX ¤¤¡A§A¦Ü¤Ö·|¼ô±x¤@Ó CTAN ¦ì§}
¡A¦b³o¤å¥ó¤¤¡A¤@Ó¸ô®|¹³~CTAN/contrib/pstricks ¦WºÙ¡A¥Nªí¨ì³Ì¾aªñ§Aªº
CTAN ºô¯¸¡A§ä´M¹³contrib/pstricksªº¥Ø¿ý¡C
¦b [5]¦w¸Ë CTAN teTeX ®M¥ó¤@¸`¤¤¡AµÛ«©ó¦bIntel ª©ªº Linux ¤¤¡A¦w¸Ë¤@¯ë
ªºteTeX ®M¥ó¡C·Q¦b¨ä¥LªºµwÅé¤W¦w¸ËteTeX ¡A¥un¦b¦w¸Ëµ{§Ç¸Ì¡A§ó´«¾A·íªº
¥i°õ¦æÀÉ´N¥i¥H¤F¡C°£¤F¥i°õ¦æÀɤ§¥~¡A³o®M¥ó¬A©Ò¦³ªº TeX ©M LaTeX ªºµ{¦¡
¶°¡Ametafont ©M¨Ó·½½X¡Abibtex ¡A makeindex ©M ©Ò¦³ ªº¤å¥ó ... ¥þ³¡¶W¹L
4¦Ê¸UӦ줸¼Æ¡C
³o¥÷»¡©ú¤å¥ó¡A²[»\¤F¡A¦b¦w¸Ë¶}©l¤§«e¡A§A¥²¶·ª¾¹Dªº¨C¥ó¨Æ¡A©Ò¥H¡A§AÀ³¸Ó
¦w¸Ë©Ò¦³ªº»¡©ú¤å¥ó¡C¤£¶È§A¥H«á·|°Ñ¦Ò¨ì¥LÌ¡A¦P®É³o¨Ç¤å¥ó¡A¥»¨¤]´£¨Ñ³\
¦hTeX ©M LaTeX ¨Ò¤lªº¨Ó·½½X¡C
TeX ¥Ñ Stanford ¤j¾Çªº Donald Knuth ±Ð±Â©Ò¼gªº¡C¥¦¬OÅý¹³ LaTeX ¨º¼Ëªº°ª
¶¥µ{¦¡¶°¡A¥Î¨Ó±Æª©ªº§C¶¥»y¨¥¡A¹ê»Ú¤W¡A LaTeX ¬O¤@Ó´£¨Ñ¨Ï¥ÎªÌ¡A§ó¤è«K¡A
¨Ã¹w¥ý©w¸q¤å¥ó®æ¦¡ªº TeX ¥¨¶°¡C¦pªG§A³ßÅw¨Ï¥Î LaTeX ´£¨Ñªº®æ¦¡¡A§A´N¤£
»Ýn¾Ç²ßì©lªº TeX µ{¦¡»y¨¥¡C¤GºØ»yªk¤§¶¡ªº®t²§¡A´N¹³²Õ¦X»y¨¥©MC »y¨¥¤§
¶¡ªº®t²§¡C§A¥i¿ï¾Ü TeX ªº³t«×©M¼u©Ê¡A©ÎªÌ LaTeX ªº¤è«K©Ê¡C¶¶«K¤@´£ "
TeX " ¬O§Æþªº¦r¥À¡A tau-epsilon-chi ¡A¥¦¤£¬O¥Nªí¥S§Ì·|¡A¦Ó¬O¤@Ó§Æþ¦r
¡Atechne¡A¥NªíÃÀ³N¤Î[©Î]¬ì¾Ç¡C " TeX " ªºµoµ¤£¹³ " Texas " ¡Achi¡A¤]¨S
¦³Ãþ¦üªº^¤åµoµ¡A¨ÌKnuth ©Ò¼gTeX «nªº°Ñ¦Ò®ÑThe TeXBook©Ò¨¥¡A¥¦¹³
"yecch" ªºµoµ¡A·í§ÚÌ´£¨ì " TeX " ®É¡A³q±`´N¥Î¤j¼g¡A©ÎªÌ¦b±Æª©®É¡A
¥Î\TeX{} ¥¨¶°¡C
¤å¦r½s¿è¾¹
¥ô¦ó¤@Ó¦b Linux¤§¤U¤u§@ªº½s¿è¾¹---jed ¡A joe ¡A jove ¡A vi ¡A vim ¡A
stevie ¡A Emacs ©M microemacs --- ³£¥i¥H¥Î¨Ó½s¿è¤@Ó TeX ¿é¤JÀɮסA¥un
½s¿è¾¹¯à°÷Ū¼g¤@¯ë ASCII ¥»¤å´N¥i¥H¤F¡C§Ú¦Û¤v°¾·R¨Ï¥Î GNU Emacs ¡A³o¦³
´XÓ²z¥Ñ¡G
* §A¯à¥Î Emacs ªº TeX ©M LaTeX ¼Ò¦¡¡A¨Ó®æ¦¡¡A¹wÄý©M¦C¦L¤å¥ó¡C
* Emacs·|¦Û°Ê¦aÀ°§A´¡¤J TeX §Î¦¡ªº¤Þ¸¹¡A³Ó©ó¤@¯ë "ASCII-vanilla" ¡C
* Emacs ¤w¸g¾ã¦X¨Ã¤ä´© Texinfo¡A¤@ºØ¶W´CÅé¤å¥ó¨t²Î¡C
* Emacs ¼sªx¦a³Q¤ä´©¡CÁ|¨Ò¨Ó»¡¡A^¤åLinux ®M¥ó¡A¥]§t19.34 ª©©Î¸û·sªº
ª©¥»¡A GNU³Ì·sªºª©¥»¬O 20.3¡C
* °£¤F¦b¦R¥q¤W¥[¤W¥¤ªo¥H¥~¡AEmacs ¯à°µ¨C¥ó¨Æª«¡C
* Emacs ¬O§K¶Oªº¡C
dvips.
Tomas Rokicki ªºdvips ¡A¯à±qdvi Àɮײ£¥Í Postscript ÀɮסC°£¦¹¤§¥~¡A¦p
ªG¦³»Ýn¡A¥¦·|°õ¦æMetafont ¡A»s³y¿é¥X®É¡A©Ò»ÝnªºÂI¬M®g¦r«¬©Î
Postscript ¦r«¬¡C¥¦¤]¯à¤À³Î¡A©ñ¤jÁY¤p¨C¶ª©±¤j¤p¡A¨Ó©ñ¸m¥Ñ TeX ©Î
LaTeX «ü¥O©Ò²£¥Íªº¹Ï§Îªºµ²ªG¡C dvips µ{¦¡¬O teTeX ®M¥óªº¤@³¡¥÷¦b¡A [6]
¥Î dvips²V¦X¤å»P¹Ï³o¤@¸`¤¤¦³§¹¾ãªº°Q½×¡C
¦r«¬
¤j³¡¥÷ TeX¡Aªº½ÆÂø©Ê¡A¬O¥Ñ¦p¦ó¨Ï¥Î¤£¦Pªº¦r«¬¨t²Î¡A¤Î«ü©w¦r«¬ªº¤è¦¡¡A©Ò
¤Þ°_ªº¡A¦]¦¹ LaTeX ¤]¤@¼Ë½ÆÂø¡C
LaTeX 2e ¤ñ«e¨ÁÙn¦nªº¤@Ó¥Dn§ï¶i¡A´N¬O±Ä¥Î¤F¨Ï¥ÎªÌ«ü©w¦r«¬ªº¤èªk
¡ANew Font Selection Scheme¡A¦b [7]¦r¤¸»P¤º¤å«¬ºA¡A [8]¦r«¬©R¥O¡A [9]¨Ï
¥ÎPostscript ¦r«¬µ¥¤p¸`¤¤¦³°Q½×¡C teTeX °t¸m¤F³\¦h¼Ð·Ç¦r«¬¡A¨¬°÷§A¨Ï¥Î
¡A¤]´£¨Ñ´yz¦r«¬¤j¤pµ¥¸ê®Æªº tfm ¡A(TeX font metric) ¡A ÀÉ¡C¬°¤Fn²£¥Í
¨ä¥L»Ýnªº¦r«¬¡A¥un¦w¸Ë metafont ´N°÷¤F¡A teTeX ªºdvi ¤½¥Îµ{¦¡¡A·|©I¥s
metafont ¡A¦Û°Ê²£¥Í©Ò¶·ªº Computer Modern ¦r«¬¡C
2. ¨Ï¥Î teTeX.
²z½×¤W¡A¨ì¥Ø«e¬°¦ó¡A¨CÓ¹Lµ{³£¤w¸g¥¿½T¦a³Q¦w¸Ë¦n¡A¦Ó¥B¥i¥H¨Ï¥Î¤F¡C
teTeX ¬O¤@Ó«D±`¤jªº³nÅéµ{¦¡¶°¡A©M¨Ï¥Î¨ä¥L½ÆÂøªº³nÅéµ{¦¡¶°¤@¼Ë¡A¤£n³Q
¨ä½ÆÂø©ÊÀ~¨ì¡A¦Ó¬OnÂǥѺCºC¦a¾Ç²ß teTeX ¨Ó¶}©l¡C¦P®É¡A§ÚÌn³nÅé°µ¨Ç¦³
¥ÎªºªF¦è¡A¦]¦¹¤£»Ý¬Ý TeX ±Æª©¡A¹³
``Hello, World!''
³o¼Ëªº¤å¥ó¡A¦Ó¦p¦PKnuth ±Ð±Â´£Ä³¤@¼Ë¡A§Ú̦ۤv±N·|¬°¤F´ú¸Õ¥¦¡A¦Ó²£¥Í¤@
¨Ç teTeX's ªº¤å¥ó¡C
2.1 ¦C¦L¤å¥ó
¸Ë¦nteTeX ¤§«á¡AÀY´X¦¸n¥H root ªº¨¥÷¡A°õ¦æµ{¦¡¡A§_«h Metafont ´N¤£·|
²£¥Í©ñ¦r«¬¥²»Ýªº¥Ø¿ý¡Ctexconfig¤º¦³¥]¬A¤@ӿﶵ¡A¨Ï¨º¨Ç¦r«¬¥Ø¿ý¡A¯à°÷Åý
©Ò¦³¤H¨Ï¥Î¡A¦ý¬O¦pªG§A¦b¤@Ó¦h¤H¨Ï¥Îªº¨t²Î¨Ï¥Îªº¸Ü¡A¥Ñ©ó¦w¥þ¦Ò¼{¡A¥i¯à
¨Ï³o¿ï¶µ¡AÅܦ¨¤£¹ê¥Î©Î¤£¨üÅwªï¡C¦pªG§A¨S¦³¾A·íªº¨º¨Ç¦r«¬Àx¦s¥Ø¿ýªº¼g¤J
³\¥i¡A Metafont ±N·|¤@ª½¤ÏÀ³¡A¥¦µLªk»s³y³o¨Ç¥Ø¿ý¡A¦]¦¹§A·|¦³¤@ªø¦ê¹sªø
«×¦r«¬ªº¦r¡A©Ò¥H§A±N¬Ý¤£¨£¥ô¦óªº¿é¥X¡C³o¤£¬O°ÝÃD¡A¥unñ¥X¡A¦A¥Hrootªº
¨¥÷¡A«½Æè誺¾Þ§@¡A´N¥i¥H¤F¡C
teTeX ³Ì´Îªº¨Æ¡A´N¬O§A¥ÎÃa¤F¡A¤]¤£·|¦³¹ê½è¤Wªº¶Ë®`¡A¤£¹³Â½Ä¶¾¹¡A¦pªG§Ë
±¼¤F¤@Ó«ü¼Ð¡A¦³¥i¯à·´¤Froot ªº¤À³Î°Ï¡C¤°»ò¡A§AÁÙ¨S¦³Åª¹L teTeX ¨Ï¥Î¤â
¥U ? ·íµM§AÁÙ¨S¦³Åª¹L¡A¥¦¤´µM¥H¨Ó·½½Xª¬ºA¡A¦s¦b®M¥óùØ¡Aµ¥«Ý¿é¥X¡C¦]¦¹§A
¤£n¦A¯ÔÀÁ¡AnŪ¤@¤U teTeX ¤â¥U¡A¥¦¦ì©ó¤U¦C¥Ø¿ý¤¤¡G
/usr/lib/teTeX/texmf/doc/tetex.
LaTeX ¤â¥U¨Ó·½¡A³Q¥s°µTETEXDOC.tex ( TeX ©M LaTeX Àɮתº°ÆÀɦW¡A³£
¬°tex ¡A¬Y¨Ç¹³Emacs ªº½s¿è¾¹¡A¯à¤À¿ë¥X¥¦Ì¤§¶¡ªº¤£¦P )¡C ¤]¦³¤@ÓÀÉ®×
TETEXDOC.dvi ªþ¦b®M¥óùØ¡A¦pªGµy«á§An´ú¸Õ§Aªº .dviÅX°Êµ{¦¡¡A¥i¥H§â¥¦«O
¦s¦b¤@Ó¦w¥þªº¦a¤è --- ¨Ò¦p¡A¥t¥~ªº¤@ӥؿý¡C±µµÛ°õ¦æ¡G
latex TETEXDOC.tex
LaTeX ·|¥X²{¤@¨Çĵ§i¡Aº¥ý¥X²{¡G
LaTeX Warning: Label(s) may have changed. Rerun to get the
cross-references right.
³o¬O¥¿±`ªº¡A¤@¯ë¶·nÂǥѨ⦸ LaTeX ¨Ó½sĶ¤å¥ó¡A«Ø¥ß¤å¥ó¤º®eªí¡A©Ò¥H©¿²¤
ĵ§i¡A«½Æ©R¥O¡C¥LÌ¥u¬O³qª¾§A¡A¦b¤å¥ó¤¤ªº¤@¨Ç FTP ¸ô®|¤Ó¼e¡A¥H¦Ü©ó©ñ¤£
¶i¥h©Ò¤À°t¨ìªÅ¶¡ùØ¡C ¦b [10]¬q¸¨§ÎºA»P¤Ø¤o¤j¤p ©M [11]®e§Ô«×¤p¸`ùØ¡A·|
§ó¸Ô²Ó¦a´yz¤ô¥ªºªÅ¶¡¶¡¹j¡C teTeX ±N·|±q TETEXDOC.tex.²£¥Í´XÓÀɮסA¥O
§ÚÌ·P¨ì¦³¿³½ìªº¬OTETEXDOC.dvi.¨º¤@ÓÀɮסA¥¦¬O¤@Ó»P³]³ÆµLÃöªº¿é¥XÀÉ¡A
§A¯à±N¥¦¿é¥X¨ìºÊµø¾¹Æ[¬Ý¡A¤]¥i¥H¥Ñ¦Lªí¾÷¿é¥X¡C¦pªG§A¬O¦b X µøµ¡¨t²Î¤§¤U
¡A¨Ï¥Î teTeX ¡A´N¥i¥Î xdvi¹wÄý¤å¥ó¡C
¼È®É¡A Åý§ÚÌ°²©w§A¦³¤@¥x HP LaserJet 2 ¦Lªí¾÷¡A§A¤U©R¥O
dvilj2 TETEXDOC.dvi
¥i¥H¦L¥X¤@Ó±q TETEXDOC.dvi ¿é¥Xªº PCL ÀɮסA¨ä¤¤¥]¬A±N·|³Q¤U¸ü¨ì
LaserJetªº¦r«¬¡C³o¤£ ¬O TeX ©Î LaTeX ªº¤@Ó¯S¼x¡A¦Ó¬Odvilj2´£¨Ñªº¯S¼x¡C
¨ä¥Lªº .dviÅX°Êµ{¦¡¡A¤]·|´£¨Ñ»P¥L̤䴩ªº¸Ë¸m¦³Ãöªº¯S¼x¡Cdvilj2¡A·|¸ÕµÛ
¶ñ¤W³Ì±µªñì¥ý¦b¨t²Î¤¤ LaTeX ¤å¥ó©Ònªº¦r«¬¡C¦b¤@Ó¹³ TETEXDOC.tex²³æ
ªº¥»¤å¡A¤@ÂI¤]¤£Ãø°µ¨ì³o¼Ë¡C¦pªG©Ò¦³³QTETEXDOC.tex½Ð¨Dªº¦r«¬¤£¦s¦bªº¸Ü
¡A³£·|¦Û°Ê¦a³Q dvilj2©I¥smetafont²£¥Í¡C ( ¦pªG§A²Ä¤@¦¸°õ¦ædvilj2¡A³oµ{
¦¡¥i¯à»Ýn²£¥Í©Ò¦³ªº¦r«¬ )¡C¦³´Xӿﶵ¡A¥iÅýdvilj2¥Î¨Ó±±¨î²£¥Í¦r«¬¡A¦b
¤â¥U¤¤¦³·§²¤»¡©ú¡C¦b³oùØ¡A§A¤£¥Îª½±µ¦a¾Þ§@ metafont ¡C¦pªG§An³o¼Ë°µ¡A
°£¤F¦w¸Ë¥~¡AÁÙn°µ¤@¨Ç¨Æ±¡¡C¥þ³¡.dviªºÅX°Êµ{¦¡¡A³£·|ª½±µ¦a¸g¥Ñ
kpathsea ´M§ä¸ô®|ªºµ{¦¡®w¡A©I¥smetafont --- ³o¤w¶W¥X³o¥÷¤å¥ó°Q½×ªº½d³ò
--- ¦Ó¥B¡A¥Ø«e§A¼È®É¤£¥Î²z·|metafont --- ¤]¦³´£¨Ñ»s³y Computer Modern
font ªº metafontµ{¦¡®w¡A¥þ³¡ªº¨Ó·½½X¡C
§A¯à¥Î¤U¦C©R¥O¡A¦C¦L TETEXDOC.lj ¡G
lpr TETEXDOC.lj
§A¤]¥i¯à»Ýn¦w¸Ë¤@Ó¤F¸Ñ PCLªº¦Lªí¾÷¹LÂo¾¹¡C
³o¤E¶ªºteTeX Guide ¡A´£¨Ñ§A¤@¨Ç·Qn¶i¤@¨B³]©w¨t²Î¡A¦³¥Îªº°T®§¡A¦³¤@¨Ç
§Ú¤w¸g´£¨ì¡AÁÙ¦³«Ü¦h¤£²[»\¦b³o¥÷¤å¥óªºªF¦è¡C¤U¤@¸`¸Ìªº¦³¤@¨Ç°T®§¡A§ÚÁÙ
¨S¦³´ú¸Õ¡A¦]¬°§Ú¨Ï¥Î³s±µ¨ì¹q¸£¥¦æ°ðªº«D¡@Postscript HP Deskjet 400±m¦â
¼Q¾¥¦Lªí¾÷¡AµM¦Ó¨S¦³¤@³¡Postscript ¦Lªí¾÷¡A¤@ÂI¤]¤£¼vÅT¨ì¦C¦L¤å¥ó¤º¤å©M
¹Ï§Î¡A¦b³Ì¤j¦h¼Æªº Linux ®M¥ó¡A³£°t¦³Ghostscript ¡A¦Ó¥B¥¦¥i¯à¤w¸g¦w¸Ë¦b
§Aªº¨t²Î¤W¤F¡C
3. TeX ©R¥O
·Ç³Æ TeX ¥i¥H±Æª©ªº¤å¥ó¬O«Ü®e©öªº¡A¥un½T©w¥»¤åÀɮתº¬q¸¨¤§¶¡¡A³£¦³¤@ªÅ
¥Õ¦C¡AµM«á°õ¦æ¡G
tex your_text_file
µ²ªG±N·|²£¥Í¤@Ó¬Û¦PÀɮצW¦r¡A¦ý°ÆÀɮ׬° .dvi ÀɮסC TeX ¤º©w¥Î 10 ÂIªº
Computer Modern Roman ¦r«¬¡A³æ¦æ¦æ¶Zªº¤è¦¡¡A®æ¦¡¤Æ¤å¥ó¡A¨Ã¦Û°Ê½Õ¾ã¥ªÃä
©M¥kÃ䪺Ãä½t¡C¦pªG§A¦¬¨ì¹³ $ ¤@¼Ëªº¿ù»~«H®§¡A´N¦b¥¦ªº«e±¥[¤@Ӥϱ׽u
\¡A¦A¤@¦¸°õ¦æTeX ¡C§AÀ³¸Ó¯à°÷¥Î«e±¿ï¾Üªº .dvi ½Ķ¾¹¡A¦C¦L²£¥ÍªºÀÉ®×
¡CTeX ¿é¤Jªº¤@Ó¯S½è¬O¡AÂù¤Þ¸¹»P³æ¤Þ¸¹ªº«e±©M«á±¡A¤À¬°¶}©l©Mµ²§ô¡A¨â
ºØ¤£¦Pªº²Å¸¹¡A¦pªG§A¨Ï¥Î Emacs ªº TeX ¼ÒºA¿é¤J¡A¥¦·|¦Û°ÊÀ°§A°µ³o¨Ç¡G
"These are ASCII-type quotes."
``These are `TeX-style' quotes.''
3.1 «ü¥O·§½×
TeX ¤¤¥Î¤@Ӥϱ׽u (``\'') ¡A·í§@©R¥Oªº¶}©l¡AÁ|¨Ò¨Ó»¡¡A§ïÅܦC¶Zªº©R¥O¬°
¡G
\baselineskip=24pt
°ò½u¬O¤@±ø¤£§t«µªº¦r¤¸©³³¡ªº½u¡A¨â±ø°ò½u¤§¶¡ªº¶ZÂ÷¡A´N¬O
\baselineskipªº¶q¡A³oùØ«ü©w¬° 24 ÂI¡CTeX ¸Ìªº´ú¶q©Î¤Ø¤o¡A±`¥Î¤U¦Cªº³æ¦ì
¡G
pt % ÂI : 1/72 in.
pc % ¹]¦rÅé : 12 pt.
in % ¦T : 72.27 pt.
cm % ¤½¤À : 2.54 cm = 1 in.
mm % ¤½Âç : 10 mm = 1 cm.
¤@¨Ç©R¥O¤£«ü©w¤Ø¤oªº³æ¦ì¡AÁ|¨Ò¨Ó»¡¡G
\smallskip % ¤j¬ù 3 pt.
\medskip % ¨âÓ \smallskips.
\bigskip % ¨âÓ \medskips.
¤@Ó \smallskip ¦b««ª½ªºªÅ¶¡´¡¤J 3 pt ªº¶ZÂ÷¡A¦]¬° TeX ·|½Õ¾ã¨C¤@¶¤¤Â_
¦ì¸m¡A¨C¤@¸`¼ÐÃD©M¨ä¥L««ª½ªºªÅ¶¡ªº³æ¦ì¤Ø¤o¡A©Ò¥H¨º¨Ç¶q³£¬O¤j·§¶q¡A³o¹ï
¤ô¥ªº¶¡¹j¤]¬O¬Û¦Pªº¡C
\hsize=6.5in
³oÓ©R¥O¡A³]©w¦C¼e¬° 6.5¦T¡A TeX Âǥѽվã¦r¶Z¡A¸Ëº¡¨C¤@¦C¡A¦pªG¦b®e§Ô«×
¤º¡A TeX ¤£¯à°÷¸Ëº¡¤@¦C¡A¥¦·|²£¥Í¤@Óĵ§i°T®§¡A¦Ó¥BºÉ¥i¯à½Õ¾ã¦n¤ô¥ªº¶¡
¹j¡A®æ¦¡ªº®e§Ô«×³]©w¡A°Ñ¦Ò [12]®e§Ô«× ¤@¸`¡C
¦³³\¦h«ü©w¤ô¥¡A««ª½©M®e§Ô«×ªº©R¥O¡A´¶¹M¨Ï¥Îªº©R¥O¡A¦b¤U±·|³Q´£¤Î¡C
3.2 ¦r«¬©R¥O
¡@¦b TeX¤¤¡A¤º©wªº¦r«¬¬O 10 pt ªº Computer Modern Roman ¦r«¬¡A¥i¨Ï¥Î¤U
¦Cªº©R¥O¡A«ü©w¦r§Î¬°±×Åé¡A²ÊÅé©Î¥´¦r¾÷Åé¡G
\rm % ù°¨Åé ¡@(¡@¤º©w¡@).
\it % ·N¤j§Q±×Åé¦r
\bf % ²ÊÅé¦r
\tt % ¥´¦r¾÷Åé
\sl % ±×Åé¦r
³oÓ©R¥O¡A·|¦b¥LÌ¥X²{ªº¦ì¸m¡A¶}©l§ïÅܤ夤ªº¦r§Î¡A´N¹³¡G
This text is Roman, \it and this text is italic. \bf This text is
bold, and \rm this text is in Roman again.
¬°¤Fn¦b§Aªº¤å¥ó«ü©w¦r«¬¡A¥i¨Ï¥Î \font ©R¥O¡G
\font\romantwelve=cmr12
³o³Ð³y¤F¦r«¬©R¥O \romantwelve¡A±N¦r«¬´«¦¨12 ÂI Computer Modern Roman ¦r
«¬¡C
\romantwelve
This is the Computer Modern Roman font at 12 points.
¦r«¬ªº¸ê®Æ¥i¥H¬Ý teTeX ®M¥ó¤¤ªºÀɮסG
/usr/lib/teTeX/texmf/doc/fonts/fontname/fontname.dvi
¦pªG§An¦C¦L¤@Ó¦r«¬ªº¨Ò¤l¡A TeX ¤U¦CÀɮסG
/usr/lib/teTeX/texmf/tex/plain/base/fontchart.tex
¦Ó¥B¦b§An¦b´£¥Ü¸¹¤¤¡A¶ñ¤Wn¦C¦Lªº¦r«¬¦W¦r¡C
§A¤]¯à¥Ñ§ïÅܦr«¬ªº¤j¤p¡A±o¨ì¤£¦Pªº®ÄªG¡A¦r«¬¬O¨Ì«ü¼Æ¨ç¼Æ¡A¥Ñ¦r«¬³W®æ©R
¥O¤§«áªº scaled \magstep ©R¥O¡A¨Ó§ïÅܤj¤p¡C
\font\sfmedium=cmss12 scaled \magstep 1
³oÓ©R¥O±N·|¨Ï¥Î1.2 ¿ªº 12 ÂI sans serif ¦r«¬¡C¦r«¬±q 0 ¨ì 5 ¡A¤À¬°¤
ºØ¿²v¡A¥i¨Ñ©ñ¤jÁY¤p¡A¨CºØ¿²v³£¥H1.2 ¿ªº¤j¤p¼W¥[¡C
3.3 ¬q¸¨«¬ºA©M¤Ø¤o¤j¤p
¤W±´£¨ì¡A TeX ¤º©w¥H10 ÂI Computer Modern Roman ªº¦r«¬±Æª©¡A¦æ¶Z
¡A\hsize ¤º©w¬° 6.5 ¦T¡A¦pªG§An§ïÅÜ \hsize ¬° 5.5 ¦T¡AÁ|¨Ò¨Ó»¡¡A¨Ï¥Î³o
Ó©R¥O¡G
\hsize=5.5in
¦b TeX ¤¤¡A½Õ¾ã¤ô¥©Î««ª½ªº³æ¦ì¡A´N¬O³oÓ¶q¡A dimension ¡A¯àÀH§ïÅÜ¥¦ªº
©w¸q¡A¦Ó³Q¼W¥[©Î´î¤Ö¡A¸ò¤Ø¤o¤j¤p¦³Ãöªº¡A¬O skip ¡A¥¦³Q©ñ¦b TeX ¤º¦bªº¼È
¦s¾¹¡A skip »P \newskip ©R¥O¤@°_³Q©w¸q¡A \smallskip¦b TeX ©w¸q¬O¡G
\newskip\smallskipamount \smallskipamount=3pt plus 1pt minus 1pt
§ó²¼äªº \smallskip ©R¥O¬°¡G
\vskip\smallskipamount
¦³³\¦hªº±±¨î¿é¥X¶ªº¤Ø¤o¤j¤p¡A³o¨Ç³£¦¬¶°¦b [13]¶±³]p ¨º¤@¸`¡C TeX ®æ
¦¡¬q¸¨®É¡A·|¦Û°Ê½Õ¾ã¤º¤å»P¥ªÃä©M¥kÃäÃä½tªº¶ZÂ÷¡A¦pªG§A¥un½Õ¾ã¥ªÃ䪺Ãä
½tªº¶ZÂ÷¡A¨Ï¥Î³o©R¥O¡G
\raggedright
¦pªG¥un½Õ¾ã¥kÃ䪺Ãä½tªº¶ZÂ÷¡A«h¨Ï¥Î \rightline©R¥O¡G
\rightline{This is the line to be typeset.}
³o \line ©R¥O¡A·|¾¨¶q¥H¶ñº¡¨C¤@¦Cªº¤èªk¨Ó±Æª©¡G
\line{This text will be spaced to fit the entire line.}
\hfil ©R¥O¡A·|§â¥¦©Ò¦bªº¨º¤@¦C¡A³£¶ñº¡¡AÁ|¨Ò¨Ó»¡¡A \rightline ©R¥Oµ¥©ó
¡G equivalent to:
\line{\hfilThis line will be right justified.}
n¥H¹ïºÙ¤¤¶¡ªº¤è¦¡±Æª©¡A«h¥Î \centerline©R¥O¡G
\centerline{This is the line to be centered.}
¬°¤Fn§ïÅÜ¥ªÃäÃä½tªº¶ZÂ÷¡A¦p¤U¨Ò¡A§ïÅÜ \hoffsetªºÈ¡G
\hoffset=1.5in
\parindent ©R¥O«ü©w¨CÓ¬q¸¨ªº²Ä¤@¦æÁY±Æªº¶q¡G
\parindent=.5in
¤GÓ¨ä¥L¤Ø¤o©R¥O¡A \leftskip ©M \rightskip¨Ï±o¦b¥L̤§«áªº¬q¸¨¡A¤À§O¦V
¥ª©Î¦V¥kÁY±Æ¡G
\leftskip=.5in
\rightskip=.5in
±±¨î©R¥O \narrower µ¥©ó
\leftskip=\parindent
\rightskip=\parindent
¤]´N¬O \narrower ¡A·|¥H \parindent ªºÈ¡A§â¬q¸¨Ãä½tÅܯ¶¡C
¦p«e±©Ò´£ \baselineskip ¤º©w¦æ¶Z¬°12 pt ¡C¬°¤Fn¨Ï¦æ¶ZÅܦ¨¤º©wȪº¨â¿
¡A¥i¨Ï¥Î¤U¦Cªº©R¥O¡G
\baselineskip=\baselineskip*1.6
\parskip ©R¥O¡A°£¤F«O¦³ \baselineskip ªº©R¥O¡AÁÙ·|ÃB¥~¼W¥[¬q¸¨¤§¶¡ªº¶Z
Â÷¡A¨ä¤º©w¬°¤£¼W¥[ÃB¥~ªºªÅ¶¡¡A¦ý¦b¬q¸¨¤§¶¡·|¦h¼W¥[1 ÓÂIªº¶ZÂ÷¡A¨Ï¤º¤å
§ó¥¿½T¦a¶ñº¡¨C¤@¶¡C¦pªGn¦b¬q¸¨¤§¶¡¡A¼W¥[¤@ªÅ¥Õ¦C¡A«h¨Ï¥Î³o©R¥O¡G
\parskip=\baselineskip
®e§Ô«× ( ¦b¨C¦C¥½ºÝ¨º¨Ç¶Â¦âªºªø¤è§Î¬O¤°»ò? )
TeX ³q±`·|ÄY®æªº¦b®e§Ô«×¤U®æ¦¡¤å¥ó¡C¦pªG¡A ¦³¤@¨Ç²z¥Ñ¡A¤å¥ó¤£¯à¦b®e§Ô«×
¤U®æ¦¡¤Æ¡AÁöµM TeX ·|²£¥Í¤@Óĵ§i°T®§¡A¥¦ÁÙ¬O¾¨¥i¯à®æ¦¡¤Æ¤å¥ó¡C¦pªG¨C¤@
¦C¥»¤å¤Óµu¡A¦Ó³Q¦ù®i¤Ó¦h¡A TeX ·|ĵ§i§A¡A \hbox ¬O underfull ¡C¦pªG¨C¤@
¦C¥»¤å¤Óªø¡A¦Ó¥²¶·³QÀ£ÁY¡A«h·|ĵ§i§A¡A \hbox ¬Ooverfull ¡C
¨C¤@Ó overfull \hbox¡A TeX ·|¦b¨C¦C¥½ºÝ¡A²£¥Í ¹ê¤ß¶Â¦âªºªø¤è§Î¡C³o¹ê¤ß
ªºªø¤è§Î¡A¥Nªí¤£¯à°÷¦b \hbadness °Ñ¼Æ³W©w¤º¡A®æ¦¡¤Æ³o¤@¦C¡C¤å¥ó¦b«ü©wªº
¤Ø¤o¤j¤p¤Uªº¾A¦X©Ê¡A¬O¥Î badness¨Ó¿Å¶q¡A¥¦¬O¤@Ó¤¶©ó 0 ¨ì 10000¤§¶¡¼Æ¦r
¡Cbadness ¬°0 ¡A¥Nªí³Ì§¹¬ü¡A 10000 ¥Nªí¾A¦X©Ê³Ì®t¡A \hbadness ¤º©w¬°
1000¡C¦pªG§A§â \hbadness ³]¬° 10000 ¡A TeX ¥Ã»·¤£·|³ø§i underfull ¡C¦³
®É TeX ¤¹³\¤@¦C¡A¯àÂX¥R¨ì¥kÃ䪺Ãä½t¡A³o¬O TeX§@ªÌªº¬ü¾Ç¨M©wªº¤@³¡¥÷¡A³o
¬O¥Ñ¤º©w¬° 0.1 pt ªº \hfuzz °Ñ¼Æ©Ò¨M©wªº¡C¦pªG¥»¤å¸Ë¤£¶i¤@¦C¤º
¡A\tolerance ªº°Ñ¼Æ·|³B²z\hbox overfull ªº°ÝÃD¡C \tolerance ¤º©w¬° 200
¡A§â³]©w§ï¬°1000 ¡A«h·|§í¨î overfull \hbox ©M¹ê¤ß¶Â¦âªø¤è§Îªº²£¥Í¡C
3.4 ¶±³]p
°£¤F¦¥ý´£¨ìªº¥ªÃ䪺Ãä½t¡A©M¦æ¼e¤§¥~¡A TeX ¤]Åý§A¥i¥H«ü©w³»ºÝ¡A¥½ºÝ¡A©M
««ª½ªº¶¡¹j¡C¹³¦b¦¥ý´£¨ìªº \hsize ©M \hoffset ¤Ø¤o¤j¤p¤@¼Ë¡A TeX ¤]´£¨Ñ
¨º \vsize ©M \voffset ©R¥O¡C\vsize ¤º©w¬° 8.9 ¦T¡A \voffset ¤º©w¬° 0 ¦T
¡C
¥¿±`¦a¡A teTeX ·|§â¥»¤å²Ä¤@¦æªº¶}ºÝ¡A©ñ¦bÂ÷³»ºÝ¤U± 1 ¦T¡A¥BÂ÷¥ªÃ䪺Ãä
½t1 ¦Tªº¦ì¸m¡C§A¯à¥Î©R¥O¡AÅý¥»¤å§ó¾aªñ¨C¶ªº³»ºÝ¡G
\voffset=-0.5in
¦pªG§An¼W¥[¤@¥÷¤å¥ó¸Ìªº««ª½ªÅ¶¡¡A©R¥O \smallskip¡A \medskip¡A
©M\bigskip ±N·|¼W¥[¤j¬ù 3 ¡A 6 ¡A ©Î 12 ÂIªºªÅ¥Õ««ª½¶¡¹j¡C³o¨Ç³£¬O¤j¬ù
ªº¶q¡A TeX ±N·|¥H¤@ÓÂI¡A¤@ÓÂIªº¤è¦¡½Õ¾ã¡A¥¿½T¦a¶ñº¡¨C¤@¶¡C
\vfill©R¥O¡A·|¦b¨C¤@¶ªº¬q¸¨¤§¶¡¡A¼W¥[¤@Ó¥i½Õ¾ãªº««ª½¶¡¹j¡A¥¦¥i¥HµL
¦a¦ù®i¡A©Ò¥H¥¦·|§â¨C¤@¶¡A³Ñ¤Uªº««ª½¶¡¹j¶ñº¡¡C¦pªG§An«ü©w¤@Ӥؤo¤j¤p
¡A¦p¤U«ü©w \vskip ¬°¡G
\vskip 10pt
\hss ©M \vss ©R¥OÃþ¦ü \hfil ©M \vfill¡A¦ý¬O¥LÌ¥i¥HµL¦a¦¬ÁY©M¦ù®i¡C
\vskip ©M \vfill ©R¥O¡A¥i²£¥Í¼u©Êªºªø«×¡A¦pªG¨S¦³¤º¤å¡A¥L̤£¼W¥[ªÅ¶¡¡A
Á|¨Ò¨Ó»¡¡A¦b¥ô¤@¶ªº³»ºÝ¡C¦pªG§An¼W¥[¤@µ´¹ïªºªÅ¶¡¡A¨Ï¥Î \vglue ¡C
TeX ·|¾¨¶q¥h¶ñº¡ \vsize ªº¤Ø¤o¡Aª½¨ì·sªº¤@¶¶}©l¡C¡@\vfill \eject ·|±j
¢¸õ¦æ¡A¦pªG¤£¥Î \vfill ¡A¤º¤å·|Ä~Äò¶ñº¡¨C¤@¶¡Aª½¨ì \break ¥X²{¡C
¦pªG§An TeX §ó¯à°÷¦³¼u©Êªº¨Ï¥Î««ª½¼Ð¥Ü¡A¦b§Aªº¤å¥ó¤¤¡A¥i¥Î
\raggedbottom©R¥O¡AµM«á TeX ±N·|¨Ç·L¦a½Õ¾ã¨C¶ªº©³³¡Ãä½t¡A¨Ï««ª½ªº¶¡¹j
§ó¤@P¡C
3.5 ¶¼Æ¡B¼Ðº©Mµù¸}
teTeX ªº¶¼Æ¡A¤º©w©ñ¦b¨C¶©³³¡¤¤¤ßªº¦ì¸m¡A¦pªG§An§ïÅÜ©ñ¶¼Æªº¦ì¸m©M®æ
¦¡¡A§A¯àÂǥѧïÅÜ \headline ©M \footlineªº©w¸q¡AÅܧó¼Ðº©Mµù¸}¡A
\footline ¤º©w¥]§t¡@\folio ©R¥O¡A¦]¦¹·|¦C¦L¶¼Æ¡A \headline ¤º©w¥]§t
\hfil©R¥O¡A¦]¦¹·|¦C¦L¤@ªÅ¥Õ¦C¡C
\pageno©R¥O¡A¦p¦P¬OTeX's ªº¤º¦b¶¼Æpºâ¾¹¡C§A¯àÂÇ¥ÑÅܧó\pageno ¡A¦Ó§ïÅÜ
¶¼Æ¡A¦pªG \pageno ¬Otªº¡A«h¶¼Æ¥Hù°¨¼Æ¦r¦C¦L¡G
\pageno=10
\pageno=-1
¤£¦C¦L¶¼Æªº©R¥O¡A \nopagenumbers ¡A¥i³t°O¬°¡G
\headline={\hfil}
\footline={\hfil}
¤º©wªº footline ¡A¤]¥]§t¦r«¬©R¥O \tenrm¡A±N¶¼Æ¦rªº¦r«¬¡A³]©w¬° 10 ÂIù
°¨¦r«¬¡AÁ|¨Ò¨Ó»¡¡A¦pªG§An¥H 12 ÂIù°¨¦r«¬¡A¦C¦L¶¼Æ¡Aº¥ý§A¥ý©w¸q12 ÂI
ù°¨¦r«¬¡AµM«á¦b \footline©w¸q¤¤¨Ï¥Î¡A¦r«¬©R¥O¦b [14]Font commands ³o¤@
¸`¤¤·|°Q½×¡C
\font\twelvrm=cmr12
\footline={\hss\twelvrm\folio\hss}
§A¯àÂǥѫ·s©w¸q \headline ¡A¨Ó¨î©w¤@±ø rule ¡A¦b¨C¶ªº³»ºÝ¡A©ñ¤@Ó¤ô¥
½u¡G
\headline={\hrulefill}
¨Ï¥Î \ifodd¡A«ü©w°¸¼Æ¶©M©_¼Æ¶©ñªº¦ì¸m¤£¦P¡A¥¦ªº»yªk¦p¤U¡G
\ifodd[condition][true-action]\else[false-action
¤@ӥΠ\headline «ü©w°¸¼Æ¶©M©_¼Æ¶Â\ªk¤£¦Pªº¨Ò¤l¡A´N¦p¡G
\headline={\ifodd\pageno odd-page-header \else even-page-header}
¦pªG¬O©_¼Æ¶¡A \ifodd ´N¨Ï¥Î²Ä¤@ӰѼơA§_«h¨Ï¥Î²Ä¤GӰѼơC
3.6 ¼ÐÃD©M¥¨¶°
TeX ¥u´£¨Ñ¨î©w¨C¸`¼ÐÃD¡A¨Ï¥Î \beginsection ©R¥O¡A¥¦¦b¤º¤å¤§¤W¡A¯d¤@ÓªÅ
¶¡¡A¥Î²ÊÅé¦r¦C¦L¼ÐÃD¡A¼ÐÃD¤§«á¼W¥[¤@Ó \smallskip ¡A¨Ã¨Ï±o¤U¤@Ó¬q¸¨¤£
ÁY±Æ¡C
©³¤U´£¨ìªºLaTeX ¼Ð¥Ü³¹¸`ªº©R¥O¡A·|´À¨C¤@¸`¡A¼Ð¤W¸`¼Æ¡A¦Ó¥B±N·|¦C¦L¨C¤@
¸`¦WºÙ¡A¨Ã¦b¼Ðº¡A¦C¦L¶¼Æ¡A¨Ã¦Û°Ê¦a§â³o¨Ç³¹¸`¡A¥[¤J¥Ø¿ýªí¡C
¦b plain TeX ¤¤§A¥²¶·¿Ë¦Û¥[¤W³o¨Ç©R¥O¡C\def ¡A¤¹³\§A©w¸q·sªº©R¥O¡A°²¦p
§An¦C¦L³¹¦W¡Aº¥ý§An©w¸q¨Ï¥Îªº¦r«¬¡A¦pªG¨Ï¥Î©ñ¤jªºsans serif ¦r«¬¡A«h
©w¸q¦p¤U¡G
\font\chapterfontsans=cmss12 scaled \magstep 4
¦pªG§An¨Ï¥Î°ª¬ù24 ÓÂIªº¦r«¬¡A«h¨Ï¥Î \chapterfontsans ©R¥O¡AÂàÅܨì³oÓ
¦r«¬¡AµM¦Ó¡A¦b³oÓ¨Ò¤l¤¤¡A¥¦¥Dn³Q¥Î¦b\chaptertitlesans¤§¤¤¡C¥¦ªº©w¸q¬°
¡G
\def\chaptertitlesans#1{\hbox{}\bigskip\bigskip
\noindent{\leftline{\chapterfontsans#1}}
\par\bigskip\bigskip\noindent}
²Ä¤@¦æ¤¤¡A \hbox{}\bigskipªº\hbox{}«ü¥O¡A¦b¨C¶ªº³»ºÝ¡A©ñ¸m¤@Ó 12 ÂIªº
ªÅ¶¡¡A³o¼Ë³¹¦W¡A¬J¤£ÁY±Æ¡A¤]¤£·|¨Ï±o¤UÓ¬q¸¨ºò±µ¦b«á¡A¦pªG§A
¦b\sschaptertitle ¥¨¶°©M¤U¤@Ó¬q¸¨¤§¶¡¡An©ñ¸m¤@±øªÅ¥Õ¦C¡A«h³Ì«áªº
\noindent ¡A·|§@¥Î¨ì³oªÅ¥Õ¦C¡A¦Ó«D¤U¦Cªº¬q¸¨¡C¬°¤Fn¥¿½T¦a®æ¦¡¤Æ¡A¦b³o
Ó¨Ò¤l¤¤¡A¨Ï¥Î \sschaptertitle ¡G
©w¸q¸Ìªº #1 ³¯z¡A¥Ñ²Ä¤@ӰѼơA´À´«¨ì \chaptertitlesans; ¡A¤]´N¬O³¹¦W
¡A TeX ªº°Ñ¼Æ¥H #1, #2, #3¡Aµ¥µ¥«e«á¶¶§Ç«Å§i¡A¤@Ó¦p¦ó¨Ï
¥Î\chaptertitlesans ªº¨Ò¤l¦p¤U¡G
\chaptertitlesans{Chapter 1}
This is the starting text of the first paragraph of the chapter.
The paragraph will not be indented. The chapter's title is
"Chapter 1."
4. LaTeX ©R¥O
4.1 ¤å³¹¬[ºc
¥Î LaTeX ½s±Æ¤å³¹¥u¦³´XÓªk«h¡A¦ý¤w°÷¥Î¨Ó½s±Æ½ÆÂøªº¤å³¹¡C LaTeX¤]¾¨¥i¯à
²¤Æ¤F½sĶªº¹Lµ{¡C
¹ê»Ú¤W LaTeX ¬O¤@ºØ¤å¥ó¼Ð¥Ü»y¨¥¡A¥¦§â¤º¤åÅÞ¿è©M¿é¥X§Î¦¡¤À¶}¨Ó³B²z¡C¨Ò¦p
¡A¥ÎTeX ¨î©w¡A¨C¤@¸`¼ÐÃDªº®æ¦¡¡A¬°¹w¯d36 ÂIªº««ª½¶ZÂ÷¡AµM«á¦L¤W²ÊÅé¨â¿
¤jªº¼ÐÃD©M¶¼Æ¡A¹j¨âÓ¦r¤¸ªº««ª½¶ZÂ÷¡A¦AÄ~Äò¤º¤åªº¿é¤J¡C¬Û¹ïªº¡ALaTeX
¨Ï¥Î\section{}©R¥O¡A ¥¦·|°µ¤Wzªº©Ò¦³ªº¤u§@¡C¦pªG§An§ïÅÜ¥¦ªº®æ¦¡¡A¥i¥H
קï\section{} ¨Ó¥N´À§ó§ï¤å¥ó¤º®e¡C³o±N·|¨Ï±o«·s®æ¦¡¶W¹L¼Æ¤Q¶ªº¤å¥ó®É
¡A·|¬Ù¤U«Ü¦h®É¶¡¡C
©Ò¦³ LaTeX ¤å¥ó¥]§t¤TÓ³¡¥÷ ¡G «e¤å ¡A¤º¤å©M µ²§À¡A ³o¨Ç³£¬O TeX ±M®a±`
¥Îªº»yªk¡C
¦b«e¤å³¡¥÷¡A³Ì¤Ön«ü©w¤å¥óªº«¬ºA --- ¤å¥óªº«¬ºA --- ©M¤å¥ó¤º¤å¶}©lªº¼Ð
»x¡A´N¹³¡G
\documentclass{article}
\begin{document}
¤å¥óªºµ²§À³q±`«Ü²³æ¡A°£¤F¬Y¨Ç¯S®í¨Ò¤l¡A¥¦¥u¦³¡G
\end{document}
¨ä¤¤ \begin{document} ©M \end{document} ¥²¶·¦¨¹ï¨Ï¥Î¡A¦b LaTeX ¤¤¡A³o´N
¥s°µÀô¹Ò¡A©Ò¦³¿é¤J¤å³¹¡A³£¶·n¦bÀô¹Ò¤¤¡A¦Ó¥B³\¦h©R¥O¡A¥u¦³¦b©I¥s¥¦Ìªº
Àô¹Ò¤¤¡A¤~¦³§@¥Î¡AµM¦Ó¡A¦b¨Ï¥Î LaTeX¡A ¤@©wn¦³ documentªºÀô¹Ò¡A§Y°ß¤@
¶·nªºÀô¹Ò¡C( °£¤Fletter «¬ºA¡A¶·n«Å§i\begin{letter} ©M \end{letter}¡A
°Ñ¦Òsection [15]Letters«H¥ó ¡C ) ÁÙ¦³³\¦h®æ¦¡ªºÀô¹Ò¡A¦b©³¤U·|¦A´£¨ì¡C
¤å¥ó®æ¦¡¤]¥s°µ°Ñ¼Æ¡A¤º¤å¤º©w¦r°ª«×¬° 10 ÂI¡AYn§ïÅܹw©w®æ¦¡¡A¥i¥H§ó§ï
°Ñ¼Æ¡A¦p¡G
\documentclass[12pt]{article}
¦r°ª«×§ï¬° 12 ÂI¡C article,®æ¦¡¤]°µ¤F¤@¨Ç¥²nªº½Õ¾ã¡C
¤U¦C¦³¤@¨Ç±`¥Îªº¼Ð·Ç®æ¦¡¡Creport ®æ¦¡¬O©Marticle®æ¦¡¬Û¦üªº¡A¬O³ø§i®æ¦¡
¹w¥ý³]©w¤@Ó¥DÃD¦WºÙ¡A¨C¤@¸`¥Ñ·sªº¤@¶¶}©l¡Cletter ®æ¦¡¥]§t¤@¨Ç¯S§Oªº
addresses ¡A salutations ©M closings ©w¸q¡A©³¤U·|´£¨ì¤@¨Ç¡C
§A¥i¥H¥Î\usepackage{}ªº©R¥O¡A¨Ó¥[¤J¥]¸Ë¦nªº LaTeX ¤º¤å½X¡A¤@¯ë¥s°µµ{¦¡
¶° ¡A
\usepackage{fancyhdr}
¤Wz©R¥O¡A´N¬O¥[¤J¦bTEXINPUTS¤l¥Ø¿ý¤¤ªº·®æÀÉ¡Afancyhdr.sty¡A³q±`¦b¸Ë
¦nTeX ¨t²Î«á¡A´N·|¦³³\¦hÃþ¦üªº·®æÀÉ¡C
\documentclass{article}
\usepackage{fancyhdr}
\begin{document}
ª`·N\usepackage{} ¥²¶·¦b\begin{document}¤§«e¡A §Y¤å¥óªº«e¤å¡C
¨ä¤¤fancyhdr.sty ·|¼W¥[\pagestyle{} ªº©R¥O¡A¨Ï±o¥ÎªÌ¥i¨Ì¶·n¡A¦Û¤v³]p
headers ©M footers ¡A ¤j¦h¼Æ LaTeX ´£¨Ñ¤U¦Cheaders ©M footers ªº¼Ð·Ç®æ
¦¡¡G
\pagestyle{plain} % ¤º©w®æ¦¡ÀÉ - ¶¼Æ¦b©³³¡¤¤¶¡
\pagestyle{empty} % ¨S¦³ headers ©M footers
\pagestyle{headings} % ¸`¼Æ©M¶¼Æ¦b¨C¶³»ºÝ
\pagestyle{myheadings} % ¦b¨C¶³»ºÝ¦C¦L§An¦LªºªF
¦Ê¤À¤ñ²Å¸¹¥kÃä¬O©R¥Oªºµù¸Ñ¡C
\pagestyle{} ªº©R¥O¡Aª½¨ì½sĶ¤U¶®É¤~§@¥Î¡A¦]¦¹n§ïÅÜ¥¿¦b¿é¤Jªº¦a¤èªº
headers ©M footers ¥i¨Ï¥Î¡G
\thispagestyle{the_pagestyle}
4.2 ¦r¤¸»P¤º¤å«¬ºA
¤@¯ëLaTeX ·|¤º©w¦r¤¸ªº«¬ºA¡A¦ý¬O¥¦¤]¤¹³\¿é¥X§Oªº«¬ºA¡A¨Ò¦p²ÊÅé¦r¡B±×Åé
¦rµ¥ ¡A¤]¥i¥Hµe©³½u¡A¸Ô¨£ [16]LaTeX ÂX¥Rµ{¦¡¶°»P¨ä¥L¸ê·½
¦³´XºØ¤èªkªí¥Ü¤º¤ån±j½Õªº³¡¤À¡A³Ì±`¥Îªº¬O \em ©R¥O¡A¦b¥¦ªº½d³ò¸Ì±©Ò¦³
ªº¥»¤å¡A³£¥Î±j½ÕÅé¦r«¬½s±Æ¡A¨Ò¦p¡G
This word will be {\em emphasized.}
¦pªG§A¤w¸g¥Î½ÕÅé¦r«¬½s±Æ¬YÓ¬q¸¨¡A¥i¥H¥Î \/¨ú®ø¥Î½ÕÅé¦r«¬ªº©R¥O¡A¬O¥Î¡A
¤@Ӥϱ׽u©M¤@Ó¦V«eªº±×½u¡C¨Ò¦p¡G
This example {\em will\/} print correctly.
This example will {\em not} print correctly.
¥t¥~¡Aµy¬°¯Ê¤Ö¥iÄâ±a©Ê¡A¦ýÁÙ¥i¥H±µ¨üªº¬O¡A \it¡A \bf,©M\tt©R¥O¡A¦b©R¥O
ªº½d³ò¸Ì±¡A¤À§O¨Ï¥Î·N¤j§Q±×Åé¦r¡A²ÊÅé¦r©M¥´¦r¾÷¦rÅé¡A¨Ò¦p¡G.
{\tt This text will be printed monospaced,}
{\it this text will be italic,} and
{\bf this text will be bold\dots} all in one paragraph.
©R¥O \dots ³sÄò¦C¦L¤£¤À¶}ªº¤TÓ¥yÂI¡C
LaTeX ³Ìªñªºª©¥»¡A¤]¬O§A¦³ªºª©¥»¡A«á¥Îªº«ü©w©R¥O¡A·|¥N´À«e±ªº©R¥O¡C
This is {\it not {\bf bold italic!}}
TeTeX ¥Î·N¤j§Q±×Åé¦r½s±Æ¥»¤å¡Aª½¨ì¥¦¹J¨ì¨º \bf ©R¥O¡A¤~§ï¬°²ÊÅé¦r¡C
¬°¤Fn¨ì¹F³o¥Øªº¡A¿ï¾Ü¦r«¬ªº NFSS ¤è®×»Ýn¦Ò¼{¨CºØ¦rÅ骺¤TӰѼơG
shape ¡A series ©M family ¡C¦pªG»Ýn´À´«¥t¥~ªº¦r«¬¡A LaTeX¥ý·|ĵ§i§A¡C
§A¤]¥i¥H¥ý«Å§i¨Ï¥Î¤U¦C¦U¶µ¦r«¬¡G
You can specify the following font shapes:
\textup{text} % ¥¿±`ªº§Îª¬ ( ¹w³]È )
\textit{text} % ·N¤j§Q±×Åé¦r
\textsl{text} % ±×Åé¦r
\textsc{text} % small caps
¤j³¡¤Àªº¦r«¬³£¥i¨Ï¥Î¤U¦C¨âºØ series :
\textmd{text} % ¤¤µ¥ series ( ¹w³]È )
\textbf{text} % ¶ÂÅé¦r series.
¦³¤TÓfamiliesªºÃþ«¬¥i¥Î
\textrm{text} % ù°¨Åé ( ¹w³]È )
\textsf{text} % sans ¦rÅé
\texttt{text} % ¥´¦r¾÷¦rÅé ( Ãþ¦ü Courier )
§A¯à¨Ï¥Î³o¨Ç°Ñ¼Æ³]©w¦r«¬¡A¥H²Õ¦¨·Qnªº®ÄªG¡C
\texttt{\textit{This example likely will result in a font
substitution, because many fonts don't include a typewriter italic
typeface.}}
TeX¨t²Î¤º©w¨Ï¥ÎÂI¶Z°}ªº¦r«¬¡A§Y Computer Modern¡A¨ä¥LPostscript ®æ¦¡ªº
Type 1 ¦r«¬¤]±`¥Î¨ì¡C¨Ï¥Îªº¤èªk°Ñ¦Ò [17]¨Ï¥Î PostScript ¦r«¬¡C
¤]¦³³\¦h¯S§Oªº¦r¤¸¥i¥H¨Ï¥Î¡A¤U¦C¬O¤Ö³\¨Ò¤l¡A¦Û¤v¥Î¦Lªí¾÷¸Õ¸Õ¡C
\'{o} \`{e} \^{o} \"{u} \={o} \c{c} `? `!
\copyright \pounds \dag
³Ì«á¡A¦b TeX ©M LaTeX ¤]¥i¥H¨Ï¥Î meta ©M ESC ªº¦r¤¸¥i¥H¨Ï¥Î¡A¥un»P¤@Ó
¤Ï±×½u¤@°_¨Ï¥Î´N¥i¥H¤F¡C¨Ò¦p¡G
# $ % & _ { }
LaTeX ´£¨Ñ³\¦h«D^¤åªº¦r¥À¡A¹³§Æþ¦r¥À©M´µ©Ô¤Ò¦r¥À¡A¨ä¥L°Ñ¦Ò·|¸Ôz³o¨Ç
¡C
4.3 Ãä½t©M¦æ¶Z
TeX ©Î LaTeX ¤å¥ó¸ÌªºÃä½t¡A¤£¥i¥Hª½±µªºÅܧó¡A©¹©¹¥¦¸ò§A¥¿¦b¸ÕµÛ½Õ¾ãªº¤º
¤å¦³Ãö«Y¡A©ñ¸mÅܧó©R¥Oªº¦ì¸m¤]¬O«Ü«nªº¡C
¹ï©ó±±¨î LaTeX ¤å¥ó¼e«×ªº©R¥O¡A¥i¨Ï¥Î\evensidemargin ©M\oddsidemargin¡A
¥L̤À§O·|§ïÅÜ°¸¼Æ¶ªº¥ª°¼©M©_¼Æ¶ªº¥k°¼¡CÁ|¨Ò¨Ó»¡¡A
\evensidemargin=1in
\oddsidemargin=1in
¨Ï±o¥¿±`Â÷Ãä½t¤@¦Tªº°¸¼Æ¶ªº¥ª°¼©M©_¼Æ¶ªº¥k°¼¡A ÃB¥~ ¦A¼W¥[¤@¦T¨ì¨â¦T
¡A ¦Ó¥B³o¨Ç©R¥O·|¨ì¼vÅT¥þ³¡ªº¤å¥ó¡A¤£·|³Q¨ä¥L§½³¡ªº©R¥O¼vÅT¨ì¡A©Ò¥H¸Ö¤å
Åé ©M ¦Cªí¡A«Ü¾A¦X¨Ï¥Î³o¨Ç©R¥O¡C
¤U±¬O¥»¤å§@ªÌ¼gªº¤@²ÕÅܧóÃä½tªº¥¨¶°«ü¥O¡A¥LÌ©M¤W±´£¨ìªº©R¥O¡A¦³¤£¦P
ªº®ÄªG¡A¦]¬°¥L̨ϥΠplain TeX ©R¥O¡A¤£«OÃÒ¦b LaTeX ¤å¥ó¤¤·|¦³®Ä¡A¦ý¬O
§AÁÙ¬O¥i¥H§â¥¦©ñ¦b¶}©l·Q§ïÅÜÃä½tªº¦ì¸m¡C
%% margins.sty -- v. 0.1 by Robert Kiesling
%% ³oÓ¥¨¶°«ü¥O¥i¥H¦Û¥Ñ¦a³Q´²§G¤Î¨Ï¥Î
%%
%% ¤@¨Ç°ò¥»ªº plain TeX ÅܧóÃä½tªº©R¥O. ªø«×³æ¦ì¬°¦T
%%
%% \leftmargin{1} %% ¤å¥ó¥ªÃäÂ÷Ãä½t¤@¦T
%% \leftindent{1} %% ¬q¸¨¥ªÃäÂ÷Ãä½t¤@¦T
%% \rightindent{1} %% ¬q¸¨¥kÃäÂ÷Ãä½t¤@¦T
%% \llength{3} %% ¤U¦C¦U¦æªºªø«×³]©w¬° 3 ¦T
%%
\message{Margins macros...}
\def\lmargin#1{\hoffset = #1 in}
\def\lindent#1{\leftskip = #1 in}
\def\rindent#1{\rightskip = #1 in}
\def\llength#1{\hsize = #1 in}
%%
%% (End of margins macros.}
§â³oÓ margins.sty ©ñ¦b$TEXINPUTS ªº¥Ø¿ý¤º¡C©R¥Oªº§@¥Î¦p¦Pª`¸Ñ¡A¦b¤@¥÷
¤å¥ó«e¤å¤¤¨Ï¥Î¤U¦C©R¥O¡A´N¥i¥H¨Ï¥Î¥¦Ì¤F¡G
\usepackage{margins}
¥Ñ©ó LaTeX ·|¦Û¤v½Õ¾ã¨C¦æ¥kÃ䪺Ãä½t¡A( ¨Ï¨C¤@¦æªº§ÀºÝ³£¹ï»ô¡A¦ý¬O¦³®É·|
¬Ý°_¨Ó©Ç©Çªº ) ¡A¥i¥H¨Ï¥Î¤U¦C©R¥O¨ú®ø³o¤º©wªº¥\¯à¡G
\raggedright
³]©w¦æ¶Z¤]¦³¨Ç½ÆÂø¡C
baselineskip ªº¶q¬O³]©w¤å³¹ªº¦æ¶Z¡A³q±`³£·|µ¹¤@Ó¥¿ªº¼Æ¡AÁ|¨Ò¨Ó»¡¡G
\baselineskip=24pt
©Î¨Ï¥Î¸û¦nªº¡G
\setlength{\baselineskip}{24pt}
¤GªÌ¤§¶¡ªº®t²§¬O¡A setlength ·|Àu¥ýÅý¨ä¥L·|¼vÅT¤å³¹½s±Æªº©R¥O°õ¦æ¡C
¨Ï¥Î baselineskip ªº°ÝÃD¬O¡A¥¦¤]·|¼vÅT¨ì°Ï¬qªº¼ÐÃD¡Aª`¸}©M¬Û¦üªº©R¥O¡C
¦pªG¨Ï¥Î baselineskip¡@¡A¥²¶·ÀH®Éª`·N¥¦¹ï§A¥¿¦b®æ¦¡ªº¤å³¹ªº¼vÅT¡A¦³¨Ç
¡@LaTeX¡@ªº¥¨¶°¡A¹³setspace.sty, ¡A¹ï¦b³o¨ÇÀô¹Ò¤¤ªº¨Ï¥Î±N·|À°§U¡A½Ð°Ñ¦Ò
¡G [18]LaTeX ÂX¥Rµ{¦¡¶°»P¨ä¥L¸ê·½.
4.4 ¤å³¹®æ¦¡
LaTeX ´£¨Ñ¼Ð·Ç¤Æªº®æ¦¡´£¨Ñµ¹¤å¥ó¿é¤J¡A½Ñ¦p¥Ø¿ý¡B¤Þ¥Î¬q¸¨¡Bµù¸}¤Î¨ä¥L¤å
¥óªº®æ¦¡¨Ñ¤H¨Ï¥Î¡A¤U¦C¥]§t¤@¨Ç±`¥Îªº¼Ð·Ç®æ¦¡¡C
¤å³¹»P³ø§i
¦p«e±©Ò´£¨ì¡A ¤å³¹®æ¦¡©M ³ø§i®æ¦¡¬O¬Û¦üªº¡C¥Dnªº¤£¦P¬O³ø§i®æ¦¡¡A¹w¥ý
³]©w¤@Ó¥DÃD¦WºÙ¡A¨C¤@¸`¥Ñ·sªº¤@¶¶}©l¡CÁöµM³o¼Ë¡A¨âªÌ¤j¦Ü¤W¬O¬Û¦üªº¡C
¡A¹w¥ý³]©w¤@Ó¥DÃD¦WºÙ¡A¨C¤@¸`¥Ñ·sªº¤@¶¶}©l¡C
Á|¨Ò¨Ó»¡¡A¬°¤Fn»s³y¥DÃD¦WºÙ¡AºKn©M¨C¤@¦æ¡A¹w¥ý¦b«e±¿é¤J¡G
\title{The Breeding Habits of Cacti}
\author{John Q. Public}
\abstract{Description of how common desert cacti search
for appropriate watering holes to perform their breeding
rituals.}
µM«á¡A³o©R¥O
\maketitle
·|¨Ï±o¥Î³ø§i®æ¦¡ªº¤å³¹¡A¦b¶}©lªº¦a¤è©Î²Ä¤@¶ªº³»ºÝ¡A²£¥Í¥DÃD¦WºÙ©MºKn
¡C
¨ä¥L¬q¸¨ªº©R¥O©w¸q¦p¤U¡G
\section
\subsection
\subsubsection
³o¨Ç©R¥O±N·|¦b¤å¥ó¤¤¡A²£¥Í¼Ð·Ç¨Ã¤w½s¸¹ªº¤p¸`¡AY¤£Åý¨C¤p¸`¦Û°Ê½s¸¹¡A«h
¨Ï¥Î¡G
\section*
\subsection*
\subsubsection*
¥H¦¹Ãþ±À¡C
LaTeX ´£¨Ñ³\¦hªí²{¿é¥X¤å¥óªºÀô¹Ò¨Ñ¤H¨Ï¥Î¡A§A¯à¥Î¤Þz Àô¹Ò¡A¥]¬An¤Þzªº
³¡¤À¡C
\begin{quotation}
Start of paragraph to be quoted...
... end of paragraph.
\end{quotation}
¤ñ¸ûµuªº¤Þz¡A¥i¥H¨Ï¥Î ¤ÞzÀô¹Ò¡C
¦Ü©ón®æ¦¡¤Æ¸Ö¤å¡A«h¥Î ¸Ö¤åÅéÀô¹Ò¡C
\begin{verse}
Because I could not stop for death\\
He kindly stopped for me
\end{verse}
¥i¥H¨Ï¥Î¨âӤϱ׽u¡]\\¡^¡A¹F¨ì¸õ¦æªº¥Øªº¡A§_«hLaTeX ·|¥H³o¸ÖÅ骺®æ¦¡¡A
Ä~Äò½s±Æª½¨ì³o¤@¦æµ²§ô¡C
¦Ü©ó¦Cªí¦³´XºØ¤è¦¡¡A¥Îlist Àô¹Òªº¦CÁ|®æ¦¡¡A
\begin{list}
\item
This is the first item of the list.
\item
This is the second item of the list...
\item
... and so on.
\end{list}
¥ÎenumerateÀô¹Ò¼Ð¥Ü¸¹½X¶¶§Çªº¡G A numbered list uses the enumerate
environment:
\begin{enumerate}
\item
Item No. 1.
\item
Item No. 2.
\item
\dots
\end{enumerate}
¥ÎdescriptionÀô¹Ò´yz¥DÃDªº¡G
\begin{description}
\item{Oven} Dirty, needs new burner.
\item{Refrigerator} Dirty. Sorry.
\item{Sink and drainboard} Stained, drippy, cold water faucet.
\end{description}
«H¥ó®æ¦¡
³o«H¥ó®æ¦¡¯S§O¬°°Ó·~«H¥ó¨î©w¤@¨Ç¯S®íªº¥Îªk¡C
³o«H¥ó®æ¦¡¦³¤@ÂIª§½×¡A§Y¦¬«H¤Hªº¦í§}¡C address ªº©R¥O¡A¥²¶·¦b¤å¥ó«e¤å¤¤
¥X²{¡A¦Ó©w¸q±H¥ó¤H¦W¦r¡Asignature ªº©R¥O¡A«h¦bµ²§ô¤§«á¥X²{¡C.
¤@ӨϥΠLaTeX «H¥ó®æ¦¡ªºÂ²³æ¨Ò¤l´N¹³¡G
\documentclass[12pt]{letter}
\signature{John Q. Public}
\address{123 Main St.\\Los Angeles, CA. 96005\\Tel: 123/456-7890}
\begin{document}
\begin{letter}{ACME Brick Co.\\100 Ash St.\\San Diego, CA 96403}
\opening{Dear Sir/Madam:}
With regard to one of your bricks that I found on my living room
carpet surrounded by shards of my broken front window...
(Remainder of the body of the letter.)
\closing{Sincerely,}
\end{letter}
\end{document}
ª`·N¦í§}¤¤¨âӤϱ׽uªº¦a¤è¡A´N¬O¸õ¦æªº¦a¤è¡C
5. LaTeX ÂX¥Rµ{¦¡¶°»P¨ä¥L¸ê·½
¤W±´£¨ì¡A¥Î¹º©³½uªº¤è¦¡¨Ó±j½Õ¤å¥ó«ÂIªº¤è¦¡¡A¦³¤@ÂI¯S®í¡C¹ê»Ú¤W¡A¹ï
TeX ¡@¦Ó¨¥¡A¹º©³½u¬O¼Æ¾Ç¤W±`¥Î½s±Æªº¤èªk¡ALaTeX «h¥i¥Î¤U¦Cªº¤èªk¹º©³½u
¡G
\underline{text to be underlined}
°ÝÃD¬O¹º©³½u¤£·|³s±µ¨ì¤U¤@¦æ¡A¦]¦¹¦b¤@¨Ç±¡ªp¤U¡A¥i¯à·|¤£¥¶¶ªº¡CµM¦Ó¡A
LaTeX ¦³¤@Ó²{¦¨ªº¥¨¶°¡A·|¦b±j½Õªº³¡¤À¹º©³½u¡A¥¦´N¬O ulem.sty¡A³o¬O¤@Ó
¥i¥H¸g¥Ñºô»Úºô¸ô¡A¦Û¥Ñ¶Ç»¼¤Î¦Û¥Ñ¨Ï¥Îªº¥¨¶°¤§¤@¡C
¬°¤Fn¨Ï¥Î ulem.sty¡A¥i¦b«e¤å¨Ï¥Î¡G
\usepackage{ulem}
¨º¨Ç´£¨ÑLaTeX ¨Ï¥Îªº¥¨¶°«ü¥OÁÙ¥]¬A¡G
ifthen
¦b¤å¥ó¤¤¥]¬A¦³±ø¥óªº³¯z
initials
©w¸q¦rº¦r¥Àªº¦r«¬
sanskrit
¥Î¡@Sanskrit¡@½s±Æ¤å¥ó
recipe
¤@Ó LaTeX2e ²M³æ¦¡ªº©R¥O
refman
¤£¦Pªº³ø§i©M¤å³¹®æ¦¡
¬°¤F§¹¾ãªºµ¹¤©¥Ø¿ý¤¤ URL ¥¿½Tªº¦ì§}©M¥Ø¿ý¡A¥i¥H§â¥¦¤À¦¨¥D¾÷©M CTAN
archive ªº¥Ø¿ý¡AÁ|¨Ò¨Ó»¡¡A¦ì¸m [19]ftp.tex.ac.uk ªº³Ì°ª¶¥¼hªº CTAN ¥Ø¿ý
¬O ctan/tex-archive. ¨Ï¥Î refman ¥¨¶°¤¤ªí¥Ü§¹¾ãªº URL ªº¥Ø¿ý´N¦p¤U±¤@
¼Ë¡G
ftp://ftp.tex.ac.uk/ctan/tex-archive/ +
macros/latex/contrib/supported/refman =
ftp://ftp.tex.ac.uk/ctan/tex-archive/macros/latex/contrib/supported/refman/
¦³¨Ç¥¨¶°¤£¥u¤@ÓÀɮסA©Ò¥H¥²¶·«ü©ú¥¦©Ò¦b¥Ø¿ýªº¸ô®|¡C
·í§A¦³ URL ®É¡A«K¯à±q«á± [20]Appendix A¤¤¥ô¦ó¤@Ó CTAN archive ¦ì¸m¡A
¨ú¦^¥¨¶°¡C§A¤]¯à±qarchive ªº³Ì°ª¼hªº¥Ø¿ý¤¤¡A¤U¸ü¥H FILES.byname¬°¦WªºÀÉ
®×¡A¥¦ùر¦³archive ¥þ³¡Àɮתº¥Ø¿ýªí¡A¤]¥i¥H¦bftp¤¤¨Ï¥Î¬d¸ßªº©R¥O¡G
quote site index
6. ¥Î dvips ²V¦X¤å»P¹Ï
¤jÅé¤W¡A³o¸`¤¤ªº¤èªk¡A¥i¥Î©ó¥ô¦ó TeX ©ÎLaTeX ¤å¥ó¤¤¡A²V¦X½s±Æ¥»¤å©M¹Ï§Î
¡C ©M³Ì¨ä¥Lªº TeX ²Õ¥ó¤@¼Ë¡AteTeX ¹w¥ý³]©w¨Ï¥ÎComputer Modern fonts ¡C
·í¥Î Type 1 scalable fonts ©Î¥Îµe¹Ïªº¤è¦¡¦C¦L¤å¥ó®É¡A¦r«¬©M´y¹Ïªº¤èªk¡A
´N¬O dvipsn§@ªº¨Æ¡C dvips ¯à¨Ï¥ÎÂI¶Z°}«¬ªºComputer Modern fonts ©Î¦V¶q
«¬ªºType 1 scalable¡@ fonts ©Î¨âªÌ²V¦X¨Ï¥Î¡Cº¥ý¡AÅý§Ú̵۫©ó¹Ï§Îªº¦C
¦L©M¹wÄý¡C
§A©Î³\·|¨Ì·Ó³oÓµ{§Ç¡A¦b LaTeX ¤å¥óªº«e¤å¤¤¡A¨Ï¥Î¡G
\includepackage{graphics}
³o«ü¥OnLaTeX¦b¤å¥ó¸Ì¥[¤J graphics.sty ªº«ü¥O¶°¡A¨ä¤¤¦³¤@¨Çªº©R¥O¥i¥H¥Î
¨Óµe¹Ï¡A¦ý¬O¤£ºÞ¦³¨S¦³¨Ï¥Î dvips¡A¦b¡@plain-TeX¡@¤¤³o¨Ç©R¥O¥i¯à¤£¯à¥Î¡C
³o¨âªÌ³ÌÅãµÛªº®t§O¡A¦b¿é¤J¤å¥ó®É¡A«áªÌ·|¿òº|¹Ï§Î¡C
¦]¦¹¡A§Ú̱N·|µÛ«©ó LaTeX¡@¨Ï¥Î graphics.sty «ü¥O¶°¡C§A¥i¯à¶·n¬Ý¤@¬Ý
ì©lªº TeX ¿é¤J¡AteTeX¡@¤£¥]§t³o³¡¤À¡A¦ý¬O¥¦·|¦b¤U¦Cºô§}¤¤´£¨Ñ¡G
~CTAN/macros/latex/packages/graphics/grfguide.tex.
teTeX¡@©M¤@¯ë TeX ¤@¼Ë·|¿é¥X .dvi ÀÉ¡A³o¼Ë¦³¤@Ó²z¥Ñ¡A´N¬O¬°¤F¥¿±`ªº¿é
¥X¤å¥ó¡A¦Ó¥²¶·¨Ì·Ó¶¶§Ç§âType 1 fonts ¥]¬A¶i¨Ó¡C¦pªGn¥ÎLaTeX ªº
grfguide.tex, ¡A½Ð°Ñ¦Ò¤U¤@¸`¡C²{¦b§Ú̱N·|¨Ï¥Î dvips¨Ó³B²z¿é¥X¡C
ÀÉ®× grfguide.dvi ¦ì©ó¥Ø¿ý
texmf/doc/latex/graphics
¿é¥X grfguide.dvi ªº²Ä¤@Ó¨BÆJ¡A¬O±N¥¦Â½Ä¶¦¨Postscript ¡A¥¿¦p dvips ªº
¦W¦r¡A³o´N¬O¥¦ªº¥Øªº¡C©I¥s dvips, ¦³³\¦h¤èªk¡A¦ý¬O³Ì²³æªº¬O¡G
dvips -f -r grfguide.ps
dvips ¤¤ -f¿ï¶µ¡A·í§@¹LÂo¾¹¡A¥Ñ¼Ð·Çªº¿é¤JŪ¤J¡A¨Ã¥Ñ¼Ð·Çªº¿é¥X¼g¥X¨Ó¡A
dvips ªº¹w³]¼Ð·Çªº¿é¥X¬°lpr¡C
¦pªG§A¯à§Q¥Îlpr¡Aª½±µ¥Ñ¦Lªí¾÷¦C¦LPostscript ÀÉ¡A«h¥un¿é¤J¡G
dvips -r grfguide.dvi
-r ¿ï¶µ¡A«hndvips ¨Ì¬Û¤Ï¶¶§Ç¿é¥Xµ²ªG¡A¨º»ò¥Ñ¦Lªí¾÷¦L¥X¨Ó®É¡A¤å¥ó¥¿¦n¥Ñ
«e¦Ü«á¡A«ö·Ó¶¶§Ç±Æ¦n¡A´N¨Ì§Aªº¿é¥X³]³Æ¡A¨M©wn¤£n¨Ï¥Î³o¿ï¶µ¡C
dvips ©M metafont ·|¨Ì½sĶ¦¨dvi ®É¡Advilj2¬O§_¦³¥²nªº¦r«¬¡A¦Û°Ê¨M©wn
¤£n²£¥Ígrfguide.dvi.»Ýnªº·sªº¦r«¬¡C¤§«á¡A´N·|±q¹w³Æ¦nªº¿é¥X³]³Æ¡A¿é¥X
¥Ñ dvips Âনªº Postscript ÀÉ¡C
¦pªG§A°÷©¯¹B ( ©Î´I¦³ ) ¡A¤w¸g¦³¤@³¡Postscriptªº¦Lªí¾÷¡A´N¯à°÷ª½±µ¦C¦L
grfguide.ps ¡C§A¯àÂǥѨϥΠlpr °e¨ì¦Lªí¾÷ªº¿é¥X¡C¦pªG§Aªº¦Lªí¾÷³nÅé¦w¸Ë
¤£¥¿½T¡A¤]¯à¨Ï¥Î¤U¦C©R¥O¦C¦L¡G
cat grfguide.ps >/dev/lp0
¦ý¬O¤£«Øij¨Ï¥Î³o¤èªk¡C
³o¬O¤â°Ê©I¥s Ghostscript ¹B§@ªº¼Ð·Çªºµ{§Ç¡G²Ä¤@¨B¬O©I¥s Ghostscript ¶i
¤J©R¥O¼Ò¦¡¡A¹³³o¼Ë¡G
gs -help | less
§A±N·|¬Ý¨£¤ä´©ªº¿é¥X³]³Æ¥Ø¿ý¡A©M¨ä¥Lªº©R¥O¡C¿ï¾Ü©M§Aªº¦Lªí¾÷³Ì¬Û°tªº¿é
¥X³]³Æ¡C³q±`§Ú³£¿é¥X¶Â¥Õªº¤å³¹¡A¦]¦¹¿ï¾Ücdjmono ÅX°Êµ{¦¡¡A§@¬°±m¦â
Deskjet ªº¶Â¥Õ¼Ò¦¡ªºÅX°Êµ{¦¡¡C
§Ú·|¨Ï¥Î³o¼Ëªº©R¥O¡G
gs -dNOPAUSE -sDEVICE=cdjmono -sOutputFile=/tmp/gs.out grfguide.ps -c quit
³o±N·|¦b /tmp¥Ø¿ý¸Ì²£¥ÍHP ¬Û®eªº¿é¥X¡C¨Ï¥Î¤@ӥؿý¹³ /tmp,¡A¬O¤@Ó¦nªº
¥D·N¡A¦]¬° gs ²o¯A¨ì¨Ï¥ÎÅvªº°ÝÃD¡A¦Ó¥B§A·íµM¤£¯à ( ¤]¤£À³¸Ó ) ¥H root
ªº¨¥÷¡A¶i¤J¨t²Î¨Ï¥Î¡C²{¦b§A¯à¨Ï¥Î¤U¦C©R¥O¦C¦LÀɮסG
lpr /tmp/gs.out
©úÅã¦a¡A³o¨Ç¯à³Q¼g¦¨¤@Óshell ÀɨӨϥΡC¦b§Úªº¨t²Î¤W¡A§Ú´N¼g¤F¤GÓ²³æ
ªº shell ÀÉ¡A pv ©M pr, ¡A¿é¥XPostscriptÀɮרìÅã¥Ü¾¹©Î¦Lªí¾÷¡C¤£¨Ï¥Î X
µøµ¡¡A¤]¥i¥H¹wÄýµ²ªG¡A¦ý¬O¨Ã¤£²z·Q¡A©Ò¥H·Qn¦n¦n¹wÄýµ²ªG¡A³Ì¦n¦w¸Ë
XFree86 ¡C
¦]¬°¤@¨Ç gs ©R¥O¦Cªº¿ï¶µ·|§i¶D Ghostscript ¨ì¨ºÓµ{¦¡®w ¡A¥h
§äPostscript ªº³¡¤Àµ{¦¡½X¡A©Ò¥H©R¥O¦Cªº¿ï¶µ¦¸§Ç«D±`«nªº¡C
ÁÙ°O±o grfguide.dvi ·|½Ð¨D¨Ï¥ÎComputer Modern ÂI¶Z°}¦r©MType 1¦V¶q¦r«¬
¡A¦pªG§A¯à²V¦X¨Ï¥Î³o¨âºØ¦r«¬¡A§A´N¦¨¤F¤@ÓTeX ±M®a¤F¡C
6.1 ¦pªG§Úªº¦Lªí¾÷¤£³Q¤ä´©¡A«ç»ò¿ì¡H
teTeX ¨t²ÎªºDVI ¿é¥XÅX°Êµ{¦¡¡A¥u¦³´XÓ¿ï¾Ü¡G dvips¡AHP ¹p®g¦Lªí¾÷¡A´N¨S
§Oªº¡C¦pªG§A¦³¤@³¡¤£¬O HP LaserJet ¬Û®eªº¦Lªí¾÷¡A§A¦³¤GÓ¿ï¾Ü¡G¨Ï¥Î
dvips©M Ghostscript ¡A³o¬O§Ú©Ò¯à±ÀÂ˪º¡A©ÎªÌ§ä¤@¤U¨ä¥Lªº dviware ¨Ó·½¡C
¥u¦³´XÓ DVI ÅX°Êµ{¦¡¡A³Q²¾´Ó¨ìLinux ¡A¨Ã¹w¥ý½sĶ¦¨¤G¶i¦ìªº°õ¦æÀÉ¡A¥i¥H
¦b¤U¦Cºô§}§ä¨ì¡G [21]ftp://sunsite.unc.edu/pub/Linux/apps/tex/dvi/.
³o¨Ç dviware ªºµ{¦¡¡A¥Dn¥ÑµS¥L¤j¾ÇªºÀÉ®×®wºûÅ@¡A¦pªG¦b¨º¸Ì¡A§ä¤£¨ì¤@Ó
¤ä´©§Aªº¦Lªí¾÷¡A¨º«Ü¥i¯à´N¬O¥¦¤£¦s¦b¡C§A¤]¯àÂǥѨº¸Ì´£¨Ñªº¼Ë¥»¡A ¦Û¤v¼g
DVI ÅX°Êµ{¦¡¡Aµ{¦¡®wªººô§}¬°¡G
[22]ftp://ftp.math.utah.edu/pub/tex/dvi/.
7. ¨Ï¥ÎPostscript¦r«¬
³q±`Type 1 ¦V¶q¦r«¬ªº¦C¦L«~½è¤ñComputer Modern ÂI¶Z°}¦r«¬®t¡A³Ìªñ´X¦~¡A
³oºØ±¡§ÎÁö¦³§ïµ½¡A¦ý¬O¨Ï¥Î¨º¨Ç¦r«¬¡AÁÙ¬O¥Ñ§A¨M©w¡C¦b¤@³¡¾÷¾¹¤W¡A¹L¦hªº
¦r«¬¬O¦h¾lªº¤]¬O¤£¥²nªº¡A¦Ó¥B®ö¶OºÏºÐªÅ¶¡¡C¥¿¦¡ ¨Ï¥Î¤W¡A Computer
Modern ¦r«¬¸û¬°¾A¦X¡A³o´£¿ô§Ú¡A¦³®É¤]n¥Î¦nªº®e¾¹Áýª¯¡A¦Ü¤Ö§A¤£»Ýnªá¶O
¤Ó¦hªº®É¶¡¡A´N¯à¨Ï¥Î±M·~«~½èªº¦r«¬¡C
LaTeX2e ¤ñ«e¨ÁÙn¦nªº¤@Ó¥Dn§ï¶i¡A´N¬O¥[¤J·sªº¦r«¬¿ï¾Ü§Þ¥©¡A( ¥¦²{¦b
³Q¥s°µ PSNFSS)¡C¥¿±`TeX ¨Ï¥ÎªÌ·|¥H³o¼Ë©R¥O«ü©w¦r«¬¡G
\font=bodyroman = cmr10 scaled \magstep 1
³o©R¥O«D±`©ú½Tªº«ü©wn¨º¤@ºØ¦r«¬¡A¦ý¬O·Qn¹B¥Î¦Û¦p¡AÁÙ»Ýn¦³³]pªÌ©M¼Æ
¾Ç®aªº§Þ¥©¡A¦P®É¥¦ªºÄâ±a©Ê¤]¤£¦n¡A¦pªG¤@Ó¨t²Î¨S¦³ cmr10¡A (
§YComputer Modern Roman Å骺 10 ¦r«¬ ) ¡A «h¥¦·|¥H¬YÓ¯S©wªº¦r«¬³W®æ¡A
´À¥þ³¡ªº¤å¥ó½s½X¡C¦Ó³oÓ PSNFSS ¤¹³\¥Ñ¤@¨t¦Cªº¦r«¬ ( Computer Modern¡A
URW Nimbus¡AHelvetica¡A Utopia¡A µ¥µ¥ ) ¡B¦rªº²Ê²Ó ( ²ÓÅé¡A¤¤Åé¡A²ÊÅé
) ¡B¦rªº¤è¦ì ( ¥¿ª½ªº©Î±× ) ¡B¦r§Î ( ù°¨Åé¡A±×Åé ) ©M°ò¥»¦r«¬¤j¤p¡A«ü
©wn¥Îªº¦r«¬¡C ( ¸Ô²Ó¨Ï¥Î¤èªk¡A½Ð°Ñ¦Ò [23]¦r¤¸¡B¦r§Î§ÎºA ¨º¤p¸` ) ¦³«Ü
¦h¦r«¬·|³Q¦P®É¥]§t¦b¦P¤@¦r«¬¶°¡AÁ|¨Ò¨Ó»¡¡A Helvetica ¦r«¬¶°¥]§tù°¨¦r«¬
©M sans serif ¦r«¬¡A Courier ¥]§tù°¨¦r«¬©M monospaced ¦r«¬¡C§A¤]¥i©M¨ä
¥LLaTeX ¨Ï¥ÎªÌ¤@¼Ë¡A¥Î¤@Ó©R¥O¡A´N¥i¥H¨Ï¥Î¬Y¤@Ó¦r«¬¶°¡C
¥¿¦p«e±©Ò´£¡A¦³´XÓ°ª«~½è¦r«¬¶°¨Ñ¤H¦Û¥Ñ¨Ï¥Î¡A¨ä¤¤¤§¤@¬O Adobe ªº
Utopia ¦r«¬¡A¥t¥~¤§¤@¬O Bitstream ªº Charter ¦r«¬¡A¨âªÌ³£¬O¤w¸g³Q®½ÃØ¡A
Åý¤H¦Û¥Ñ¨Ï¥Îªº¨ã¦³°Ó·~¤Æ«~½è¦r«¬¡C
§Ú¤]¼Ö©ó¨£¨ì¤U¦C¨âÓª¬ªpµo®i¡A¨ä¤¤¤@Ó¬O¡AÆ[¹î©P³òCTAN ¸ê®Æ®w¡A§A·|µo²{
¦b¨º¸Ì¡A¤£¦ý¦³³o¨Ç¦r«¬¡A¦Ó¥BÁÙ¦¬¿ý¤F¨ä¥Lªº¦r«¬¡C¦b¨º¸Ì¦³¥R¨¬ªº¦r«¬¡A¨Ñ
§A¥Î LaTeX ³]p¤å¥ó¡A¦P®É¨Ã¤£¥u©ó¨Ï¥Î^¤å¡C¥»¨Ó TeX ³Q³]p¨Ó§@¼Æ¾Çªº
±Æª©¡A©Ò¥H¦³§¹¾ã¥i¥Îªº¼Æ¾Çªº¦r«¬¡A¨Ò¦p´µ©Ô¤ÒÅé¡B§ÆþÅé¡B Kana ©M¨ä¥L¤Ó
«Ü¦h¦Ó¤£¯à´£¨ìªº¦r¥À¡C
¥t¤@Ó«nªº¨Æ¬O¦³Ãö°ÆÀɦW¬°.pfa ©Î .pfb ªºÀɮסA¥LÌ¥»¨´N¬O¦V¶q¦r«¬ÀÉ
¡A¦Ó¤£¬O´yz¦r«¬¤j¤pµ¥¸ê®ÆªºÀɮסAType 1 ¦V¶q¦r«¬¨Ï¥Î°ÆÀɦW¬° .pfm ªºÀÉ
®×¡A·í°µ´yz¦r«¬¤j¤pµ¥¸ê®ÆªºÀɮסA¤£¦P©óÂI¶Z°}¦r«¬¨Ï¥Î°ÆÀɦW¬°.tfm ªºÀÉ
®×¡A³o¨âºØ¦r§Î¶°¤À§O³£©ñ¦¬¦b teTeX ¤¤¡C
¥¿¦p§Ú©Ò¨¥¡A¥ÎPSNFSS ¿ï¾Ü¦r«¬©M¤U±ªº¨Ò¤l¤@¼Ë¡A¯uªº«Ü®e©ö¡A¦pªG§ÚÌn¦b
¤å¥ó¤¤¡A¨Ï¥ÎCharter ¦r«¬¥N´À Computer Modern ¦r«¬¡A¥un¦b¤å¥ó«e¤å¤¤¡A¥[
¤J¡@LaTeX¡@«ü¥O´N¥i¥H¤F¡G
\renewcommand{\familydefault}{bch}
¨ä¤¤ "bch" «ü©w¨Ï¥Î Bitstream Charter¦r«¬¡A³o¦r«¬©ñ¦b¤U¦C¥Ø¿ý¤¤¡G
/usr/lib/teTeX/texmf/fonts/type1/bitstrea/charter
¦b¨º¸Ì§A±N·|¬Ý¨£Charter ¦r«¬ªº .pfb ÀɮסGbchb8a.pfb ¥Nªí²ÊÅéCharter ¦r
«¬¡A bchr8a.pfb ¥Nªíù°¨ÅéCharter ¦r«¬¡A bchbi8a.pfb ¥Nªí±×ÅéCharter ¦r
«¬¡A"8a" ¥Nªí¦r¤¸½s½X¡C¤£¦P©ó 8 ¦ì¤¸ªº¦r¤¸¡A³o¨Ç¦r±Ä¥Î ¶W¹L128 ¦ì¤¸¼Æªº
¤èªk½s½X¡A©Ò¥H¤£n¾á¤ß¤£°÷¥Î¡A¥L̤j·§¥Î¨Ó©w¸q«µ©M«D^¤åªº¦r¤¸¡C¦]
¬°Type 1 ¦r¤¸ªº½s½X©Mµ¹°ê»Ú¦r¤¸¨Ï¥ÎªºISO 8859 ¼Ð·Ç¤@P¡A«Ü¾A¦X¨Ï¥Î¦è¤è
ªº¦r¤¸¡A©Ò¥H³o¤]¬O¨Ï¥Î³o¤@Ãþ¦r«¬ªºÃB¥~¦n³B¡C
¦pªGn¥ÎCharter ¦r«¬±Æª©¤å¥ó¡A§An¤U³o¼Ëªº©R¥O¡G
pslatex document.tex
pslatex ¬O teTeX ªº¼Ð·Ç latexªº¤@ÓÅÜÅé©R¥O¡A¥¦©w¸qType 1 ¦r«¬¦b¨º¨Ç¥Ø
¿ý¡A©MÃB¥~ªºlatex ¤º½X¡A§A±N·|¦bTeX §@¥Î¤U¡A¦ñÀH¥X¨Óªº°T®§¡A¬Ý¨£°õ¦æ
pslatex ªºÄµ¥Ü¿Ã¹õ¡C¹L¤@·|¡A´N²£¥Í¶·nCharter ¦r«¬ªº .dvi ÀɮסAµM«á§A
¯à¥Îdvips¦C¦LÀɮסA¦pªG¦³¶·n¡A´N¨Ï¥Îgs ¡C
¥un§A¿í±q¤@¨Ç°ò¥»ªº¨BÆJ¡A¦w¸Ë¤@ÓType 1 ¦r«¬¬O¤£§xÃøªº¡C§AÀ³¸Ó¸Ñ¶}
¦b/usr/lib/teTeX/texmf/fonts/type1 ¤¤ªº Type 1 ¦r«¬¡AµM«á°õ¦æ texhash
¡AÅý¨º¨Ç¥Ø¿ý·j´Mµ{¦¡ª¾¹D¨º¨Ç¦r«¬¤w¸g³Q¥[¤J¡CµM«á¦bÀÉ®×psfonts.map ¤¤¡A
¥[¤J¦r«¬´yz¡AÅýdvipsª¾¹D¥L̦b¨t²Î¤¤¡Cpsfonts.map Àɮתº®æ¦¡¡A¦b¤Wz©Ò
´£¨ì¤£¦P¦a¤èªº°Ñ¦Ò¦ì§}³£¦³¡Cn°O±o°õ¦ætexhash ¥h§ó·s teTeX ¥Ø¿ý¸ê®Æ®w¡C
¦bX µøµ¡¨t²Î¨Ï¥ÎteTeX --- ¦b Linux¤¤ªº XFree86 --- ªº½T«Ü´Î¡A¦]¬°¥¦¤¹³\
¹wÄý ¤å¥ó¡CÁöµM³o¨Ã¤@©w»Ýn¡A¦ý¬O®e©ö¹wÄý¤å¥ó¡A¦³§U©ó§ïµ½¿é¥Xªº«~½è¡C¦ý
³o·|Ä묹±¼½s¿èªº³t«×¡A¥²³º¦b¤å¦r¼Ò¦¡°õ¦æ³t«×·|¤ñ¸û§Ö¡C
8. Appendix A: CTAN ºô§}¦ì¸m¥Ø¿ý
³oùجO¤@¥÷°O¸ü CTAN.sites, ºô§}¦ì¸mªº¤å¥ó¡A§A¥i¦b¨C¤@Ó CTAN ¸ê®Æ®w©Î¬M
®g¦ì¸mªº³Ì¤W¼h¥Ø¿ý¤¤§ä¨ì¡C
¬°¤Fn´î¤Öºô¸ôt²ü¡A«Øij§A¨Ï¥Î³Ì¾aªñ§Aªº TeX ¸ê®Æ®wºô¸ô¥D¾÷ (CTAN) ¡C©ÎªÌ¡A§A¤]
¥i¥H§ä¤@¥÷ (CTAN) ¥Xª©ªº¥úºÐ¤ù ( ²Ó¸`½Ð¬Ýhelp/CTAN.cdrom ) ¡C¤wª¾§¹¾ã CTAN ªº¬M
®g¦ì¸m¡A«ö¦r¥À¶¶§Ç¬°¡G
cis.utovrm.it (Italia) /TeX
ctan.unsw.edu.au (NSW, Australia) /tex-archive
dongpo.math.ncu.edu.tw (Taiwan) /tex-archive
ftp.belnet.be (Belgium) /packages/TeX
ftp.ccu.edu.tw (Taiwan) /pub/tex
ftp.cdrom.com (West coast, USA) /pub/tex/ctan
ftp.comp.hkbu.edu.hk (Hong Kong) /pub/TeX/CTAN
ftp.cs.rmit.edu.au (Australia) /tex-archive
ftp.cs.ruu.nl (The Netherlands) /pub/tex-archive
ftp.cstug.cz (The Czech Republic) /pub/tex/CTAN
ftp.duke.edu (North Carolina, USA) /tex-archive
ftp.funet.fi (Finland) /pub/TeX/CTAN
ftp.gwdg.de (Deutschland) /pub/dante
ftp.jussieu.fr (France) /pub4/TeX/CTAN
ftp.kreonet.re.kr (Korea) /pub/CTAN
ftp.loria.fr (France) /pub/unix/tex/ctan
ftp.mpi-sb.mpg.de (Deutschland) /pub/tex/mirror/ftp.dante.de
ftp.nada.kth.se (Sweden) /pub/tex/ctan-mirror
ftp.oleane.net (France) /pub/mirrors/CTAN/
ftp.rediris.es (Espa\~na) /mirror/tex-archive
ftp.rge.com (New York, USA) /pub/tex
ftp.riken.go.jp (Japan) /pub/tex-archive
ftp.tu-chemnitz.de (Deutschland) /pub/tex
ftp.u-aizu.ac.jp (Japan) /pub/tex/CTAN
ftp.uni-augsburg.de (Deutschland) /tex-archive
ftp.uni-bielefeld.de (Deutschland) /pub/tex
ftp.unina.it (Italia) /pub/TeX
ftp.uni-stuttgart.de (Deutschland) /tex-archive (/pub/tex)
ftp.univie.ac.at (\"Osterreich) /packages/tex
ftp.ut.ee (Estonia) /tex-archive
ftpserver.nus.sg (Singapore) /pub/zi/TeX
src.doc.ic.ac.uk (England) /packages/tex/uk-tex
sunsite.auc.dk (Denmark) /pub/tex/ctan
sunsite.cnlab-switch.ch (Switzerland) /mirror/tex
sunsite.icm.edu.pl (Poland) /pub/CTAN
sunsite.unc.edu (North Carolina, USA) /pub/packages/TeX
wuarchive.wustl.edu (Missouri, USA) /packages/TeX
CTAN ¤wª¾³¡¤Àªº¬M®g¦ì¸m¡A«ö¦r¥À¶¶§Ç¬°¡G
ftp.adfa.oz.au (Australia) /pub/tex/ctan
ftp.fcu.edu.tw (Taiwan) /pub2/tex
ftp.germany.eu.net (Deutschland) /pub/packages/TeX
ftp.gust.org.pl (Poland) /pub/TeX
ftp.jaist.ac.jp (Japan) /pub/TeX/tex-archive
ftp.uu.net (Virginia, USA) /pub/text-processing/TeX
nic.switch.ch (Switzerland) /mirror/tex
sunsite.dsi.unimi.it (Italia) /pub/TeX
sunsite.snu.ac.kr (Korea) /shortcut/CTAN
Y¦³·s¸ê®Æ½Ð±Hµ¹ .
°Ñ¤©¡@CTAN ªº¦³¡G
ftp.dante.de (Deutschland)
-- anonymous ftp /tex-archive (/pub/tex /pub/archive)
-- gopher on node gopher.dante.de
-- e-mail via ftpmail@dante.de
-- World Wide Web access on www.dante.de
-- Administrator:
ftp.tex.ac.uk (England)
-- anonymous ftp /tex-archive (/pub/tex /pub/archive)
-- gopher on node gopher.tex.ac.uk
-- NFS mountable from nfs.tex.ac.uk:/public/ctan/tex-archive
-- World Wide Web access on www.tex.ac.uk
-- Administrator:
9. Appendix B: ¦w¸Ë CTAN ªº teTeX ®M¥ó
¤@¯ë¦Ó¨¥¡A¦w¸Ë teTeX ®M¥ó¨Ã¤£¤ñ¦w¸Ë Linux ªºµ{¦¡¶°Ãø¡A½Ð¬Ý¥H¤U¡G [24]¤@
¯ë CTAN ®M¥ó
¦pªG§AÄÝ©ó¤U±±¡§Î¤§¤@¡AÀ³¸Ó¦Ò¼{¦w¸Ë¨Ó¦Û¨º¨Ç CTANªº teTeX ÀÉ®×®M¥ó¡G
* §Aªº¨t²Î¨Ã«D¼Ð·Çªº Linux
* ¦b§Aªº¨t²Î¤W§A¨S¦³ºÞ²zªÌªº¥DÅv
* §A»Ýn³Ìªñªº teTeX ©Î LaTeX ª©¥»
* §A¨S¦³¨¬°÷ªººÏºÐªÅ¶¡§¹¾ãªº¦w¸Ë
* §A¤£n¦b /usr ¤¤¦w¸Ë teTeX
* §A·Qn»Pºô¸ô¤Wªº¨ä¥Lªº UNIX ¬Û®e¨t²Î©Î¥¥x¤À¨É§Aªº teTeX¡C³oºØ±¡ªp
¡A§óÀ³¸Óª½±µ¥Ñ ì©l¨Ó·½ÀÉ ®M¥ó¦Û¦æ¦w¸Ë¡C½Ð¬Ý¥H¤U¡G [25]¦w¸Ë¨Ó·½ÀÉ®M
¥ó
* §An¨Ï¥Î teTeX ³Ì·s¤½¶} Type 1 ¦r«¬ªºª©¥»¡A¥¦¤ñ¸û¦ªºª©¥»¤¤©Ò¥]§tªº
¦r«¬¸û¦n¡C
¥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¤@©wn¦w¸ËX µøµ¡¨t²Î¡A¤]¤£»Ýn¦w¸Ë GCC ½sĶµ{
¦¡¡A¥þ³¡©Ò§A»Ýn¬O¤@Ó¯à°÷½s¿è²³æªº ASCII ¤å¥óªº½s¿èµ{¦¡¡C°÷²³æ§a ?
§A¯à±q [26]ªþ¿ý A¤¤¡A¥ô¦ó¤@Ó CTAN ÀÉ®×®w¡A¨ú¦^³o¨ÇÀɮסA ¦b¤U±ªº¨Ò¤l
¤¤¡A¨º¨ÇÀɮ׬O±q CTAN ÀÉ®×®w¡A [27]ftp.tex.ac.uk¡A³Q¨ú¦^ªº¡C
9.1 ¤G¶i¦ìÀÉ®×®M¥óªº¦w¸Ë
³Ì¤pªº¦w¸Ë
º¥ý¡A¥Î FTP ³s¨ì [28]ftp.tex.ac.uk ¨Ã cd ¨ì¤U¦C¥Ø¿ý¡Gy
ctan/tex-archive/systems/unix/teTeX/distrib/
¨ú¦^³o¨ÇÀÉ®×
INSTALL.bin
install.sh
§â¥LÌ©ñ¦b§An¦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¦]¬°¥¦´yz¸Ó¦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¤Wz¨âÓÀÉ®×®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 [29]°ò¥»¨t²Î³]©w¡C
n¦w¸Ë¨º¨Ç¨ä¾lªºµ{¦¡¶°, ½Ð°Ñ¦Ò¤U¤@¸`¡C
§¹¾ã¦w¸Ë
¬°¤Fn¦w¸Ë§¹¾ãteTeX ªº¨t²Î¡A°£¤F¨ú¦^¤Wz¨º¨ÇÀɮס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§An¦w¸Ë teTeX ¨t²Îªº³Ì¤W¼hªº¥Ø¿ý¤§¤º¡A©M³Ì¤pªº
¦w¸Ë¤@¼Ë¡A°õ¦æ©R¥O¡G
sh ./install.sh
9.2 °ò¥»¨t²Î³]©w
¨M©wn¨º¤@ºØ¡@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«á¦^¨ì¥Dnªº¥Ø¿ý¤§«á¡A¦A¿ï " I " ¿ï¶µ¡AÄ~Äò¦w¸Ë¡A³o¥Ø¿ý¥i¥H¤£¦s¦b
¡Ainstall.sh ·|¦Û°Ê²£¥Í³o¥Ø¿ý¡C
§Y¨Ï§Ap¹º¥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¤Sn«·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 [30]¦w¸Ë§¹«á³]©wªº²Ó¸`
9.3 CTAN ¨Ó·½½X®M¥óªº¦w¸Ë
n±qµ{¦¡½X¦Û¦æ½sĶ¦w¸Ë teTeX V. 0.4 ¡A¥ý¥Î ftp ¨ì CTAN¡A¦p
[31]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±otarn¥Î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¥un 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¸Ë§¹¦¨¤§«á¡An§â teTeX ¥Ø¿ý¥[¤J $PATH ¡A $MANPATH¡A $INFOPATH¨º¨ÇÀô
¹ÒÅܼƤ§¤¤¡A©Ó¤W¨Ò¡A¥un¦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°Ñ¦Ò [32]¦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§An©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 ®æ¦¡ÀɮסAn½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²Îªº¸ô
®|¡AY§A¬O¦Û¤vÓ¤Hn¦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
10. ¡@ªþ¿ý 3¡G ®M¥ó©Mª©Åv
10.1 ®M¥ó
teTeX ¬° ¦Û¥Ñ³nÅé ¡A³o¥Nªí¥¦¦b¬Y¨Ç±ø¥ó¤U¡A¥¦¥i¥H¦Û¥Ñ³Q¨Ï¥Î»P´²§G¡C³oµ{
¦¡¶°¤£¬O¤½²³ªº¡A¦Ó¬O¦³ª©Åvªº¡A©M¤@¨Ç¨î±ø¥óªº¡A¦ý¬O³o¨Ç¨î¡A³Q³]p¤¹
³\¤@Ó¦nªº¦X§@¥«¥Á¡A±N·|°µªº¨C¥ó¨Æª«¡CÁקK¤À¨É¤£¨ì¨ä¥L¥Ñ¦¹§K¶Oªº³nÅé¡A
©Òµo®i¥X¨Ó¥ô¦ó§ó¶i¤@¨Bªºª©¥»¡C½T¹êªº±¡ªp¡A¦b»P³\¦h³nÅé¤@°_¥]»q¹L¨Ó
ªºGNU General Public License ¤¤³Q§ä¨ì¡A¤]¥X²{¦b¤U¤@¸`¤¤¡C
¤@Ó±o¨ì³oµ{¦¡¶°¤èªk¡A´N¬O¸ò¦³¥¦ªº¤Hn¡C§A¤£»Ýn§Ú̪º³\¥i©Î§i¶D¥ô¦óªº
¤H¡A ´N¥i¥H«þ¨©¥¦¡C¦pªG§A·|¨Ï¥Îºô»Úºô¸ô¦s¨ú¡A´NÂǥѰΦWªº FTP±o¨ì³Ìªñªº
®M¥óª©¥»¡A¸Ô²Ó±¡ªp½Ð¬Ý `` ¨Ó·½ '' ¡C
·í§A¶R¤@³¡¹q¸£ªº®ÉÔ¡A§A¤]¥i¯à±o¨ì³o³nÅé¡C¹q¸£»s³y·~ªÌ¡A¸ò¥ô¦ó¤H¾A¥Îªº
±¡ªp¤@¼Ë¡A¤]¥i¥H§K¶O¨ú±o³o³nÅé¡C³o¨Ç±M¦³³N»y¡A«OÃÒ¥LÌnµ¹§A¨º¨Ç§¹¾ãªº
¨Ó·½¡A¥]¬A¥LÌ¥i¯à¤w¸g°µªº¥ô¦ó§ïÅÜ¡A General Public License ¤]¤¹³\§A«
·s´²§G³o¨Ç±q¥Ḻo¨Óªº®M¥ó¡C´«¥y¸Ü»¡¡A³o¨Ç¤£¦ý¹ï§A¬O§K¶Oªº¡A¦P®É¹ï»s³y
·~ªÌ¤]¬O¡C
§A¦b¥i¥H¦V§K¶O³nÅé°òª÷·|¡AqÁʳoÓ GNU ³nÅ骺¥úºÐ¡A³o¬O¤@Ó¨ú±o³nÅé¬J¤è
«K¤S¥i¾aªº¤èªk¡A¥¦¤]¥i¥HÀ°§U§Ú̪º°òª÷·|¡C ( °òª÷·|¥Ñ¦¹±o¨ì¤j¦h¼ÆªºÃÙ§U
°òª÷ ) qÁʳæ·|ªþ¦b¤j¦h¼Æªº®M¥óùØ¡A©Î¥Ñ§Ú̺ô¯¸
http://www.gnu.ai.mit.edu/order/order.html. §ä¨ì¡C¹ï©ó¶i¤@¨Bªº®ø®§¡A½Ð
¼g¨ì
Free Software Foundation
59 Temple Place, Suite 330
Boston, MA 02111-1307 USA
USA
¨Ó¦Û®M¥óªº¦¬¤J¡A³£¥Î¨Ó¤ä§U°òª÷·|ªº¥Ø¼Ð¡G·sªº§K¶O³nÅ骺µo®i©M§ï¶i¤w¦s¦b
ªº³nÅé¡C
¦pªG§A¦b§Aªº¤u§@¦aÂI¨Ï¥Î GNU ³nÅé¡A½Ð´£Ä³¤½¥qÃÙ§U¡C¦pªG¤½¥q¬Fµ¦¹ï¦¹ÃþÃÙ
§U¡A¬O¤£ªíÃÙ¦Pªº¡A§A¥i´£Ä³°¸¦Ó¦V°òª÷·|qÁÊ¥úºÐ¡A©Î©w´Áªº§ó·s¨Ï¥Îªº³nÅé
¡C
10.2 GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
Preamble.
The licenses for most software are designed to take away your freedom
to share and change it. By contrast, the GNU General Public License is
intended to guarantee your freedom to share and change free
software---to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on,
we want its recipients to know that what they have is not the
original, so that any problems introduced by others will not reflect
on the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at
all.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
* This License applies to any program or other work which contains a
notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The ``Program''
below, refers to any such program or work, and a ``work based on
the Program'' means either the Program or any derivative work
under copyright law: that is to say, a work containing the Program
or a portion of it, either verbatim or with modifications and/or
translated into another language. (Hereinafter, translation is
included without limitation in the term,``modification.'') Each
licensee is addressed as ``you.'' Activities other than copying,
distribution and modification are not covered by this License;
they are outside its scope. The act of running the Program is not
restricted, and the output from the Program is covered only if its
contents constitute a work based on the Program (independent of
having been made by running the Program). Whether that is true
depends on what the Program does.
* You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep
intact all the notices that refer to this License and to the
absence of any warranty; and give any other recipients of the
Program a copy of this License along with the Program. You may
charge a fee for the physical act of transferring a copy, and you
may at your option offer warranty protection in exchange for a
fee.
* You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions: 1. You
must cause the modified files to carry prominent notices stating
that you changed the files and the date of any change. 2. You must
cause any work that you distribute or publish, that in whole or in
part contains or is derived from the Program or any part thereof,
to be licensed as a whole at no charge to all third parties under
the terms of this License. 3. If the modified program normally
reads commands interactively when run, you must cause it, when
started running for such interactive use in the most ordinary way,
to print or display an announcement including an appropriate
copyright notice and a notice that there is no warranty (or else,
saying that you provide a warranty) and that users may
redistribute the program under these conditions, and telling the
user how to view a copy of this License. (Exception: if the
Program itself is interactive but does not normally print such an
announcement, your work based on the Program is not required to
print an announcement.) These requirements apply to the modified
work as a whole. If identifiable sections of that work are not
derived from the Program, and can be reasonably considered
independent and separate works in themselves, then this License,
and its terms, do not apply to those sections when you distribute
them as separate works. But when you distribute the same sections
as part of a whole which is a work based on the Program, the
distribution of the whole must be on the terms of this License,
whose permissions for other licensees extend to the entire whole,
and thus to each and every part regardless of who wrote it. Thus,
it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is
to exercise the right to control the distribution of derivative or
collective works based on the Program. In addition, mere
aggregation of another work not based on the Program with the
Program (or with a work based on the Program) on a volume of a
storage or distribution medium does not bring the other work under
the scope of this License.
* You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms
of Sections 1 and 2 above provided that you also do one of the
following: 1. Accompany it with the complete corresponding
machine-readable source code, which must be distributed under the
terms of Sections 1 and 2 above on a medium customarily used for
software interchange; or, 2. Accompany it with a written offer,
valid for at least three years, to give any third party, for a
charge no more than your cost of physically performing source
distribution, a complete machine-readable copy of the
corresponding source code, to be distributed under the terms of
Sections 1 and 2 above on a medium customarily used for software
interchange; or, 3. Accompany it with the information you received
as to the offer to distribute corresponding source code. (This
alternative is allowed only for noncommercial distribution and
only if you received the program in object code or executable form
with such an offer, in accord with Subsection b above.) The source
code for a work means the preferred form of the work for making
modifications to it. For an executable work, complete source code
means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However,
as a special exception, the source code distributed need not
include anything that is normally distributed (in either source or
binary form) with the major components (compiler, kernel, and so
on) of the operating system on which the executable runs, unless
that component itself accompanies the executable. If distribution
of executable or object code is made by offering access to copy
from a designated place, then offering equivalent access to copy
the source code from the same place counts as distribution of the
source code, even though third parties are not compelled to copy
the source along with the object code.
* You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this
License. However, parties who have received copies, or rights,
from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
* You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify
or distribute the Program or its derivative works. These actions
are prohibited by law if you do not accept this License.
Therefore, by modifying or distributing the Program (or any work
based on the Program), you indicate your acceptance of this
License to do so, and all its terms and conditions for copying,
distributing or modifying the Program or works based on it.
* Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program
subject to these terms and conditions. You may not impose any
further restrictions on the recipients' exercise of the rights
granted herein. You are not responsible for enforcing compliance
by third parties to this License.
* If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent
issues), conditions are imposed on you (whether by court order,
agreement or otherwise) that contradict the conditions of this
License, they do not excuse you from the conditions of this
License. If you cannot distribute so as to satisfy simultaneously
your obligations under this License and any other pertinent
obligations, then as a consequence you may not distribute the
Program at all. For example, if a patent license would not permit
royalty-free redistribution of the Program by all those who
receive copies directly or indirectly through you, then the only
way you could satisfy both it and this License would be to refrain
entirely from distribution of the Program. If any portion of this
section is held invalid or unenforceable under any particular
circumstance, the balance of the section is intended to apply and
the section as a whole is intended to apply in other
circumstances. It is not the purpose of this section to induce you
to infringe any patents or other property right claims or to
contest validity of any such claims; this section has the sole
purpose of protecting the integrity of the free software
distribution system, which is implemented by public license
practices. Many people have made generous contributions to the
wide range of software distributed through that system in reliance
on consistent application of that system; it is up to the
author/donor to decide if he or she is willing to distribute
software through any other system and a licensee cannot impose
that choice. This section is intended to make thoroughly clear
what is believed to be a consequence of the rest of this License.
* If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces,
the original copyright holder who places the Program under this
License may add an explicit geographical distribution limitation
excluding those countries, so that distribution is permitted only
in or among countries not thus excluded. In such case, this
License incorporates the limitation as if written in the body of
this License.
* The Free Software Foundation may publish revised and/or new
versions of the General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns. Each version
is given a distinguishing version number. If the Program specifies
a version number of this License which applies to it and ``any
later version,'' you have the option of following the terms and
conditions either of that version or of any later version
published by the Free Software Foundation. If the Program does not
specify a version number of this License, you may choose any
version ever published by the Free Software Foundation.
* If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the
author to ask for permission. For software which is copyrighted by
the Free Software Foundation, write to the Free Software
Foundation; we sometimes make exceptions for this. Our decision
will be guided by the two goals of preserving the free status of
all derivatives of our free software and of promoting the sharing
and reuse of software generally. NO WARRANTY
* BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS
AND/OR OTHER PARTIES PROVIDE THE PROGRAM ``AS IS'' WITHOUT
WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE
QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
SERVICING, REPAIR OR CORRECTION.
* IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
10.3 How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these
terms.
To do so, attach the following notices to the program. It is safest to
attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the ``copyright'' line and a pointer to where the full notice is
found.
[one line to give the program's name and an idea of what it does.
Copyright (C) 19[yy] [name of author]
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
Also add information on how to contact you by electronic and paper
mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) 19[yy] [name of author]
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
type `show w'. This is free software, and you are welcome
to redistribute it under certain conditions; type `show c'
for details.
The hypothetical commands ``show w'' and ``show c'' should show the
appropriate parts of the General Public License. Of course, the
commands you use may be called something other than ``show w'' and
``show c''; they could even be mouse-clicks or menu items---whatever
suits your program.
You should also get your employer (if you work as a programmer) or
your school, if any, to sign a ``copyright disclaimer'' for the
program, if necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright
interest in the program `Gnomovision'
(which makes passes at compilers) written
by James Hacker.
[signature of Ty Coon] 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library,
you may consider it more useful to permit linking proprietary
applications with the library. If this is what you want to do, use the
GNU Library General Public License instead of this License.
References
1. mailto:kiesling@ix.netcom.com
2. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#copyright
3. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#sec-using
4. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#ctan-list
5. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#ctan-install
6. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#dvips
7. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#characters
8. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#tex-font-commands
9. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#postscript-fonts
10. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#para-dimen
11. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#tolerances
12. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#tolerances
13. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#tex-page
14. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#tex-font-commands
15. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#letter-class
16. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#latex-packages
17. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#postscript-fonts
18. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#latex-packages
19. ftp://ftp.tex.ac.uk/
20. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#ctan-list
21. ftp://sunsite.unc.edu/pub/Linux/apps/tex/dvi/
22. ftp://ftp.math.utah.edu/pub/tex/dvi/
23. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#characters
24. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#generic-CTAN
25. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#generic-CTAN
26. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#ctan-list
27. ftp://ftp.tex.ac.uk/
28. ftp://ftp.tex.ac.uk/ctan/tex-archive/systems/unix/teTeX/contrib
29. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#base-config
30. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#post-install
31. ftp://ftp.tex.ac.uk/
32. file://localhost/tmp/zh-sgmltools.13630/TeTeX-HOWTO.txt.html#post-install