ð¦ LTEX     A



                                          |’
                   Wireless Tech Innovation (WTI) Institute,...
Lª
Lª
     1   A
         LTEX sZ
     2   LTEX {äý&~
         A



     3   VU¥©
     4   ‚œÚ*¡Co¡,Â1ùǓSh
     5   k©
  ...
A
                       L TEX   s
Lª
                 sZ
              R1
    1   A
        LTEX
         A
         LT...
A
                 L TEX   s   A
                              L TEX   4
4 TEX
   0‰ !¦©
   $Ç©ÿ®žqÇ݀R$ǒǞqÇ
   ÒR M...
A
                         L TEX   s   A
                                      L TEX   4
   ‘$§Õ˜‘
TEX
   ǧiš: X Ræq©ñ...
A
                   L TEX   s   A
                                L TEX   4
TEX    ƒ‰




  g: TEX {•¥†: Knuth         ...
A
                           L TEX   s   A
                                        L TEX   4
   YJ4Ú
TEX {j2
          ...
A
                 L TEX   s   A
                              L TEX   {¡š
~ (X~) LTEX     A


8~Y4¡øBŽI
ÇÄFýÄz¢
’mÿ{€...
A
                           L TEX   s “ã LATEX
  TEX     ã
$Çqr{ TEX øX‰§ä÷:
  TEX ‰qǓ
  õ«øBÇ長¢u€Ç‰§{R LTEX 2ε, 4Þ¤‹...
A
                       L TEX   s “ã LATEX
  TEX     ã
žh{ TEX  ã
  CTEXÇ¥© Windows ~’3ž~{ ã¢
  CTeX SØ{$ ¥© TeX  ãÇé G...
A
                    L TEX   s   A
                                 L TEX   4˜[ÓB{
LTEX
A         ÓBå›
                 ...
A
                             L TEX   s   A
                                          L TEX   4˜[ÓB{
       LTEX
       ...
A
                   L TEX   s   A
                                L TEX   4˜[ÓB{
›BQñ©G
,I‰ø:
 latex first.tex⇒first.dvi...
A
                 L TEX   s   A
                              L TEX   4˜[ÓB{
~ LTEX U©9{0*
     A


 €§~{ÜÆ
ALjDÇÒ®R– €{...
A
                   L TEX   {äý~
Lª
     1   A
         LTEX sZ
         LTEX {äý~
             Í©q{äý§£: ©ý¡×
ÕX
     2...
A
                      L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
  Í©G¥{§£
  A
  LTEX{Í©qǃÙR
bÇÍz£•Ç“
ˆR©W݆ǩ
W¥‹$täý§£
  ÕX: I %...
A
                            L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
        ©©¦8¸
       õ•$Ç{8ÂIù¦qÑÌúhB$Ç8ÂÇ
˙{ÜǦq
    (ÒR$Ç...
A
                      L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
    Í©G{ˆè
    sÓ
1    documentclass [ a 4 paper ,12 pt ]{ article...
A
                           L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
      Í©G{ˆè
      t©
43     begin { document }
      ‰°ÒRt©’...
i
      $Ÿ LTEX ©W,I…óˆQ{Í©q°ÇGD input{filename} Ý
            A
      include{filename} ×
ñœÇé•âÑÍ©q{Vߐ›‹iv
      €ÿ¢
  ...
A
                        L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
     ©9{)
     ©W{A’IÝi©W{A¡B††Ï:
     hR©W{ø:
45    title { He...
A
                      L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
     ©9{)
     ©W{A’IÝi©W{A¡B††Ï:
     B†ïD:
47    author { Wang ...
A
                    L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
9¦ãa
A
LTEX   •vW(„©W{Ž
é• article ©l¡
  ‹$Ç¡y{ abstract ¢¸ÇB3§Ö
...
A
                    L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
9¦ãa
A
LTEX   •vW(„©W{Ž
é• book ©l¡
  maketitle ×
̗©$ÇÒÇ
ˆR artic...
A
                        L TEX   {äý~ Í©q{äý§£: ©ý¡×
ZÕ:
     ¡O©ýã
     ‹t¡y{©ýãR„Ç“©Ä{Ç~•yÏ©W{®‰
     AyÝÒÇWÇF²ëDê¢...
A
                        L TEX   {äý~ ¡O©n{Qœ¦Å©+
    ¡O©n
     ·¢óÞÁF²tiõ¡y©nêlj°§ë¡Ç3ž~{ :                           1...
A
                         L TEX   {äý~ ¡O©n{Qœ¦Å©+
    ¡O©n
     ·¢óÞÁF²tiõ¡y©nêlj°§ë¡Ç3ž~{ :                   1



   ...
A
                            L TEX   {äý~ ¡O©n{Qœ¦Å©+
      Å©+
  ‹{0Ç·¢‰§/c'½ LTEX ‚·¢œ{©nhBR¡y        A

¢
  ’q{Å©#C...
A
                            L TEX   {äý~ ¡O©n{Qœ¦Å©+
      ®r+HB
      êDCˆQ{ŽÇ·¢0žÌ½ˆQ{©$
      ®×
¦¥™4
115    emph {...
A
                        L TEX   {äý~ ï,¦‘Þ
      ï,¦‘Þ
      ‚§€Ò{ŽIšïñÇR3ž~{€Ògƒ$¢
      C¾
125    begin { itemize }
12...
A
                          L TEX   {äý~ ï,¦‘Þ
      ï,¦‘Þ
      ‚§€Ò{ŽIšïñÇR3ž~{€Ògƒ$¢
      C¾
131    begin { enumerate ...
A
                           L TEX   {äý~ ï,¦‘Þ
      ï,¦‘Þ
      ‚§€Ò{ŽIšïñÇR3ž~{€Ògƒ$¢
      C¾
137    begin { descripti...
VU¥©
Lª
     1   A
         LTEX sZ
     2   LTEX {äý~
         A



     3   VU¥©
     4   ‚œÚ*¡Co¡,Â1ùǓSh
     5   k©
 ...
VU¥©
TEX/L TEX
    A                {¥©|Ñ
  ýücˆ|Ñ¥©1hÇÃÿ®¥©¢
TEX
  {$ǒ™4%ÇOMEGA ÍU•ÿ®¥©‰ø{õ©1
TEX
h¢
²D$tÝãÿ®ÇTEX ,Iÿ®...
VU¥©
CJK     wÝ
CJK—Chinese, Japanese, Korean
CJK   wÝRyA| Werner Lemberg {ƒñà¢
CJK   {äýÿ®0
      ÿ®œÍ©GÇÇÇ֜Ƴ©nøœ©nÖ
...
VU¥©
      VU¥©
  1   ÝW CJK wÝÇIùyÏ{ CJKnumb Ý¢
  2   8~ CJK ¢¸
145    begin { CJK *}{ GB }{ song }

      óÙ¥Ò,Iœ¥©ê¢¢¸...
VU¥©
      û®r
      WA¥{q©
146               CJKcaption { GB }

      ‰Ìñœ GB.cpx ©qÇÇÆýR$(w Komascript {©l¡÷
      {Ç...
‚œÚ*¡go¡,ÂIùǓSh
Lª
    1   A
        LTEX sZ
    2   LTEX {äý~
        A



    3   VU¥©
        ‚œÚ*¡Co¡,Â1ùǓSh
       ...
‚œÚ*¡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‚’Ç...
‚œÚ*¡go¡,ÂIùǓSh ‚œÚ*
      Ú*¢¸
      ·¢,Ió©W{©°qE‚œÚBǘ
157   $ min _ R D _{ rec }( R )+ lambda  sum _{ m =1}^{ M } %
15...
‚œÚ*¡go¡,ÂIùǓSh ‚œÚ*
        õqÚ*
    8~ eqnarry |ÑõqÚB
7    begin { eqnarray }
8   D _{ dec }= D _0+ theta /( R - R _0)+...
‚œÚ*¡go¡,ÂIùǓSh ‚œ,Â
      ћ,Â
      8~ tabular ¢¸Ñ›DÂ
179    begin { tabular }{| l | lc | p {5 em }|}
180    hline
181 ...
‚œÚ*¡go¡,ÂIùǓSh ‚œ,Â
      ћ,Â
      #CrB˜
       number      type     example   comments
       1           bf         ...
‚œÚ*¡go¡,ÂIùǓSh ‚œ,Â
      rÄ,¢¸
      ·¢žžæ‚DÂ{ ˜ˆRû½{Ç
RóÁ{ìt ˜r
      ÄǕRÇ8~ table ¢¸èÄrÄgo¢
      Q0Ç·¢¤~“caption”...
‚œÚ*¡go¡,ÂIùǓSh ‚œgo
|Ñ{g¡Â*
·¢ó LTEX ©l¥ÇGž8~ graphicx wÝu‚œgo¢
         A

I¥ÂB{g¡Rú|Ñ{:
         goÂB €Ò
 A
 LTEX    e...
$« g
eps goÂB
     R«7Þg
     ,1†zћ
     ,1, PS ©G¥=`ÝGD PS ŠKåzt
     ,1GDÙÆÓäǘ (Imagimagick) ݦÂBzt¢

|’ (WTI, BUPT)  ...
‚œÚ*¡go¡,ÂIùǓSh ‚œgo
  ‚œg¡



‚œg¡{×
q
IÞg¡8~˜¥×
q‚œ:
includegraphics[height=2cm]{figures/wti-logo}




   |’ (WTI, BUPT...
‚œÚ*¡go¡,ÂIùǓSh ‚œgo
  ‚œg¡



ž~×
qkj
 kj           ~i
 width/height g¡PÝÝ°Ýǘý¾
 scale        g¡À8{øjǘ scale=0.5
 angl...
‚œÚ*¡go¡,ÂIùǓSh ‚œgo
      rÄgo
      ¦D¡‘Çg¡,IIrÄgo{0Bñ%ó©lƒ¥¢
      ÂB˜¥
193    begin { figure }[ htb ]
194           ...
‚œÚ*¡go¡,ÂIùǓSh ‚œÇ“Sh
listings     wÝ
verb  ×
 verbatim ¢¸,I~uÆUˆÄ{âсœ{ŽÇ®
XމǷ¢,I8~Ç¢uHCǓƒh¢
listings wÝ{¡º
       ...
‚œÚ*¡go¡,ÂIùǓSh ‚œÇ“Sh
     ÷˜¦®~ listings wÝ
     ý®}¡¥{ listings ÷˜
50    lstset { extendedchars = false }
51    lstset...
‚œÚ*¡go¡,ÂIùǓSh ‚œÇ“Sh
÷˜¦®~ listings wÝ
ž~kj
 kjÖÁ €Ò
 caption  $Ä{ caption {ŽÇ©W{ø
 label    $Ä{ label {Wfǐ~6ïD{A
 fra...
k©
Lª
     1   A
         LTEX sZ
     2   LTEX {äý~
         A



     3   VU¥©
     4   ‚œÚ*¡Co¡,Â1ùǓSh
     5   k©
   ...
k©
       k©ï,
    k©ïDiT itemize ¢¸
7    begin { thebibliography }{10}
8    bibitem { bib : ubi 91 weiser }
9      M . We...
k©
      k©{~
8~ cite ×
~k©
  ,I8~3Y’{~0B
201   in  cite { bib : ubi 91 weiser } ,  ldots

      ,I$9~õÇk©
203   in  c...
Íõ¥¦ž~wÝ
Lª
     1   A
         LTEX sZ
     2   LTEX {äý~
         A



     3   VU¥©
     4   ‚œÚ*¡Co¡,Â1ùǓSh
     5   ...
Íõ¥¦ž~wÝ Á‘Ý÷˜
   Á‘Ýkj
A
L TEX   ²Á~I¥¡ÇŸÝÙ




   |’ (WTI, BUPT)          ð¦ LATEX    46 / 55
Íõ¥¦ž~wÝ Á‘Ý÷˜
        geometry         wÝ
    geometry    {›n8~
4    usepackage [ a 4 paper , %
5            includehead ...
Íõ¥¦ž~wÝ l—÷˜
   ÁZÂ
A
L TEX  {yZÂ
    empty R3Y’{ÇÒR1Ñ–‹¢
    plain RiY’{ǘ{ZÂÇarticle {h book {šW
A
    {0GžÌR‰ÇZÂǐ‹...
Íõ¥¦ž~wÝ l—÷˜
       fancyhdr          wÝ
    article   ¥ž~{ fancyhdr ~
6    fancyhf {}
7    pagestyle { fancy }
8    lhea...
Íõ¥¦ž~wÝ §½f×
¦¢¸
     §½f×
¦¢¸
·¢¤,I•$t×
Ý¢¸{q
  newcommand  newenvironment ×
,I½f™×
¢¸
  renewcommand  renewenviron...
k©¦Þýî
Lª
     1   A
         LTEX sZ
     2   LTEX {äý~
         A



     3   VU¥©
     4   ‚œÚ*¡Co¡,Â1ùǓSh
     5   k...
k©¦Þýî
     ©9w?
œ #Ö
 1   lshort-cn
 2      8~g~ÃLatex ManualÇlatex)¥©’Ǎ¨ž¦ÇÄ
     Latex2e
 3latex‚g¨ÃepslatexÄ¥©Ç

ž~...
k©¦Þýî
ÙÇwc©W:
CteX-FAQ
lshort-en
latex   ‚g¨Ãusing imported graphics in latex2eē©Ç
texbook
latex companion ch8   ò›†÷...
Upcoming SlideShare
Loading in …5
×

20060618 tex.handout

1,185 views
1,022 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
1,185
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
13
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/ A L 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 A Plain TEX, LTEX, ConTEXt ¢j2{ TEX TeXLive, CTeX TEX {h“ OMEGA. . . I€·¢{›Ò§Œw LTEX Ÿqê A |’ (WTI, BUPT) ð¦ LATEX 7 / 55
  8. 8. A L TEX s A L TEX {¡š ~ (X~) LTEX A 8~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{ LTEX A Ó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: A 1 documentclass { article } 2 title { First LaTeX Document } 3 author { Wang Xu } 4 begin { document } 5 6 maketitle 7 8 Hello , LaTeX ! 9 0 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ǃÙR bÇÍ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 of 0 a LaTeXe file . 1 2 You can learn many commands and environments of it in 3 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ê. . . 217 218 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 . com 50 and 51 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¦ãa A LTEX •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¦ãa A LTEX •vW(„©W{Ž é• book ©l¡ maketitle × Ì—©$ÇÒÇ ˆR 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 have 88 footnote footnote { blah blah ldots }. A 66 section { Introduction } label { sec : intro } ~A 90 We have mentioned in S ~ ref { sec : intro } on 91 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 ~ nbsp 1 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 nbsp 1 k lshort. |’ (WTI, BUPT) ð¦ LATEX 22 / 55
  28. 28. A L TEX {äý~ ¡O©n{Qœ¦Å©+ Å©+ ‹{0Ç·¢‰§/c'½ LTEX ‚·¢œ{©nhBR¡y A  ¢ ’q{Å©#C 105 verb | % $# @ ~ oh yeah | --- all are verb rã{#C 107 begin { verbatim } 108 here , 109 #@%$ 110 verbatims ldots 111 end { verbatim } ͅì{Å©#C: listings, fancyverb. . . |’ (WTI, BUPT) ð¦ LATEX 23 / 55
  29. 29. A L TEX {äý~ ¡O©n{Qœ¦Å©+ ®r+HB êDCˆQ{ŽÇ·¢0žÌ½ˆQ{©$ ®× ¦¥™4 115 emph { emphasis } and underline { underline } G 117 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 ooolllwww 127 item tttiiirrr 128 item nnnmmmeee 129 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 one 133 item another one 134 item yet another 135 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 ] bullet 139 item [ enumerate ] number 140 item [ description ] the term 141 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•ÿ®¥©‰ø{õ©1 TEX h¢ ²D$tÝãÿ®ÇTEX ,Iÿ®¥©Ç˜ ConTEXt ,Iÿ® ¥©¢ ˜‰tшù LTEX —~-¢A  Ï‚ LTEX œ¥A{`õi ê CCT ~I|Ñ¥©¢ A ˜h0{ CCT é LTEX ÿ®0Ÿqê•ÄǐvÞ{ LTEX wÝ A A cˆ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, Korean CJK 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ùǓSh Lª 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̂g5 i™¢ |’ (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=1 161 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ÚB 7 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 hline 181 number type example comments 182 hline 183 hline 184 1 bf textbf { bf } for the 185 defination etc . 186 2 italic textit { italic } emph . 187 hline 188 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 centering 177 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¢ A I¥ÂB{g¡Rú|Ñ{: goÂB €Ò A LTEX eps ©œB PS ©q A pdfLTEX pdf éÒR Ç png $« g jpg
  46. 46. $« g eps 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¡{× q IÞ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 ‚œÇ“Sh listings 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’{~0B 201 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Ý Á‘Ý÷˜ Á‘Ýkj A L 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 A L TEX {yZ empty R3Y’{ÇÒR1Ñ–‹¢ plain RiY’{ǘ{ZÂÇarticle {h book {šW A {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 pages 7 cfoot { bfseries thepage } 8 renewcommand { headrulewidth }{0 pt } % and the line 9 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-FAQ lshort-en latex ‚g¨Ãusing imported graphics in latex2eē©Ç texbook latex companion ch8 ò›†÷latex companion{‘¬WÇEû‰ ‰j¦œÄ latex-help-book short math guide math 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

×