20060618 tex.handout

608 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
608
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

20060618 tex.handout

  1. 1. ð¦ LTEX A |’ Wireless Tech Innovation (WTI) Institute, Beijing University of Posts and Telecommunications (BUPT) A Slides are manipulated by LTEX 2ε & Beamer. “Distributed under Creative Commons Linces: Some Right Reserved, BY-NC-ND”|’ (WTI, BUPT) ð¦ LATEX 1 / 55
  2. 2. LªLª 1 A LTEX sZ 2 LTEX {äý&~ A 3 VU¥© 4 ‚œÚ*¡Co¡,Â1ùǓSh 5 k© 6 Íõ¥¦ž~wÝ 7 k©¦Þýî|’ (WTI, BUPT) ð¦ LATEX 2 / 55
  3. 3. A L TEX sLª sZ R1 1 A LTEX A LTEX A LTEX {¡š “ã LTEX A LTEX R˜‘ÓB{ A 2 A {äý~ LTEX 3 VU¥© 4 ‚œÚ*¡Co¡,Â1ùǓSh 5 k© 6 Íõ¥¦ž~wÝ 7 k©¦Þýî|’ (WTI, BUPT) ð¦ LATEX 3 / 55
  4. 4. A L TEX s A L TEX 44 TEX 0‰ !¦© $Ç©ÿ®žqÇ݀R$ǒǞqÇ ÒR MS Word $Ç,1Ç¡,jH{Óänj•°h; ›!Å $Çҟöˆèη{©W¡¡GR) ¦X©{’ÇÓä $Ǔt{J²ÑÓäLjX(ó1ø XÞÑ!8~ ˆRÄhýÄzÇRÄFýÄz{Óä g: TEX|’ (WTI, BUPT) ð¦ LATEX 4 / 55
  5. 5. A L TEX s A L TEX 4 ‘$§Õ˜‘TEX ǧiš: X Ræq©ñ X (chi)Çýéˆ!ÖÄ /ks/ǘBúzˆ€Ç,IÖÄ /k/¢/tekh/AL TEX/’lei’tekh/ Ý /’lA:’tekh/¢ |’ (WTI, BUPT) ð¦ LATEX 5 / 55
  6. 6. A L TEX s A L TEX 4TEX ƒ‰ g: TEX {•¥†: Knuth g: TEXBook|’ (WTI, BUPT) ð¦ LATEX 6 / 55
  7. 7. A L TEX s A L TEX 4 YJ4ÚTEX {j2 APlain TEX, LTEX, ConTEXt¢j2{ TEXTeXLive, CTeXTEX {h“OMEGA. . . I€·¢{›Ò§Œw LTEX Ÿqê A |’ (WTI, BUPT) ð¦ LATEX 7 / 55
  8. 8. A L TEX s A L TEX {¡š~ (X~) LTEX A8~Y4¡øBŽIÇÄFýÄz¢’mÿ{€Ÿ’ÇÇ¡GR“©Í©q{1öÍ(°r¤à04{j¦ÚB1ö4„{˜ƒÂk©1’¯õ{~’vÞĉ€~{ÜÆq›{ UNIX ƒ¦|’ (WTI, BUPT) ð¦ LATEX 8 / 55
  9. 9. A L TEX s “ã LATEX TEX  ã$Çqr{ TEX øX‰§ä÷: TEX ‰qǓ õ«øBÇ長¢u€Ç‰§{R LTEX 2ε, 4Þ¤‹ plain, A ConTEXt. . . vÞwÝǧ˜Ç§ÝWgoÒ§~ graphicx wÝ¢ ‰§{©—§’ñ¤à{©lÇhl§‹¤à{©¢ yÏÓä: Riõ°›Ñg{•¥† ‘Óä3ñ ã{Õtƒÿ MetaFontMetaPost hl‹J ã¥¤–ØÍ©Göì¢ |’ (WTI, BUPT) ð¦ LATEX 9 / 55
  10. 10. A L TEX s “ã LATEX TEX  ãžh{ TEX  ã CTEXÇ¥© Windows ~’3ž~{ ã¢ CTeX SØ{$ ¥© TeX  ãÇé GBK ¥©|Ñ{Í€Ç ,I¼~ Windows øX¥{A數©Ç±žqݎê WinEdt 1öìèÄ$ÇøÄ¢¸¢ TEXLiveÇ3qr{õ²Ñ ã¢ CTAN Ø{’²Ñ{ TeX  ãÇ4ÝWê¡Çq֕ˆQ²Ñ {ˆe‰qǓIùvÞ{wÝǚ5‰Í™¢ teTEXÇLinux ~’3ž~{ ã¢ Thomas Esser ‘{ UNIX ¡vBøX8~{ TEX  ãÇ¡‚šÇ Linux ‰ÇÑÌÝWÇǎ:žTŒÇQt{‰Ç®}¡Ò R teTEX {ƒB¢ fpTEX, MikTEX. . . |’ (WTI, BUPT) ð¦ LATEX 10 / 55
  11. 11. A L TEX s A L TEX 4˜[ÓB{LTEXA ÓBå› 1 ñœÍ©q ֜‰§{©‘ Ýfå(“¦) 2 ÊâwŸq’ ÇÇzt’Çfå 3 4 ñ DVI¢ ñœ©ofå (ä {©) 5 6 3ªñ¢ g: TEX {ÓBÇ|’ (WTI, BUPT) ð¦ LATEX 11 / 55
  12. 12. A L TEX s A L TEX 4˜[ÓB{ LTEX A {Í©G  (3õ¡{1öìDžœ$ãÍ©qljR·¢{‘$Ç LTEX ©q: A1 documentclass { article }2 title { First LaTeX Document }3 author { Wang Xu }4 begin { document }56 maketitle78 Hello , LaTeX !90 end { document } |’ (WTI, BUPT) ð¦ LATEX 12 / 55
  13. 13. A L TEX s A L TEX 4˜[ÓB{›BQñ©G,I‰ø: latex first.tex⇒first.dvi dvips first.dvi⇒first.ps pspdf first.ps ⇒first.pdf,I‰ø: latex first.tex ⇒first.dvi dvipdfm first.dvi⇒first.pdf¤,I†z‰ø: pdflatex first.tex⇒first.pdf|’ (WTI, BUPT) ð¦ LATEX 13 / 55
  14. 14. A L TEX s A L TEX 4˜[ÓB{~ LTEX U©9{0* A €§~{ÜÆALjDÇÒ®R– €{›Ç‚u¦,I֕vW(„€©WւœÚB¡D¡go. . .ó‰§ú~{0(ÞA (label), ó~{0~AÖ(k©k©{~ (±~±(Ržh{)ÖÊâq©{‰§Ç鉧®{Ž(I®Ö°g{›Ç,!AÍõÂB{÷˜Ö©Äñ©lÇUh®rÂBdžtqÄøAŽ¢|’ (WTI, BUPT) ð¦ LATEX 14 / 55
  15. 15. A L TEX {äý~Lª 1 A LTEX sZ LTEX {äý~ Í©q{äý§£: ©ý¡×ÕX 2 A ¡y©n{œ¦Å©#C ïD¦‘Þ 3 VU¥© 4 ‚œÚ*¡Co¡,Â1ùǓSh 5 k© 6 Íõ¥¦ž~wÝ 7 k©¦Þýî|’ (WTI, BUPT) ð¦ LATEX 15 / 55
  16. 16. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ: Í©G¥{§£ A LTEX{Í©qǃÙRbÇÍz£•Ç“ˆR©W݆ǩW¥‹$täý§£ ÕX: I % b{RÕX¢‰$q€Á{ŽÑˆÌkG3ªñ ˆB¢ I b{5R×ÇÍh5€R‰§ LTEX ¡yÿ®{Ž¢ A ט LaTeX textit{italic} rule[.5em]{5em}{1pt} A LTEX italic ¤‹¥-,1œLގ{¢¸¢˜: 70 begin { quote } 71 We use ‘‘ quote ’ ’ environment for words from others 72 end { quote } ø6ƒi{ŽÒR§ú’Ç{©©ê¢ |’ (WTI, BUPT) ð¦ LATEX 16 / 55
  17. 17. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ: ©©¦8¸ õ•$Ç{8ÂIù¦qÑÌúhB$Ç8ÂÇ˙{ÜǦq (ÒR$Ç8q) ÌúhBRI㢠C¾8 This is an example for illustrate the organ %9 ization of0 a LaTeXe file .12 You can learn many commands and environments of it in3 this example . 5—{ˆB A This is an example for illustrate the organization of a LTEX 2ε file. You can learn many commands and environments of it in this example. |’ (WTI, BUPT) ð¦ LATEX 17 / 55
  18. 18. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ: Í©G{ˆè sÓ1 documentclass [ a 4 paper ,12 pt ]{ article }2 usepackage { fancyhdr , listings , graphicx }3 usepackage { CJK , CJKnumb }4 usepackage [ a 4 paper , %5 includehead , %6 includefoot , %7 top =2 cm , %8 bottom =2 cm , % £s’I{Õ!ÒRœwÝ¡½f×. . . |’ (WTI, BUPT) ð¦ LATEX 18 / 55
  19. 19. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ: Í©G{ˆè t©43 begin { document } ‰°ÒRt©’Iê. . .217218 end { document }
  20. 20. i $Ÿ LTEX ©W,I…óˆQ{Í©q°ÇGD input{filename} Ý A include{filename} ×ñœÇé•âÑÍ©q{Vߐ›‹iv €ÿ¢ |’ (WTI, BUPT) ð¦ LATEX 18 / 55
  21. 21. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ: ©9{) ©W{A’IÝi©W{A¡B††Ï: hR©W{ø:45 title { Hello , LaTeX !46 My First LaTeX Work } ‰RrŸ©W{øǘB‰§tøIqÇ,I8~v‚4¢ |’ (WTI, BUPT) ð¦ LATEX 19 / 55
  22. 22. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ: ©9{) ©W{A’IÝi©W{A¡B††Ï: B†ïD:47 author { Wang Xu 48 Beijing Univ . of Posts and Telecomm .49 gnawux@gmail . com50 and51 Mr . Sleepy 52 Who knows where he come from 53 nobody@anywhere . net %54 } |’ (WTI, BUPT) ð¦ LATEX 19 / 55
  23. 23. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ:9¦ãaALTEX •vW(„©W{Žé• article ©l¡ ‹$Ç¡y{ abstract ¢¸ÇB3§Ö ©W{ˆQvªÿGÝi section, subsection, subsubsection 镧Ÿ{WÖÁÇ,I‹ÇáÖ©ñ%ó—ø9¥: 77 section [ short name ] % 78 { section has a long name } ‹ ∗ {W–‹1‚¢ 83 section *{ asterisk means ldots }|’ (WTI, BUPT) ð¦ LATEX 20 / 55
  24. 24. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ:9¦ãaALTEX •vW(„©W{Žé• book ©l¡ maketitle ×̗©$ÇÒLjR article  ø{Ay¢ õñêÜÇÍ°{vªÿG: part, chapter ˜`Y¥Çš$WÑD0{AÇ,IGD openany kj• 5¢ ø9 (tableofcontents) ŽÌď$Wǘ–‹1‚ †{Ž,II®Ç’I: frontmatter, mainmatter appendix|’ (WTI, BUPT) ð¦ LATEX 20 / 55
  25. 25. A L TEX {äý~ Í©q{äý§£: ©ý¡×ZÕ: ¡O©ý㠋t¡y{©ýãR„Ç“©Ä{Ç~•yÏ©W{®‰ AyÝÒÇWÇF²ëDê¢ lÕ87 This sentence have88 footnote footnote { blah blah ldots }. A66 section { Introduction } label { sec : intro } ~A90 We have mentioned in S ~ ref { sec : intro } on91 pp .~ pageref { sec : intro } ldots |’ (WTI, BUPT) ð¦ LATEX 21 / 55
  26. 26. A L TEX {äý~ ¡O©n{Qœ¦Å©+ ¡O©n ·¢óÞÁF²tiõ¡y©nêlj°§ë¡Ç3ž~{ : 1 ‚ 95 we use ‘‘ quote sign ’ ’ like this . So pretty . n4 99 one means hyphe - nation 100 two is a -- short bar 101 three --- oh yeah iŒn 97 Tilde (~{}) can generate ~ nbsp1 k lshort. |’ (WTI, BUPT) ð¦ LATEX 22 / 55
  27. 27. A L TEX {äý~ ¡O©n{Qœ¦Å©+ ¡O©n ·¢óÞÁF²tiõ¡y©nêlj°§ë¡Ç3ž~{ : 1 #CrB ‚ we use “quote sign” like this. So pretty. n4 one means hyphe-nation two is a – short bar three — oh yeah iŒn Tilde(˜) can generate nbsp1 k lshort. |’ (WTI, BUPT) ð¦ LATEX 22 / 55
  28. 28. A L TEX {äý~ ¡O©n{Qœ¦Å©+ Å©+ ‹{0Ç·¢‰§/c½ LTEX ‚·¢œ{©nhBR¡y A¢ ’q{Å©#C105 verb | % $# @ ~ oh yeah | --- all are verb rã{#C107 begin { verbatim }108 here ,109 #@%$110 verbatims ldots111 end { verbatim } ͅì{Å©#C: listings, fancyverb. . . |’ (WTI, BUPT) ð¦ LATEX 23 / 55
  29. 29. A L TEX {äý~ ¡O©n{Qœ¦Å©+ ®r+HB êDCˆQ{ŽÇ·¢0žÌ½ˆQ{©$ ®×¦¥™4115 emph { emphasis } and underline { underline } G117 textbf { bold face } ‚119 textit { italic } 4©121 texttt { typewriter } |’ (WTI, BUPT) ð¦ LATEX 24 / 55
  30. 30. A L TEX {äý~ ï,¦‘Þ ï,¦‘Þ ‚§€Ò{ŽIšïñÇR3ž~{€Ògƒ$¢ C¾125 begin { itemize }126 item ooolllwww127 item tttiiirrr128 item nnnmmmeee129 end { itemize } rB ooolllwww tttiiirrr nnnmmmeee |’ (WTI, BUPT) ð¦ LATEX 25 / 55
  31. 31. A L TEX {äý~ ï,¦‘Þ ï,¦‘Þ ‚§€Ò{ŽIšïñÇR3ž~{€Ògƒ$¢ C¾131 begin { enumerate }132 item first one133 item another one134 item yet another135 end { enumerate } rB 1 first one 2 another one 3 yet another |’ (WTI, BUPT) ð¦ LATEX 25 / 55
  32. 32. A L TEX {äý~ ï,¦‘Þ ï,¦‘Þ ‚§€Ò{ŽIšïñÇR3ž~{€Ògƒ$¢ C¾137 begin { description }138 item [ itemize ] bullet139 item [ enumerate ] number140 item [ description ] the term141 end { description } rB itemize bullet enumerate number description the term |’ (WTI, BUPT) ð¦ LATEX 25 / 55
  33. 33. VU¥©Lª 1 A LTEX sZ 2 LTEX {äý~ A 3 VU¥© 4 ‚œÚ*¡Co¡,Â1ùǓSh 5 k© 6 Íõ¥¦ž~wÝ 7 k©¦Þýî|’ (WTI, BUPT) ð¦ LATEX 26 / 55
  34. 34. VU¥©TEX/L TEX A {¥©|Ñ ýücˆ|Ñ¥©1hÇÃÿ®¥©¢TEX {$ǒ™4%ÇOMEGA ÍU•ÿ®¥©‰ø{õ©1TEXh¢²D$tÝãÿ®ÇTEX ,Iÿ®¥©Ç˜ ConTEXt ,Iÿ®¥©¢˜‰tшù LTEX —~-¢A Ï‚ LTEX œ¥A{`õiê CCT ~I|Ñ¥©¢ A˜h0{ CCT é LTEX ÿ®0Ÿqê•ÄǐvÞ{ LTEX wÝ A AcˆGŽ¢¤€yA| Werner Lemberg ê CJK wÝÇ|Ñó LTEX ¥8 A~¥©¢¤‹ CTeX  LTEX {¥©|ÑBñêãvࢠA|’ (WTI, BUPT) ð¦ LATEX 27 / 55
  35. 35. VU¥©CJK wÝCJK—Chinese, Japanese, KoreanCJK wÝRyA| Werner Lemberg {ƒñà¢CJK {äýÿ®0 ÿ®œÍ©GÇÇÇ֜Ƴ©nøœ©nÖ R¥†VL©nø{ö©IÄõÇ©ÇOÁö©tõ 1 Çä©{nóÖ 2 3 óñ©G¥‚œéa{©¢v’I LTEX w݈(•Ýã(•Ò,I CJK ²áÿ¢ A{’ CTeX •€{ GB.cpxÇAï{ article  book ©l¡Ñ,I|Ñ¥©¢|’ (WTI, BUPT) ð¦ LATEX 28 / 55
  36. 36. VU¥© VU¥© 1 ÝW CJK wÝÇIùyÏ{ CJKnumb Ý¢ 2 8~ CJK ¢¸145 begin { CJK *}{ GB }{ song } óÙ¥Ò,Iœ¥©ê¢¢¸{kj: GB ©n1hÇ镥©Ç¤,!R GBK, UTF8¢ song ©$Njiõ«©,  3 8~{©¤R,I•5{149 { CJKfamily { kai } |’ (WTI, BUPT) ð¦ LATEX 29 / 55
  37. 37. VU¥© û®r WA¥{q©146 CJKcaption { GB } ‰Ìñœ GB.cpx ©qÇÇÆýR$(w Komascript {©l¡÷ {ÇCTeX { aloft •êÇǕRÇAï{ article, book Ñ,I 8~ÇêÇAÌ8~“‘$W”‰ø{©øÇIù“k© ”Ç“ø9”. . . CJKtilde¢ CJK {÷cˆ!i€ÿ®¥“©ƒE{zÇÍ©q¥Ç¥© “©ƒE˜B8$ÂÌs—¥©¥{“©’5{£Á›4ø¥ ©Ç€Á8$Âljøcˆ›Ç·¢8~ CJKtilde ׀Ǒ˜’ {qú•5Çď$Çif{8EÇ󥓩ƒE8ÞÇÇ,I t¥“©×’{©WͤࢠCJKindent¢Aï{“©©W‘$ã{ãhˆÀŸÇ8~‰0× €ÇÌt‘$ã{ãh‹8ÂÇ7‚Ä‹ÀŸÑ÷˜Ä¥©ó {ÀŸŸÝ¢ |’(WTI, BUPT) ð¦ A L TEX 30 / 55
  38. 38. ‚œÚ*¡go¡,ÂIùǓShLª 1 A LTEX sZ 2 LTEX {äý~ A 3 VU¥© ‚œÚ*¡Co¡,Â1ùǓSh ‚œÚB 4 ‚œD ‚œgo ‚œÇ“ƒh 5 k© 6 Íõ¥¦ž~wÝ 7 k©¦Þýî|’ (WTI, BUPT) ð¦ LATEX 31 / 55
  39. 39. ‚œÚ*¡go¡,ÂIùǓSh ‚œÚ* TEX {j¦Ü*j¦ÜB j¦ÜB¡‚R TEX e©{ÆyÇiõ|8~ LTEX Ry¤ A à{j¦’Ç¢ j¦ÜBR TEX {y|ÑÇÝWêÈ«j¦~{n‚’Ç{! Çċ(t{j¦†¥{j¦ÚB’ÇÇÑ,I„ TEX 4%¢ j¦ÜB¥{ċ{ÚBÑ,I~$©ý9œÇ‰c›ø(óœ ÚB{0̂g5i™¢ |’ (WTI, BUPT) ð¦ LATEX 32 / 55
  40. 40. ‚œÚ*¡go¡,ÂIùǓSh ‚œÚ* Ú*¢¸ ·¢,Ió©W{©°qE‚œÚBǘ157 $ min _ R D _{ rec }( R )+ lambda sum _{ m =1}^{ M } %158 sum _{ l =1}^{ L } R _{ ml }$ ˆBÒR min D (R) + λ M L l=1 Rml ,IäqÇfñ#C R rec m=1161 begin { equation }162 min _ R D _{ rec }( R )+ lambda sum _{ m =1}^{ M } %163 sum _{ l =1}^{ L } R _{ ml } ,164 end { equation } #CˆB˜ M L min Drec (R) + λ Rml , (1) R m=1 l=1 |’ (WTI, BUPT) ð¦ LATEX 33 / 55
  41. 41. ‚œÚ*¡go¡,ÂIùǓSh ‚œÚ* õqÚ* 8~ eqnarry |ÑõqÚB7 begin { eqnarray }8 D _{ dec }= D _0+ theta /( R - R _0)+ nonumber 9 kappa ( P _ r +(1 - P _ r ) e ^{ -( C - R ) T / L )}.0 label { equ : distort }1 end { eqnarray } #CrB˜ Ddec = D0 + θ/(R − R0 ) + κ(Pr + (1 − Pr )e −(C −R)T /L) . (2) |’ (WTI, BUPT) ð¦ LATEX 34 / 55
  42. 42. ‚œÚ*¡go¡,ÂIùǓSh ‚œ, ћ, 8~ tabular ¢¸Ñ›DÂ179 begin { tabular }{| l | lc | p {5 em }|}180 hline181 number type example comments 182 hline183 hline184 1 bf textbf { bf } for the185 defination etc .186 2 italic textit { italic } emph .187 hline188 end { tabular } |’ (WTI, BUPT) ð¦ LATEX 35 / 55
  43. 43. ‚œÚ*¡go¡,ÂIùǓSh ‚œ, ћ, #CrB˜ number type example comments 1 bf bf for the defi- nation etc. 2 italic italic emph. š$ï{éà0B闢¸{¨Ò179 begin { tabular }{| l | lc | p {5 em }|} |’ (WTI, BUPT) ð¦ LATEX 35 / 55
  44. 44. ‚œÚ*¡go¡,ÂIùǓSh ‚œ, rÄ,¢¸ ·¢žžæ‚DÂ{ ˜ˆRû½{ÇRóÁ{ìt ˜r ÄǕRÇ8~ table ¢¸èÄrÄgo¢ Q0Ç·¢¤~“caption”DÂ(AÇ~“label”uuA¢ ˜C¾175 begin { table }[ htb ]176 centering177 caption { Sample Table }178 label { tab : sample }179 begin { tabular }{| l | lc | p {5 em }|} |’ (WTI, BUPT) ð¦ LATEX 36 / 55
  45. 45. ‚œÚ*¡go¡,ÂIùǓSh ‚œgo|Ñ{g¡Â*·¢ó LTEX ©l¥ÇGž8~ graphicx wÝu‚œgo¢ AI¥ÂB{g¡Rú|Ñ{: goÂB €Ò A LTEX eps ©œB PS ©q A pdfLTEX pdf éÒR Ç png $« g jpg
  46. 46. $« geps goÂB R«7Þg ,1†zћ ,1, PS ©G¥=`ÝGD PS ŠKåzt ,1GDÙÆÓäǘ (Imagimagick) ݦÂBzt¢|’ (WTI, BUPT) ð¦ LATEX 37 / 55
  47. 47. ‚œÚ*¡go¡,ÂIùǓSh ‚œgo ‚œg¡‚œg¡{×qIÞg¡8~˜¥×q‚œ:includegraphics[height=2cm]{figures/wti-logo} |’ (WTI, BUPT) ð¦ LATEX 38 / 55
  48. 48. ‚œÚ*¡go¡,ÂIùǓSh ‚œgo ‚œg¡ž~×qkj kj ~i width/height g¡PÝÝ°Ýǘý¾ scale g¡À8{øjǘ scale=0.5 angle g¡žÝ{nÝǘ angle=90 clip eps g¡50 |’ (WTI, BUPT) ð¦ LATEX 38 / 55
  49. 49. ‚œÚ*¡go¡,ÂIùǓSh ‚œgo rÄgo ¦D¡‘Çg¡,IIrÄgo{0Bñ%ó©lƒ¥¢ ÂB˜¥193 begin { figure }[ htb ]194 begin { center }195 % includegraphics {}196 end { center }197 caption { Sample figure }198 label { fig : sample }199 end { figure } |’ (WTI, BUPT) ð¦ LATEX 39 / 55
  50. 50. ‚œÚ*¡go¡,ÂIùǓSh ‚œÇ“Shlistings wÝverb א verbatim ¢¸,I~uÆUˆÄ{âсœ{ŽÇ®XމǷ¢,I8~Ç¢uHCǓƒh¢listings wÝ{¡º ÜÇ× (lstinlinelisting  lstinputlisting) ¦Ç¢¸ (lstlisting)ÇÙ ¥ lstinputlisting ‰Ç×34eÇ,1֜ÙÇ©G¢ |Ñõ«Ç“ªÓ{ªÇé§E©¡ÕXŸqªà |ÑU¡òµº¡©Z¡q‚¡ný®}¡¥v’IƒhRGD listings wÝ(œ{¢|’ (WTI, BUPT) ð¦ LATEX 40 / 55
  51. 51. ‚œÚ*¡go¡,ÂIùǓSh ‚œÇ“Sh ÷˜¦®~ listings wÝ ý®}¡¥{ listings ÷˜50 lstset { extendedchars = false }51 lstset { linewidth =.8 textwidth }52 lstset { basicstyle = small tt }53 lstset { keywordstyle = tt color { red }}54 lstset { numbers = left }55 lstset { numberstyle = tiny color { blue }}56 lstset { frame = trbl }57 lstset { language =[ LaTeX ] TeX } ý©¥8~ listings lstinputlisting[firstline=295,lastline=295]{tex.tex} |’ (WTI, BUPT) ð¦ LATEX 41 / 55
  52. 52. ‚œÚ*¡go¡,ÂIùǓSh ‚œÇ“Sh÷˜¦®~ listings wݞ~kj kjÖÁ €Ò caption $Ä{ caption {ŽÇ©W{ø label $Ä{ label {Wfǐ~6ïD{A frame 0U÷˜ language ÷˜{ªÓ firstline ~©q{åAq‚ lastline ~©q{ªŽq‚|’ (WTI, BUPT) ð¦ LATEX 41 / 55
  53. 53. k©Lª 1 A LTEX sZ 2 LTEX {äý~ A 3 VU¥© 4 ‚œÚ*¡Co¡,Â1ùǓSh 5 k© 6 Íõ¥¦ž~wÝ 7 k©¦Þýî|’ (WTI, BUPT) ð¦ LATEX 42 / 55
  54. 54. k© k©ï, k©ïDiT itemize ¢¸7 begin { thebibliography }{10}8 bibitem { bib : ubi 91 weiser }9 M . Weiser ,0 The computers for the twenty - first century ,1 Scentific American ,2 vol . 265 , pp . 94 -100 , Sept . 1991.3 bibitem { bib : wwrf }4 The Wireless World Research Forum ,5 http :// www . wireless - world - research . org .6 end { thebibliography } |’ (WTI, BUPT) ð¦ LATEX 43 / 55
  55. 55. k© k©{~8~ cite א~k© ,I8~3Y’{~0B201 in cite { bib : ubi 91 weiser } , ldots ,I$9~õÇk©203 in cite { bib : ubi 91 weiser , bib : wwrf } , ldots ¤,I(ÞÍõ{€Ò205 in cite [ pp . 99 -105]{ bib : wwrf } , ldots |’ (WTI, BUPT) ð¦ LATEX 44 / 55
  56. 56. Íõ¥¦ž~wÝLª 1 A LTEX sZ 2 LTEX {äý~ A 3 VU¥© 4 ‚œÚ*¡Co¡,Â1ùǓSh 5 k© Íõ¥¦ž~wÝ Á‘Ý÷˜ 6 l—÷˜ §½fצ¢¸ 7 k©¦Þýî|’ (WTI, BUPT) ð¦ LATEX 45 / 55
  57. 57. Íõ¥¦ž~wÝ Á‘Ý÷˜ Á‘ÝkjAL TEX ²Á~I¥¡ÇŸÝÙ |’ (WTI, BUPT) ð¦ LATEX 46 / 55
  58. 58. Íõ¥¦ž~wÝ Á‘Ý÷˜ geometry wÝ geometry {›n8~4 usepackage [ a 4 paper , %5 includehead , %6 includefoot , %7 top =2 cm , %8 bottom =2 cm , %9 left =2 cm , %0 right =2 cm , %1 head =15 pt , %2 foot =15 pt %3 ]{ geometry } |’ (WTI, BUPT) ð¦ LATEX 47 / 55
  59. 59. Íõ¥¦ž~wÝ l—÷˜ ÁZÂAL TEX {yZ empty R3Y’{ÇÒR1Ñ–‹¢ plain RiY’{ǘ{ZÂÇarticle {h book {šWA {0GžÌR‰ÇZÂǐ‹¥Á‹h¢ heading —8˜W{A¢fancyhdr wÝ lÞ0—¥0™4 8¥®ãB{l—{÷˜ |’ (WTI, BUPT) ð¦ LATEX 48 / 55
  60. 60. Íõ¥¦ž~wÝ l—÷˜ fancyhdr wÝ article ¥ž~{ fancyhdr ~6 fancyhf {}7 pagestyle { fancy }8 lhead { rightmark }9 chead {{ color { blue } $ spadesuit $ gnawux $ spadesuit $}}0 rhead { bfseries thepage }1 lfoot { Manipulated by LaTeXe .}2 rfoot { K . I . S . S . - - - Keep It Simple Stupid }3 renewcommand { headrulewidth }{0.5 pt }4 renewcommand { footrulewidth }{0.5 pt }5 fancypagestyle { plain }{ %6 fancyhf {} % get rid of headers on plain pages7 cfoot { bfseries thepage }8 renewcommand { headrulewidth }{0 pt } % and the line9 renewcommand { footrulewidth }{0.5 pt }0 } |’ (WTI, BUPT) ð¦ LATEX 49 / 55
  61. 61. Íõ¥¦ž~wÝ §½fצ¢¸ §½fצ¢¸·¢¤,I•$t×Ý¢¸{q newcommand  newenvironment ×,I½f™×¢¸ renewcommand  renewenvironment ×,I•F‹{א¢ ¸ ‰°‹$Ǿ¦24 { markright { thesection #1}} |’ (WTI, BUPT) ð¦ LATEX 50 / 55
  62. 62. k©¦ÞýîLª 1 A LTEX sZ 2 LTEX {äý~ A 3 VU¥© 4 ‚œÚ*¡Co¡,Â1ùǓSh 5 k© 6 Íõ¥¦ž~wÝ 7 k©¦Þýî|’ (WTI, BUPT) ð¦ LATEX 51 / 55
  63. 63. k©¦Þýî ©9w?œ #Ö 1 lshort-cn 2 8~g~ÃLatex ManualÇlatex)¥©’Ǎ¨ž¦ÇÄ Latex2e 3latex‚g¨ÃepslatexÄ¥©Çž~O¤kg~ A LTEXCommand. A LTEXCookbook. |’ (WTI, BUPT) ð¦ LATEX 52 / 55
  64. 64. k©¦ÞýîÙÇwc©W:CteX-FAQlshort-enlatex ‚g¨Ãusing imported graphics in latex2eē©Çtexbooklatex companion ch8 ò›†÷latex companion{‘¬WÇEû‰‰j¦œÄlatex-help-bookshort math guidemath mode|’ (WTI, BUPT) ð¦ LATEX 53 / 55
  65. 65. k©¦Þýî5w? ¥© TEX ¥BSÇ©l¡¥ñ¡XÜCTEX:™y÷ TEX ÇCTAN: Comprehensive TEXArchive Network, TEX v’|’ (WTI, BUPT) ð¦ LATEX 54 / 55
  66. 66. — ! 2006 2#Û|’ (WTI, BUPT) ð¦ LATEX 55 / 55

×