You are on page 1of 156

{ LATEX 2 0

140 LATEX 2

 Tobias Oetiker
Hubert Partl, Irene Hyna and Elisabeth Schlegl
 Version 4.20, May 31, 2006
TEX
  4.20 ooc

ii
Tobias Oetiker 9

zPk 1995-2005"3k|"

3 Free Software Foundation  GNU ^Ny


^e\2?U"Ny1?

U\"

u F"k^J?$vk^u
^,A8Vy"[!w GNU ^Ny"
\AT  GNU ^NyXJvk& Free
Software Foundation /675 Mass Ave, Cambridge, MA 02139, USA"


30 ^N5gc/|<^> LATEX
2.090
Hubert Partl

<partl@mail.boku.ac.at>

Zentraler Informatikdienst der Universitt fr Bodenkultur Wien

Irene Hyna

<Irene.Hyna@bmwf.ac.at>

Bundesministerium fr Wissenschaft und Forschung Wien

Elisabeth Schlegl

<noemail>

in Graz

XJ\ k,\d Jrg Knappen 


LAT

EX 2 #3CTAN
CTAN:/tex-archive/info/lshort/german

iv

e<U?dJ
"r
yy3f"k<La",\3
/k"$\z(c
due
<
"
Rosemary Bailey, Marc Bevand, Friedemann Brauer, Jan Busa, Markus Brhwiler,
Pietro Braione, David Carlisle, Jos Carlos Santos, Neil Carter, Mike Chapman,
Pierre Chardaire, Christopher Chin, Carl Cerecke, Chris McCormack, Wim van Dam,
Jan Dittberner, Michael John Downes, Matthias Dreier, David Dureisseix, Elliot,
Hans Ehrbar, Daniel Flipo, David Frey, Hans Fugal, Robin Fairbairns, Jrg Fischer,
Erik Frisk, Mic Milic Frederickx, Frank, Kasper B. Graversen, Arlo Griffiths,
Alexandre Guimond, Andy Goth, Cyril Goutte, Greg Gamble, Frank Fischli, Morten
Hgholm, Neil Hammond, Rasmus Borup Hansen, Joseph Hilferty, Bjrn Hvittfeldt,
Martien Hulsen, Werner Icking, Jakob, Eric Jacoboni, Alan Jeffrey, Byron Jones,
David Jones, Johannes-Maria Kaltenbach, Michael Koundouros, Andrzej Kawalec,
Sander de Kievit, Alain Kessi, Christian Kern, Tobias Klauser, Jrg Knappen, Kjetil
Kjernsmo, Maik Lehradt, Rmi Letot, Flori Lambrechts, Axel Liljencrantz, Johan
Lundberg, Alexander Mai, Hendrik Maryns, Martin Maechler, Aleksandar S
Milosevic, Henrik Mitsch, Claus Malten, Kevin Van Maren, Richard Nagy, Philipp
Nagele, Lenimar Nunes de Andrade, Manuel Oetiker, Urs Oswald, Martin Pfister,
Demerson Andre Polli, Nikos Pothitos, Maksym Polyakov Hubert Partl, John Refling,
Mike Ressler, Brian Ripley, Young U. Ryu, Bernd Rosenlecher, Chris Rowley, Risto
Saarelma, Hanspeter Schmid, Craig Schlenter, Gilles Schintgen, Baron Schwartz,
Christopher Sawtell, Miles Spielberg, Geoffrey Swindale, Laszlo Szathmary, Boris
Tobotras, Josef Tkadlec, Scott Veirs, Didier Verna, Fabian Wernli, Carl-Gustav
Werner, David Woodhouse, Chris York, Fritz Zaucker, Rick Zaccone, and Mikhail
Zotov.

4.20 N
TEX A lshort-cn ?&
~&
lY\*lk
CTEX ^ ID
zpxing

c!1!1 1-2.4 & 3!18

Frogge

liwenjun

1n

lian605

1o

gprsnl

1 2.5-2.11

blackold u1k5 d zpxing "


..........................................................................

 3.20 N
 d CTEX /;K0{C
"m*lk
CTEX  ID
;K

overview.tex

pH

things.tex

controlong

1

typeset.tex

cxterm

1n

math.tex, lssym.tex

aloft

1o

spec.tex

ganzhi

custom.tex

3dA
zLa!

c
LATEX [1] X~^u)p<ME
a "X^u)l{&7k
a "LATEX ^ TEX[2] z"
0
LATEX 2 ^ LATEX A^5`A
Tv

"z [1, 3] LATEX XJ


"
0 k8
1 w\'u LATEX 2 ("\l
): LATEX
\AT LATEX Xkn)"

{"

1 & [!")
7 LATEX -"
3

\U
?\1
"

1n )
X^ LATEX "~fk\n)
LATEX Xr"3!(\
LATEX
k^L"
1o )
)!EPS /\"0
X
^ pdfLATEX ) pdf
k^*"
1 X^ LATEX M/"7^/^x!
\ LATEX \/,

LATEX O\x"

18
d3x&Ek' LATEX )IO X
J{"w\XUC
LATEX w5k:<s


"

U^S
!."@
~f30B~fp
&E"

viii

LATEX ^3l PC Mac . UNIX VMS X"N


O8+SC
LATEX^"Local Guide [5] pAT0
X^/SC LATEX"XJkK\f<"
w\XSC LATEX X \? LATEX U
?
n "
XJ\ LATEX '/Comprehensive TEX Archive
Network0(CTAN) : http://www.ctan.org"k
l ftp 8 : ftp://www.ctan.org H:"
k3 ftp://ctan.tug.org 9H"
3\^ CTAN /AO/\UIe
1^ "pvk url ==3 CTAN:
G("
XJ\3gCO$1 LATEX 3
CTAN:/tex-archive/systems wwko"

XJ\k3 O\!UC
SN"
LATEX "AOa,c'u0 =
Nn
)=
UI/)"
Tobias Oetiker

<oetiker@ee.ethz.ch>

Department of Information Technology and


Electrical Engineering,
Swiss Federal Institute of Technology

#3
CTAN:/tex-archive/info/lshort
'u #\
http://bbs.ctex.org

iii

vii

1 :
1.1

iZ8 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.1.1

TEX . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . .

: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.2.1

!O . . . . . . . . . . . . . . .

1.2.2

O . . . . . . . . . . . . . . . . . . . . . . . . .

1.2.3

`v . . . . . . . . . . . . . . . . . . . . . . . .

LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.1

xl . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.2

Ai . . . . . . . . . . . . . . . . . . . . . . . . .

1.3.3

LAT

EX - . . . . . . . . . . . . . . . . . . . . . . . .
5 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.4

( . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.5

;.-1L . . . . . . . . . . . . . . . . . . . . . .

1.6

. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.6.1

a . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.6.2

. . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.6.3

 . . . . . . . . . . . . . . . . . . . . . . . . . 11

1.1.2
1.2

1.3

1.3.4

1.7

a LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . 11

1.8

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

1 
2.1

15

( . . . . . . . . . . . . . . . . . . . . . . . . . . 15

x
2.2

1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.2.1

. . . . . . . . . . . . . . . . . . . . . . . . . 17

2.2.2

c . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

2.3

SiG . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

2.4

Ai . . . . . . . . . . . . . . . . . . . . . . . . . . 19

2.5

2.4.1

. . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

2.4.2

i . . . . . . . . . . . . . . . . . . . . . 19

2.4.3

L () . . . . . . . . . . . . . . . . . . . . . . . . 20

2.4.4

 () . . . . . . . . . . . . . . . . . . . . . . . 20

2.4.5

(e) . . . . . . . . . . . . . . . . . . . . . . . 20

2.4.6

(. . . ) . . . . . . . . . . . . . . . . . . . . . . . . 21

2.4.7

i . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

2.4.8

5Ai . . . . . . . . . . . . . . . . . . . 21

IS| . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.5.1

:| . . . . . . . . . . . . . . . . . . . . . . . 25

2.5.2

{| . . . . . . . . . . . . . . . . . . . . . . . . . 25

2.5.3

| . . . . . . . . . . . . . . . . . . . . . . . . . 26

2.5.4

m| . . . . . . . . . . . . . . . . . . . . . . . . 27

2.5.5

^F1 . . . . . . . . . . . . . . . . . . . . . . . 29

2.5.6

d.| . . . . . . . . . . . . . . . . . . . . . . . 30

2.6

cm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

2.7

IK!! . . . . . . . . . . . . . . . . . . . . . . . . . . . 31

2.8

^ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

2.9

5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34

2.10 rN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2.11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.11.1 Itemize!Enumerate Description . . . . . . . . . . . 35
2.11.2 !m . . . . . . . . . . . . . . . . . . 36
2.11.3 ^!( . . . . . . . . . . . . . . . . . . . . 37
2.11.4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
2.11.5 < . . . . . . . . . . . . . . . . . . . . . . . . . 38
2.11.6 L . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
2.12 2N . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
2.13 oyf- . . . . . . . . . . . . . . . . . . . . . . . . . . . 43

xi

1n

45

3.1

n . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

3.2

+| . . . . . . . . . . . . . . . . . . . . . . . . . . 47

3.3

 . . . . . . . . . . . . . . . . . . . . . . . 47

3.4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51

3.5

R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52

3.6

J . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

3.7

iN . . . . . . . . . . . . . . . . . . . . . . . . . . . 55

3.8

n!!,, . . . . . . . . . . . . . . . . . . . . . . . . . 55

3.9

oN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

3.10 L . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
1o ;U

69

4.1

\ EPS / . . . . . . . . . . . . . . . . . . . . . . . . . . 69

4.2

z . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71

4.3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72

4.4

w . . . . . . . . . . . . . . . . . . . . . . . . . . 73

4.5

Verbatim . . . . . . . . . . . . . . . . . . . . . . . . . . . 75

4.6

SC  . . . . . . . . . . . . . . . . . . . . . . . . . . 75

4.7

^ pdfLATEX

4.8

. . . . . . . . . . . . . . . . . . . . . . . . . . 76

4.7.1

u PDF . . . . . . . . . . . . . . . . . 77

4.7.2

iN . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77

4.7.3

^/ . . . . . . . . . . . . . . . . . . . . . . . . . 79

4.7.4

 . . . . . . . . . . . . . . . . . . . . . . . . . . . 80

4.7.5

K . . . . . . . . . . . . . . . . . . . . . . . . 82

4.7.6

\K . . . . . . . . . . . . . . . . . . . . . . . . 82

Mv . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

1 /

89

5.1

V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89

5.2

picture . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
5.2.1

- . . . . . . . . . . . . . . . . . . . . . . . . . 90

5.2.2

. . . . . . . . . . . . . . . . . . . . . . . . . . . . 92

5.2.3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . 93

5.2.4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

5.2.5

 . . . . . . . . . . . . . . . . . . . . . . . . 95

5.2.6

\multiput \linethickness . . . . . . . . . . . . . 96

xii
5.2.7

. . . . . . . . . . . . . . . . . . . . . . . . . . . . 97

5.2.8

E^/f . . . . . . . . . . . . . . . 98

5.2.9

g Bzier . . . . . . . . . . . . . . . . . . . . . 99

5.2.10 ] . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
5.2.11 I5 . . . . . . . . . . . . . . . . . . . . . . . 101
5.3 XY-pic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
18 LATEX
6.1

6.2

6.3

105

#-! . . . . . . . . . . . . . . . . . . . . . . 105
6.1.1

#- . . . . . . . . . . . . . . . . . . . . . . . . . 106

6.1.2

# . . . . . . . . . . . . . . . . . . . . . . . . . 107

6.1.3

 xm . . . . . . . . . . . . . . . . . . . . . 107

6.1.4

-1 LATEX . . . . . . . . . . . . . . . . . . . . . . 108

6.1.5

g . . . . . . . . . . . . . . . . . . . . . . . . . 108

iNi . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6.2.1

iNC- . . . . . . . . . . . . . . . . . . . . . . . 109

6.2.2

6.2.3

. . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

X . . . . . . . . . . . . . . . . . . . 112

m . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
6.3.1

1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113

6.3.2

. . . . . . . . . . . . . . . . . . . . . . . . . 113

6.3.3

Ym . . . . . . . . . . . . . . . . . . . . . . . . . 114

6.3.4

Rm . . . . . . . . . . . . . . . . . . . . . . . . . 115

6.4

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116

6.5

k . . . . . . . . . . . . . . . . . . . . . . . . . . . 118

6.6

f . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119

6.7

I| . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121

z

123

125

/
1.1

{ LATEX " . . . . . . . . . . . . . . . . . . .

1.2

a~f" . . . . . . . . . . . . . . . . . . . . . . . . . . .

4.1

fancyhdr ~" . . . . . . . . . . . . . . . . . . . . . . . 74

4.2

beamer a~" . . . . . . . . . . . . . . . . . . . . . 85

6.1

~" . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109

6.2

" . . . . . . . . . . . . . . . . . . . . . . . . . . 117

L
1.1

a" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

1.2

a" . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

1.3

LATEX u1" . . . . . . . . . . . . . . . . . . . 12

1.4

LATEX " . . . . . . . . . . . . . . . . . . . . 12

2.1

". . . . . . . . . . . . . . . . . . . . . . . . . 21

2.2

5Ai" . . . . . . . . . . . . . . . . . . . . . . 22

2.3

:I" . . . . . . . . . . . . . . . . . . . . . 25

2.4

{;^-" . . . . . . . . . . . . . . . . . . . . . . . . . . 26

2.5

;^i" . . . . . . . . . . . . . . . . . . . . . . . . . . 27

2.6

F1 I" . . . . . . . . . . . . . . . . . . . . . 29

2.7

F1Ai". . . . . . . . . . . . . . . . . . . . . . . . . 29

2.8

\|!=" . . . . . . . . . . . . . . . . . 31

2.9

2NN". . . . . . . . . . . . . . . . . . . . . . . . . 41

3.1

" . . . . . . . . . . . . . . . . . . . . . . . 59

3.2

F1i1" . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

3.3

'X" . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

3.4

$" . . . . . . . . . . . . . . . . . . . . . . . . . . . 61

3.5 /0$" . . . . . . . . . . . . . . . . . . . . . . . . . . 61
3.6

" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

3.7

." . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

3.8

." . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

3.9

" . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

3.10 " . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.11 AMS .". . . . . . . . . . . . . . . . . . . . . . . . . . . 63
3.12 AMS F1F5i1" . . . . . . . . . . . . . . . . . . . . 63
3.13 AMS 'X" . . . . . . . . . . . . . . . . . . . . . . . . . 64

xvi

3.14 AMS " . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65


3.15 AMS 'X". . . . . . . . . . . . . . . . . . 66
3.16 AMS $" . . . . . . . . . . . . . . . . . . . . . . . . 66
3.17 AMS " . . . . . . . . . . . . . . . . . . . . . . . . . 67
3.18 i1" . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.1

graphicx ^'c" . . . . . . . . . . . . . . . . . . 70

4.2

'c{~" . . . . . . . . . . . . . . . . . . . . . . 72

6.1

iN" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

6.2

i" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110

6.3

IO a pt " . . . . . . . . . . . . . . . . . . 111

6.4

iN" . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

6.5

TEX " . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

:

1
LATEX 2 n9{{0 "18
) LATEX ("

\AT
)
LATEX 

n\n){5`7L"

1.1

iZ8

1.1.1

TEX

TEX Donald E. Knuth ?98I


OS [2]"1977 c33KgC9

Knuth m? TEX X&m?\

i<MdcF"U=ew"y
3^ TEX Xuu 1982 c3 1989 cqU?O\
8 i!
i9|"TEX R5!3a.>M$1
9Avk" "TEX Cu y3 3.141592"
TEX u Tech ch  Ach1 9= Loch
 ch aq"ch guF1i13F1X i1 ch
chi"TEX F1c texnologia (technology) 1!"3
ASCII TEX  TeX"

1.1.2

LATEX

LATEX ^k;
p<"LATEX d Leslie Lamport ? [1]
^ TEX S"y3 LATEX d Frank Mittelbach KIo"
1

3ch kuU@ Pech ^ ch \"9K

Knuth 3 German Wikipedia <U5 TEX a),


,3<U^ ch X 3 e 

"3tex ~c

tyekh"&u5gF1 ach Loch ch uk"

:

LATEX u Lay-tech Lah-tech"XJ3 ASCII ^


LATEX\\ LaTeX"LATEX 2 u Lay-tech two e3 ASCII
 LaTeX2e"

1.2

1.2.1

!O

1rivi, dO
5 9!iN!IKc

m!,,"O

r`?vp2d

`5"
On)"vSN
gC!IK!z^!~f9"
3 LATEX LATEX 
O TEX K
" LATEX/==0SdI"7L
J &E56("
&E /LATEX -0
/\ "
yi?nX MS Word 9 Corel WordPerfect
^= (WYSIWYG2) kO"^

3O\ Lp("
l4w<J"
^ LATEX U3\ wJ
^ LATEX ?n

B34AJ"

d3< cU"

1.2.2

O

O"@7O=={K
~))/XJ lw5
@oO0"L^5 !3xIp
 5n)5'  *"~X
7LiIKSUn)!("
z1Qv
;Nqv
{
*"
2

What you see is what you get.

1.2 :

3^=X (WYSIWYG) ~
w
(j05"LATEX Lr( 

6(;
",

LATEX 2 (J

"

1.2.3

`v

^= (WYSIWYG) <^ LATEX <


~?{K/'i?n^LATEX ` (advantages
of LATEX)0v"?m\$N
?

"k\U<;,,

eB
"LATEX `ui?n^?8BXe
J;O w5/<M0"
B"
^rI
( 6({- 7
S??"
N) 5!^!8zE,("
 LATEX |dV\5
"~X|3\ PostScript 9
aO(IOz"a3 The LATEX
Companion [3] k`"
LATEX yUn( LATEX L
(5?1"
TEX LATEX 2 = kp
5A3?M$1"
LATEX k
v?"+(O<Az^gC%
J
'n ;-)
vkK<U^LATEX ,,
+N!k 
O
#(Jm3"
=k-<m\U{"
3

D5 LATEX 3 X|"

:

LATEX

1.3

LATEX   ASCII \^??65M


"LATEX =

w LATEX X

SN-"

1.3.1

xl

Lxi3 LATEX wxl (space)"


Yxiuxi"3xl
1@/xl0"
1mx1IX(em"x1
^ux1"eB~f> m>

(J"

It does not matter whether you


enter one or several

spaces

It does not matter whether you enter one

after a word.

or several spaces after a word.


An empty line starts a new paragraph.

An empty line starts a new


paragraph.

1.3.2

Ai

e
i LATEX 3i (reserved characters)
3 LATEX kA3uki"XJ\3
\
i~  LATEX
\F
"u)"
#

&

X\w3
ic\~
"
\# \$ \% \^{} \& \_ \{ \} \~{}

#$%&_{}

AdA--"
 \ UL3c\, (\\)^51

-4"
4

$\backslash$ -) \"

1.3 LATEX

1.3.3

LATEX -

LATEX - (commands) ake


 (backslash) \ m-di1|"-

!i?i1iIXT-("
di1i|"
LATEX -
3-

xi"XJ\F"3-



\ {} \A-"{} {

LATEX K-

k"

I read that Knuth divides the

I read that Knuth divides the people

people working with \TeX{} into

working with TEX into TEXnicians and


TEXperts.
Today is September 28, 2007.

\TeX{}nicians and \TeX perts.\\


Today is \today.

k
-I (parameter)T^s) (curly braces)
{ } )43-

"
-| (optional parameters)

^) (square brackets) [ ] )4,

3-

"e

~f^

LATEX -X: )"


You can \textsl{lean} on me!

Please, start a new line


right here!\newline
Thank you!

1.3.4

You can lean on me!

Please, start a new line right here!


Thank you!

 LATEX ?n XJz %LATEX  %


T1SN19e1cxi"
d3 
5
5y3
(J"
This is an % stupid
% Better: instructive <---example: Supercal%
ifragilist%
icexpialidocious

This is an example: Supercalifragilisticexpialidocious

:

% ^5mUkxi1\SN"
XJI5\^ verbatim J comment "
,3^Tc\3  )\
- \usepackage{verbatim}"
This is another
\begin{comment}
rather stupid,

This is another example for embedding

but helpful

comments in your document.

\end{comment}
example for embedding
comments in your document.

I5{3E,^"

1.4

(

 LATEX 2 ?n F" l( (structure)"


dz Xe-m
\documentclass{...}
^-
\ a.",

\\\

-1\
LATEX O\#A5 (package)"^
Xe-1\
\usepackage{...}
k

\^e-m N

\begin{document}
y3\\k LATEX -
"3"^\end{document}
5w LATEX ("LATEX d 1.1 w{

kSN"

LAT

EX 2 ("E,

(input file) (X 1.2 "


5

3 \documentclass \begin{document}m (preamble)"

1.4 (

\documentclass{article}
\begin{document}
Small is beautiful.
\end{document}
1.1: { LATEX "

\documentclass[a4paper,11pt]{article}
% define the title
\author{H.~Partl}
\title{Minimalism}
\begin{document}
% generates the title
\maketitle
% insert the table of contents
\tableofcontents
\section{Some Interesting Words}
Well, and here begins my lovely article.
\section{Good Bye World}
\ldots{} and here it ends.
\end{document}
1.2: a LATEX ~fT~k- "

:

1.5

;.-1L

c\y3~"}1 7 {' LATEX "


eB
LATEX vk/^r.

U==

EX SCJ
c
/.\L:U5?\ "
XU
?n\J S"k

LAT

^-5? eX3uX
4 LATEX ?\ "I5ecJ LATEX (
SC
\>M6"
1. M?6\ " 7L ASCII "3 Unix X
ek?6M"3 Windows Xe\
7L( ASCII "\ 
(* .tex"
2. $1 LATEX ?\ "XJ{\ .dvi
"
8kS^Ug$1 LATEX"
3LATEX w\?n "\
ctrl-D -1"
latex foo.tex

3. y3LA{5A DVI "\^ew4


xdvi foo.dvi &

{^uSC
X11  Unix X"XJ\^ Windows
X^ yap 5A (AS)"
\^ Ghostscript dvi = PostScript 5
<A"
dvips -Pcmz foo.dvi -o foo.ps

XJ\ LATEX Xk dvipdf { .dvi


= pdf "
dvipdf foo.dvi
6

3 Unix Xe,,<^ Unix,, ;-)

1.6

1.6

1.6.1

 LATEX ?n kIM a
." a.d \documentclass -5"
\documentclass[options]{class}

p class
M a."L 1.1 
`
a"LATEX 2 u1J

a&"
L options a5"mL^m"
IO a~^XL 1.2 "
~f LATEX e1m
\documentclass[11pt,twoside,a4paper]{article}
^- LATEX ^ article !11 iN5T
3 A4 V<J"

1.6.2

\Uuy3,
/ LATEX U)\
K"XJ\/ (graphics)! (coloured text) \

L 1.1: a"
article r! w!S !!,,
proc u article 8a"
minimal ~ a"
iN"^5"
report !w!7!!,,
book 7"
slides  "T a ^ sans serif i N" ^
FoilTEXa 5J"
a

macros/latex/contrib/supported/foiltex

:

10

L 1.2: a"
10pt, 11pt, 12pt

 ^iN"XJTvk

%@^ 10pt iN"


a4paper, letterpaper, . . .

""

letterpaper"d ^ a5paper, b5paper,


executivepaper 9 legalpaper"
fleqn

1m "

leqno

1m? m"

titlepage, notitlepage

3 IK (document title)

"article a"m#report book aK


"
LATEX 9 (one column) V9 (two

onecolumn, twocolumn

column) "
twoside, oneside

V<"article

report a (single sided) book a"V (double


sided) "5T^u  <
V< "
landscape

< landscape "

openright, openany

#=3m3em

"3 article aT^Tavk


(chapter)"report a%@3em# book a#o
3m"

1.7 a LATEX
\I^5Or LATEX U"^Xe-N^
\usepackage[options]{package}

p package options ^5>uAU|'


c" LATEX u1u (L 1.3)Ku
"\3SC LATEX X'&E"The LATEX
Companion [3] J
'u&E
z9
XgC LATEX 2 *"
y TEX u1
"XJ\^ Unix X
^- texdoc |` "

1.6.3

LATEX |nw/ (header/footer) 


(page style)"Xe\pagestyle{style}

 style (
^="L 1.4 

"
LXe-5UCc
\thispagestyle{style}

XMgw ` The LATEX Companion [3] 9


1 73 1 4.4 !"

1.7

a LATEX

^ LATEX \UuygCu* (extension)


/"eL)
3^ LATEX
Ua."5eLk*LXJ\uy
ka.vk?5"
.tex LATEX TEX "^ latex -?"
.sty LATEX "^ \usepackage -1\\
LATEX "

11

:

12

L 1.3: LATEX u1"


doc LATEX ` "N doc.dtxa 9 The LATEX Companion [3]"
exscale J
U'~*iN"
N ltexscale.dtx"
fontenc ^= LATEX iN? (font encoding)"
N ltoutenc.dtx"
ifthen JXe/if. . . then do. . . otherwise do. . . .
N ifthen.dtx 9 The LATEX Companion [3]"
latexsym J LATEX iN"N latexsym.dtx 9 The LATEX
Companion [3]"
makeidx J-"N 4.3 9 The LATEX Companion
[3]"
syntonly ? ) dvi ~^u"
inputenc ^ = \ ? X ASCII, ISO Latin-1, ISO Latin-2,
437/850 IBM code pages, Apple Macintosh, Next, ANSI-Windows
^rg?"N inputenc.dtx"
a

\XATSC
T\- latex doc.dtx ?nT dvi "aq

{^uL .dtx"

L 1.4: LATEX "


plain 3 w"""
headings 3ww!9 x"
=^d
empty w x"

1.8 .
.dtx z TEX " LATEX u"XJ?
.dtx  LATEX  z"
.ins A .dtx SC"XJ\le1
LATEX 
.dtx .ins "^ LATEX ?n
.ins )m .dtx "
.cls */aL^ \documentclass -
"
.fd iNw LATEX k'#iN&E"
e
^ LATEX ?n )
.dvi '"$1 LATEX ?(J"\^ DVi
AASN^ dvips S<"
.log P
g?[&E"
.toc ;
k!IK"eg?T)8"
.lof .toc aq)/8"
.lot .toc aq)L8"
.aux ^5eg?D4&E9";^'&
E"
.idx XJ LATEX ^T;kc^"d
I^ makeindex ?nu 72 1 4.3 !"
.ind ?nL .idx "eg?\\ "
.ilg .log aqP
makeindex -$1[&E"

1.8

?n. A"LATEX k-
\"
\include{filename}

\^T- filename.tex  SN\c "I


53?n\ filename.tex cLATEX ,"

13

:

14

1-U3^"4 LATEX =\,


\included
"
\includeonly{filename,filename,. . . }

^-3 1

3k \include -k

y3 \includeonly - \"5


mUk"
\include -3#1\"u^\includeonly
-k=
1\?u)Cz"
k
UF"3#1\^\input{filename}

\input -{1\vk"
XJ4 LATEX u ^ syntonly "
LATEX A u{^-)
DVI "3eLATEX $1\!B
m"syntonly ^~{
\usepackage{syntonly}
\syntaxonly
XJ)5K11= (3c\z %)"

1

c

\AT
)'uXM LATEX 

"3p{\U
)S "

(

2.1

By Hanspeter Schmid <hanspi@schmid-werren.ch>

,
y DAAC1 z D4*:!&E
"XJ
*:/|5@o/n)"
XJ/NSN6(UwU
"
LATEX uX?3u\7Lw6
(",

a/5K0)A

"
LATEX <M (paragraph)"
/0Yg*:3N"3e
!p\3 X^ \\ 5r1X^15"
d

mL#gAT,K1

"XJ

{e\i*:g1N"XJ

5gE3UYAT"XJk
13p
#
g@oAT"
<$
T5"N<$L
oAO3 LATEX p
%," AON
u)3^"* e~fn)ok
c

^1 k"
XJ\Up^

-u{n)
~f3e 2!"

% Example 1
1

I# gthe Swiss German UVA (Ums Verrecken Anders).

16
\ldots when Einstein introduced his formula
\begin{equation}
e = m \cdot c^2 \; ,
\end{equation}
which is at the same time the most widely known
and the least well understood physical formula.

% Example 2
\ldots from which follows Kirchhoffs current law:
\begin{equation}
\sum_{k=1}^{n} I_k = 0 \; .
\end{equation}
Kirchhoffs voltage law can be derived \ldots

% Example 3
\ldots which has several advantages.
\begin{equation}
I_D = I_F - I_R
\end{equation}
is the core of a very different transistor model. \ldots
,f"3=(f:
'c:

"LATEX \I=XJ

LATEX 
\7Lw\Io"3ep!"
($)f"I:5K~E,
3N)=XJ\P4g36
6@oAk^"XJ\(3o/A
T^(/Kf3z?F"3O/
3IFI6/\"

L!!f!AT3p

gk

6/|5", ^X \section{The Structure of Text and


Language} JXdwuX^
p g(
"

2.2 1

2.2

2.2.1

17

~7^15"
`zSNLATEX
3cm\71: (line break) m"XJ1c
eLATEX ?17c"X6u aO"~z
11k?3mvk m"SN1
6.3.2 !"
3A/ek7- LATEX 1
\\ or \newline

,1 ,"
\\*

3r1

B"

\newpage

,"
\linebreak[n], \nolinebreak[n], \pagebreak[n], \nopagebreak[n]

-Jlw5"L nK

-J"n  0 4 m"XJ-Jw5
~ r n u 4 4 LATEX 3JZJ
-"r
break - new -"=\

break -LATEX E,m>."XJ\,1


^A-"To-
LATEX oU)1J"XJ1{ LATEX p
IO413m",

3?n w

E (overfull hbox)"kUu)3 LATEX /c


2 "\^ \sloppy -w LATEX $:IO"L
O\cmmyL1,(J`
"3ew (underfull hbox)"3e(
Jw5~"\fussy -r LATEX E"G"
2

u) (Overfull hbox) , LATEX ww@1Nuy

1"XJ\3 \documentclass -^ draftLATEX 31m>Io"

18

2.2.2

7 LATEX c"XJc{U((c:
^Xe-w TEX X""
\hyphenation{word list}

uc=35k - :c"-=d~i
1cd LATEX ~i1|"c-y
3^cJ
"XXJ\
3 
c-K=c"XJc-u
\begin{document}

\^aq babel IS|@

ocJ3d babel -?uG"


e~f#N hyphenation Hyphenation ?1c%
#N FORTRAN, Fortran fortran ?1c"3#N
yAi"
~f
\hyphenation{FORTRAN Hy-phen-a-tion}
- \- 3c\gc:"c#N
yc:"uAi~X5ic
-AOk^uLATEX gc3"
I think this is: su\-per\-cal\-%
i\-frag\-i\-lis\-tic\-ex\-pi\-%
al\-i\-do\-cious

I think this is: supercalifragilisticexpialidocious

\mbox{text}

yrAc31"3?e-r3
"
My phone number will change soon.
It will be \mbox{0116 291 2319}.

My phone number will change soon. It will


be 0116 291 2319.

The parameter

The parameter filename should contain the

\mbox{\emph{filename}} should

name of the file.

contain the name of the file.


3

\3^# DC iN (DC font)"

2.3 SiG

19

- \fbox \mbox aqd U7SNx"

SiG

2.3

3c~f\w^5AiG
~{


LAT

EX -
"

~f

\today

September 28, 2007

8FF

\TeX

\UO

\LaTeX

TEX
LATEX

\LaTeXe

LATEX 2

y3z

2.4

Ai

2.4.1

iZ8

\3i@r " ^ (quotation marks)"3<M


k;m"3 LATEX ^ `)^
')m" )"
Please press the x key.

Please press the x key.

,yniNXo
 (`)  (') m"

2.4.2

LATEX koy (dash) I:"Y^8y


n"1oSI:~
daughter-in-law, X-rated\\

daughter-in-law, X-rated

pages 13--67\\

pages 1367

yes---or no? \\

yesor no?

$0$, $1$ and $-1$

0, 1 and 1

y: - i (hyphen) (en-dash)


 (em-dash) ~ (minus sign)"

20

2.4.3

L ()

L~^3"3 LATEX ^ \~ )(


J%\"e
http://www.rich.edu/\~{}bush \\

http://www.rich.edu/bush

http://www.clever.edu/$\sim$demo

http://www.clever.edu/demo

2.4.4

 ()

e~f
3 LATEX X (degree symbol)
Its $-30\,^{\circ}\mathrm{C}$.
I will soon start to
super-conduct.

Its 30 C.

I will soon start to super-

conduct.

textcomp pk,  \textcelsius"

2.4.5

(e)

y3>k'1~I"ykNiN
"3\1\ textcomp
\usepackage{textcomp}

\^\texteuro

5)"
XJ\iNJ\UkJ
k eurosym "J
(
\usepackage[official]{eurosym}

X J \ F "   ^ i N    ^ gen O
official"
marvosym J
) \EURtm "
":vkJ slanted bold C/"

2.4 Ai

21

L 2.1: "

2.4.6

LM+textcomp

\texteuro

eurosym

\euro

[gen]eurosym

\euro

marvosym

\EURtm

e
A
C
e

e
A
C
e

e
A
C
e

(. . . )

3i (comma) (period) mi1


"37<M
i=:mci1b
~;"U\n:5-. (ellipsis)my
"k;-"
\ldots

Not like this ... but like this:\\

Not like this ... but like this:

New York, Tokyo, Budapest, \ldots

New York, Tokyo, Budapest, . . .

2.4.7

i1|{\i1 S^

A"
JAff fi fl ffi. . .

ff fi fl ffi . . .

i (ligature)3i1m\ \mbox{}B
i"udccU7"
Not shelfful\\

Not shelfful

but shelf\mbox{}ful

but shelfful

2.4.8

5Ai

LATEX |5gN5 (accent) Ai (special


character)"L 2.2 i1 o 
k5"ui1g,k

22
"

3i1 i j I5:7LK"d \i
\j "
H\^otel, na\"\i ve, \el\eve,\\
sm\o rrebr\o d, !Se\~norita!,\\
Sch\"onbrunner Schlo\ss{}

Htel, nave, lve,


smrrebrd, Seorita!,
Schnbrunner Schlo Strae

Stra\ss e

L 2.2: 5Ai"

2.5

\o

\o

\^o

\~o

\=o

\.o

\"o

\c c

\u o

\v o

\H o

\c o

o.

\d o

\b o

oo

\t oo

\oe

\OE

\ae

\AE

\aa

\AA

\o

\O

\l

\L

\i

\j

IS|

XJ\I^=  (language) LATEX k/


7L
1. kg)iG47L^u#"uN?
d Johannes Braams ? babel "
2. u#LATEX Ic5K"c5K\
LATEX k
J"`c1"
d Local Guide [5]
&E"
3. A5K"'X{zk (:) c7L3
x"
4

8!/!,,

2.5 IS|
XJ\X
\L3- \documentclass

23
V

\-

\usepackage[language]{babel}

5- babel"\ LATEX X|L3zg?


w"u babel g-c5K"XJ
LATEX |3Jc
cU
babel E^,uJkKK"
u babel J;#-5{zAi
\"~X (German) C"|^ babel\U^ "o
\"o 5\ "
XJ babel

\usepackage[languageA,languageB]{babel}

-= languageB"\^

\selectlanguage{languageA}

5UC-"
yOX#Nl\,Ii1"
?n
X9/O^\?LATEX ^ inputenc

\usepackage[encoding]{inputenc}

^AT<U^?3O
NUw\ "~XC ? 1323

^ ISO-LATIN 1  Unix X?


228 Windows
 Cyrillic ? cp1251 p%vki1"A%^
U"\^Xa.e?U ^|5"
5

  u Latin Cyrillic |  \ ? O  inputenc.dtx

cyinpenc.dtx  "1 4.6 !


X) "

24
Operating
system

encodings
western Latin

Cyrillic

Mac

applemac

macukr

Unix

latin1

koi8-ru

ansinew

cp1251

cp850

cp866nav

Windows
DOS, OS/2

XJ\k ?k"^ ucs


5J unicode"
\usepackage{ucs}
\usepackage[utf8x]{inputenc}

4\M LATEX ^ utf8xi!?zi


Ii! 4 i!"
iN?, K"u TEX-iNpzi1
"A\?NiN?~
I
iN8"iN?L fontenc 5?n
\usepackage[encoding]{fontenc}

encoding iN?1\A?"
%@ LATEX iN? OT1Computer Modern TEX iNk?
"
7-bit ASCII i8 128 i"I5iTEX
r~iN5M"XJ(Jw{
{k5icc", {UM
.i1
.i1#'X Greek Cyrillic"

":,
8-bit aq CM iN8E5"T1 ?
 Extended Cork (EC) iN.X:
|
i1I:"LH iN8
d.X 7Ii
1"d.i1i/oiN?T2A, T2B, T2C,
9 X26 "F1 LGR ?iN3 CB iN8p"
k

iN|\=U?A^c
"^

#aq CM iNk?J
CM ixp/
G9'~iN"
6

?|L3 [11] "

2.5 IS|

25

L 2.3: :I"
\usepackage[portuguese]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}

2.5.1

:|

By Demerson Andre Polli <polli@linux.ime.usp.br>

: (Portuguese) A^c9g^-
\usepackage[portuguese]{babel}

XJ\3n{O brazilian"
u:kN\U^
\usepackage[latin1]{inputenc}

5(\^
\usepackage[T1]{fontenc}

5(c.
^: L 2.3"5^ latin1 
\?3 Mac DOS ^"g1J?"

2.5.2

{|

By Daniel Flipo <daniel.flipo@univ-lille1.fr>

^ LATEX M{ (French) J\Le-1\


{|
\usepackage[frenchb]{babel}

5du{babel { frenchb francais french"


d\^{c
",kg
{\chapter < Chapitre, \today <{p8U"k
X#-4\N\{"L 2.4 5(a"

26

L 2.4: {;^-"
\og guillemets \fg{}

guillemets

M\up{me}, D\up{r}

Mme , Dr

1\ier{}, 1\iere{}, 1\ieres{}

1er , 1re , 1res

2\ieme{} 4\iemes{}

2e 4es

\No 1, \no 2

No 1, no 2

20~\degres C, 45\degres

20 C, 45

\bsc{M. Durand}

M. Durand

\nombre{1234,56789}

1 234,567 89

\5{LUC
"'u babel
 frenchb U9XSN frenchb.dtx $1 LATEX
) frenchb.dvi"

2.5.3

|

^ LATEX M (German) J\Le51\|


\usepackage[german]{babel}

d\^c
",kg
~X Chapter < Kapitel"kX#-4\
\=\vk^ inputenc "L 2.55(
a"

^ inputenc k

,\ 

3A?.p"
37p\~uy{ (guillemets)", 
ipk^{"7w5 this "3a
i^ guillemets {"
^aq \flq -KXJ\^ OT1 iN%
@iNguillemets w5 -",
T1?iN(kI"\^
(3^ T1 ?"(\usepackage[T1]{fontenc})

2.5 IS|

27

L 2.5: ;^i"

2.5.4

"a

"s

"

"

"< or \flqq

"> or \frqq

\flq

\frq

\dq

"

m|7

^ LATEX m (Korean)I)nK
1. U
?6m (Korean input files)"m
7L (plain -text format)dum^i
8u US-ASCII -83 ASCII ?6pw5
%"2^m ? EUC-KR 9
MS-Windows poN*CP949/Windows-949/UHC"3

?pz US-ASCII iL~ ASCII i


oN ASCII ?'X ISO-8859-xEUC-JPBig5 Shift_JIS
q",l KS X 1001 i?m!i!
mi1!b!b!F1d.i9i1
^0li!5L"1kk8" 1990
c3mXmoN
"\Aek
L http://jshin.net/faq
+@X3mX^m"y3n
X (Mac OS, Unix, Windows) 
|
ISzA3m?6m 2
K
"
2. TEX LATEX |L 256 i"
3ki
~Xm48 mu
fiN"
7
m LATEX ^rI?nKKarnes KIM LI lshort >

!d SHIN Jungshik =Tobi Oetiker


{z"
8
md 14 9 10 i1X"u.d.

izi?i q/p"zqL!"^k
9
!"ymIOH!m
qk
"dkk(!3"mi?z! (KS X

28

kAZAiN+ (glyph)  CJK i|fi


N8z8p 256 iN+"m kn2
^UN Koaunghi mu HLATEXCHA Jaechoon  hLATEXp
9 Werner Lemberg  CJK (CJK package)9"HLATEX hLATEXp
; m  O 3 iN| |m /zKorean
localization"u EUC-KR ? (?
n"3^ HLATEX?n CP949/Windows949/UHC UTF-8? "
CJK mJ|"?n UTF-8 9
CJK ?) EUC-KR CP949/Windows-949/UHC  "
|SN AOFm"
HLATEX 'CJK Jm/z miNX
HLATEX "
3. ^X TEX LATEX 8^/{0-<
"``{OiN"HLATEX
u1 10 x (family) UHC PostScript iN 5 x (family) z
Munhwabu10iNTrueType"CJK ^iN HLATEX
@p| Bitstreams cyberbit TrueType iN"
^ HLATEX 5\mIr
\usepackage{hangul}

\="
-m
m/z|"!!!f!!8L8
=Am ^mS.5z "
J
g/JcJ0U"3mpka{d
/

MJc=c||(6uc!

9("
S'E,v
\
<
m1<JJcK
1001:1998 and KS X 1002:1992)",i1?n5%F
kA
LiX "ISO 10646/Unicode J
ymL{
i1?i1Lhttp://www.unicode.org/charts/PDF/U1100.pdf,k5
ym!? (http://www.unicode.org/charts/PDF/UAC00.pdf )"^ LATEX 9'
X?nmk-<;]mU5m!|
y3U^ Unicode i1?5)"F"5 TEX X J)
Ym{m MS Word,mk
|"
9

3 language/korean/HLaTeX/
language/korean/CJK/ and http://knot.kaist.ac.kr/htex/ "
10
Hmz"

2.5 IS|

29

?6UCz9gJ("zg\O
zUC SN^SJc"
"HLATEX ^rl< N)5"
XJ\Im/z
mir
-
\usepackage{hfont}

^ HLATEX m&E HLATEX Guide"A


Korean TEX User Group (KTUG)  http://www.ktug.or.kr/"@p
km"

2.5.5

^F1

By Nikolaos Pothitos <pothitos@di.uoa.gr>

^F1 (Greek) ISNL 2.6"yF1


cg11"
L 2.6: F1 I"
\usepackage[english,greek]{babel}
\usepackage[iso-8859-7]{inputenc}

|#-4\N/\F1"
6=
\^- \textlatin{english text} 9 \textgreek{greek
text}k^iN?"\
^c!`L- \selectlanguage{...}"L 2.7 

F
1I:"u^ \euro"
L 2.7: F1Ai"

11

((

))

XJ inputenc ^
utf8x \F1(NF1 unicode i"

30

2.5.6

d.|

By Maksym Polyakov <polyama@myrealbox.com>

 3.7h  babel
T2* ?9^d.i1
\|=|"
d.|6u LATEX Xk fontenc inputenc "
XJ\3e^d.7L3 inputenc c\1 mathtext
12 :
\usepackage{mathtext}
\usepackage[T1,T2A]{fontenc}
\usepackage[koi8-ru]{inputenc}
\usepackage[english,bulgarian,russian,ukranian]{babel}

ebabel gJ%@iN?un
AT T2A", ^iN?"uk.X
d.X AT(.iN?"3
J, babel iN?"

U
c, giG9-
;^5
K'X \frenchspacingbabel J

-U\|
=IO"
n;^I:J
d.'.
kx!^!!
9Bc-L 2.8"
babel  Russian Ukrainian
- \Asbuk \asbuka
qu \Alph \alph)=i1
="babel Bulgarian J
- \enumBul
\enumLat \enumEng4 \Alph \alph )\|
.=i1%@\|"

2.6

cm

m>.LATEX 3cm\m"3f
"\m
5"LATEX bf
!'("XJ;i1f
("3k/y;i1"
12

XJ^
AMS-LATEX Ar3 fontenc babel c\1"

2.7 IK!!

31

L 2.8: babel  Bulgarian!Russian Ukrainian


 "
"|
ci"
"-

(c#N3cc"

"---

d."

"--~

66^"

"--*

Ld."

""

aqu "-)i^uc'X x-""y


"enable/disable" "

"~

vkm:cIP"

"=

m:cIP#N3cpc"

",

x^um:6i1"

"

^upVw5 ,,"

"

^upmVw5 "

"<

^u{Vw5 <<"

">

^u{mVw5 >>"

7L[`
b?~ "c
)U"Li ~ )U
B1"c- \@ `f"=;
i1"
Mr.~Smith was happy to see her\\

Mr. Smith was happy to see her

cf.~Fig.~5\\

cf. Fig. 5

I like BASIC\@. What about you?

I like BASIC. What about you?

\frenchspacing

UB3

\ xw LATEX 3

\'~

i1x"
z3=~H"XJ^

\frenchspacing- \@ 7
"

2.7

IK!!

Bun)ATr y!f!"LATEX ^;

32

-|
-r!IK"\?U(gS
^" article  ke!-
\section{...}
\subsection{...}
\subsubsection{...}
\paragraph{...}
\subparagraph{...}

XJr A K!?\^
\part{...}

\^ report book a^, p

g

!\chapter{...}

article a yNr\
7"!mm!SIKid LATEX g"
!-k
A5
- \part KS"
- \appendix rSU^i1IP13"
LATEX 3 ?

J!IK)8

"\tableofcontents

3y\8"
(8 (table of contents) SN
# 7L? (LATEXed) g"k?1ng"Xk7
LATEX w\"
!-/(0/y"
/(0-L3
-

\ * 5y")!IKQyu8S"~

X- \section{Help} /(0/ \section*{Help}"


8yIK\"kU
IK?8"3e8^8dSIKc
("
13

article a UC!S"

2.8 ^

33

\chapter[Title for the table of contents]{A long


and especially boring title, shown in the text}
 IK (title) d\maketitle

)"IKSN7L3N^ \maketitle cd\title{...}, \author{...} \date{...}

"3- \author \A^ \and -mi"


31 7  1.2 Uk'-~f"

)!-LATEX 2 ?
n-^u book
 "yk^UXUCIK
\frontmatter AX- \begin{document} ^"r
i"ucSNH^(-~X\chapter*{Preface}
{ LATEX S"
\mainmatter Ay31;c"mC.iO
l#O"
\appendix INm"T- SU^i1IP"
\backmatter AT\

SN;cXz

"3IO a.vkoJ"

2.8

^

37!wI!LA?1^
(cross-references)"LATEX J
Xe^\label{marker}, \ref{marker} and \pageref{marker}

marker ^JI"XJ3!!f!!!Ln

EX r \ref OAS"\pageref -<


\label \?"14 !IK^Sc?)"
\ \label

14

-LAT

5
-ovk"- \label 
gg)S"

34
A reference to this subsection
\label{sec:this} looks like:

A reference to this subsection looks like:

see section~\ref{sec:this} on

see section 2.8 on page 34.

page~\pageref{sec:this}.

2.9

\footnote{footnote text}

r 5SN<uc " 5-ou (put) 15 


cf

" 5ffA^

(16"

Footnotes\footnote{This is
a footnote.} are often used
by people using \LaTeX.

2.10

Footnotesa are often used by people using


LATEX.
a

This is a footnote.

rN

XJ^i\^ey5rNc"
\underline{text}

3<M^NiN<rNc"LATEX J
\emph{text}

5rN"
-S^J6ue
15
16

put ~^=c"
5 5r5l m"z< 5"

or\`k\17
17
I7r/ :-).

2.11

35

\emph{If you use


emphasizing inside a piece
of emphasized text, then
\LaTeX{} uses the
\emph{normal} font for

If you use emphasizing inside a piece of emphasized text, then LATEX uses the normal
font for emphasizing.

emphasizing.}

5 LATEX rNo^iNJ:
\textit{You can also
\emph{emphasize} text if
it is set in italics,}

You can also emphasize text if it is set


in italics, in a sans-serif

\textsf{in a
\emph{sans-serif} font,}

font, or in

typewriter style.

\texttt{or in
\emph{typewriter} style.}

2.11

;^LATEX
 (environment)

\begin{environment}

text

\end{environment}

environment "N^^Si@"
\begin{aaa}...\begin{bbb}...\end{bbb}...\end{aaa}
e!k
)"

2.11.1

Itemize!Enumerate Description

itemize ^ u {   Lenumerate ^ u S  
Ldescription ^uL"

36
\flushleft
\begin{enumerate}
\item You can mix the list
environments to your taste:

1. You can mix the list environments

\begin{itemize}

to your taste:

\item But it might start to


look silly.

But it might start to look silly.

\item[-] With a dash.

- With a dash.

\end{itemize}
2. Therefore remember:

\item Therefore remember:


\begin{description}

Stupid things will not become

\item[Stupid] things will not

smart because they are in a

become smart because they are

list.

in a list.

Smart things, though, can be

\item[Smart] things, though,

presented beautifully in a list.

can be presented beautifully


in a list.
\end{description}
\end{enumerate}

2.11.2

!m

flushleft flushright O) (left-aligned) m


(right-aligned) "center )"XJ\\- \\
1:LATEX g1"
\begin{flushleft}
This text is\\ left-aligned.

This text is

\LaTeX{} is not trying to make

left-aligned. LATEX is not trying to make


each line the same length.

each line the same length.


\end{flushleft}

\begin{flushright}
This text is right-\\aligned.
\LaTeX{} is not trying to make
each line the same length.

This text is rightaligned. LATEX is not trying to make each


line the same length.

\end{flushright}

\begin{center}
At the centre\\of the earth
\end{center}

At the centre
of the earth

2.11

2.11.3

37

^!(

quote ^u!~f"
A typographical rule of thumb
for the line length is:

A typographical rule of thumb for the line

\begin{quote}

length is:

On average, no line should


be longer than 66 characters.
\end{quote}

On average, no line should be


longer than 66 characters.

This is why \LaTeX{} pages have

This is why LATEX pages have such large

such large borders by default

borders by default and also why multicol-

and also why multicolumn print

umn print is used in newspapers.

is used in newspapers.

kaqquotation verse "quotation ^u


LA^?1?"verse ^uy3y
1"31"^ \\ 13z
I know only one English poem by
heart. It is about Humpty Dumpty.
\begin{flushleft}
\begin{verse}
Humpty Dumpty sat on a wall:\\
Humpty Dumpty had a great fall.\\
All the Kings horses and all
the Kings men\\
Couldnt put Humpty together
again.
\end{verse}
\end{flushleft}

2.11.4

31"

I know only one English poem by heart. It


is about Humpty Dumpty.
Humpty Dumpty sat on a
wall:
Humpty Dumpty had a great
fall.
All the Kings horses and all
the Kings men
Couldnt put Humpty
together again.

.~m5n"LATEX d
J
abstract " abstract ^u article a "
\begin{abstract}
The abstract abstract.
\end{abstract}

The abstract abstract.

38

<

2.11.5

u \begin{verbatim} \end{verbatim} m<


)k1x3i\1? LATEX
-"
3aqUd
\verb+text+

"+ =~f"
* ^?i"
fN~f^-<"
The \verb|\ldots| command \ldots
\begin{verbatim}
10 PRINT "HELLO WORLD ";
20 GOTO 10

The \ldots command . . .


10 PRINT "HELLO WORLD ";
20 GOTO 10

\end{verbatim}

\begin{verbatim*}
the starred version of

the starred version of

the

the

verbatim

verbatim

environment emphasizes

environment emphasizes

the spaces

the spaces

in the text

in the text

\end{verbatim*}

(- \verb Uaq^


\verb*|like

this :-) |

like

this :-)

verbatim \verb -U3-^"

2.11.6

tabular U^5kYRL L (table)"LATEX


g(z"
\begin{tabular}[pos]{table spec}

 table spec
L"^ l )^
r )m^ c )^ p{width} )A
!g1| )RL"

2.11

39

XJpLATEX g1w"^ p{width} \


Xp1J"
pos u7LR"^i1 t ! b
c 5L!e"
3 tabular ^ & a\e^ \\ m#1^ \hline
\YL"^ \cline{j-i} V\L j i OLL
S"
\begin{tabular}{|r|l|}
\hline
7C0 & hexadecimal \\
3700 & octal \\ \cline{2-2}
11111000000 & binary \\
\hline \hline
1984 & decimal \\

7C0

hexadecimal

3700

octal

11111000000
1984

binary
decimal

\hline
\end{tabular}

\begin{tabular}{|p{4.7cm}|}
\hline
Welcome to Boxys paragraph.

Welcome to Boxys paragraph.

We sincerely hope youll

We sincerely hope youll all enjoy

all enjoy the show.\\

the show.

\hline
\end{tabular}

Ld @{...} E"-KLmm


s)m?\"^3ue)?
K",UA^3u^ @{} Lmm"
\begin{tabular}{@{} l @{}}
\hline
no leading space\\

no leading space

\hline
\end{tabular}

\begin{tabular}{l}
\hline
leading space left and right\\
\hline
\end{tabular}

leading space left and right

40

duvkS{?U:18^
/608m"\begin{tabular} 1
- @{.} ^ . 
m~ml
U:
J"#P^ (&) ?:^\multicolumn 3/0I\"
\begin{tabular}{c r @{.} l}
Pi expression

&
Pi expression

\multicolumn{2}{c}{Value} \\

\hline

Value
3.1416

$\pi$

& 3&1416

\\

$\pi^{\pi}$

& 36&46

\\

( )

36.46
80662.7

$(\pi^{\pi})^{\pi}$ & 80662&7 \\


\end{tabular}

\begin{tabular}{|c|c|}
\hline
\multicolumn{2}{|c|}{Ene} \\
\hline

Ene
Mene

Mene & Muh! \\

Muh!

\hline
\end{tabular}

^L<o3"XJ<L
we supertabular longtabular "

2.12

2N

8UkNL"duUr3
I;?n"XJL3c
e){zg#m"{33e
xJw5 "
u3ce?L){r/2
0edc^W"LATEX J
2
N (floating bodies) ^u^uL"u
`5AT
)LATEX ?n2NS3n"2
U-< LATEX or2N3\"
kwe2^ LATEX -
18

XJXSC
tools we dcolumn"

2.12 2N

41

3 figure table ?2SN"


2|
\begin{figure}[placement specifier] or \begin{table}[. . . |]|

placement specifierd2NiG|"
L 2.9"^uw LATEX 2N" placement
specifier dG2NN (float-placing permissions) .
L 2.9.
LdXe-~X
\begin{table}[!hbp]
mplacement specifier [!hbp] #N LATEX rLc3,
. (b)3;2 (p)U`=
w5 (!)"XJvk`" [tbp]"
LATEX UJ placement specifier Sz2
N"XJ2N3cUSrM3L
19 "#mLATEX kuU^2
NW;/20"XJUf3
y2N?n12NLATEX l#}U
A`
2U h5?n"y?
#2NM3A"uz2NLATEX 
y^S"`
oUSrk

5

 ""
19

/k5kr0

L 2.9: 2NN"
Spec
h

2NN,,
here 3(u2Nk
^"

3top

3.bottom

3k2N;page"

{2NSa"

5 pt em TEX .  1 115 L 6.5k'SN"


a

~X#N2N8"

42

XJ LATEX vk\"@S2N@o~=k
2Nl
,"
= placement specifiers #NK"XJ3
S
N4

Y2N"^

[h]3 LATEX CJ


u [ht] gO"
,2NK

` table figure k
SN
"^
\caption{caption text}

-2NIK"SiG/0/L0d LATEX
gV\"
\listoffigures and \listoftables

^5 \tableofcontents -aqO/8L8
"3
8kIKE"XJ^IK7LO
U?8IK"=3 \caption -

)S

\IK"
\caption[Short]{LLLLLoooooonnnnnggggg}
|^ \label \ref32NM^"
e~fx/\ "XJ3 \
i\3m\|^~f"
Figure~\ref{white} is an example of Pop-Art.
\begin{figure}[!hbp]
\makebox[\textwidth]{\framebox[5cm]{\rule{0pt}{5cm}}}
\caption{Five by Five in Centimetres.\label{white}}
\end{figure}
3~f
r3c (h)20 LATEX }"
(!)"XJUrS3. (b)"XJU
S3cUm2
5gL
L"XJvkv
5W;2
20

b"

2.13 oyfLATEX m#fy2g?n


"
3
eUI^\clearpage or even the \cleardoublepage

- LATEX =ke2Nm#"\cleardoublepage $- LATEX #m"


3

2.13

0 X3 LATEX 2 \ PostScript /"

oyf-

-X \caption \sectionU3 y
g~X3 8"^uaq \section -

-"yf- (fragile commands)"\footnote


\phantom y f -  ~ f.
y f - I  o"r
\protect -3cUo"
\protect ==o;m-9"3
/eL \protect N"
\section{I am considerate
\protect\footnote{and protect my footnotes}}

43

1n

d\k+@o3p45Xu TEX r
?"J2\f}K"<
5`pSN^XJ\3p\I
)Y{%"4kU3 AMS-LATEX 1 U\

K,)Y"

3.1

LATEX ^Ak5 (mathematics)"


#N1m/3/d
U m"?uS3 \( \) m$ $ m
\begin{math} \end{math}m"
Add $a$ squared and $b$ squared
to get $c$ squared. Or, using
a more mathematical approach:
$c^{2}=a^{2}+b^{2}$

\TeX{} is pronounced as

Add a squared and b squared to get c


squared. Or, using a more mathematical
approach: c2 = a2 + b2

\(\tau\epsilon\chi\).\\[6pt]

TEX is pronounced as .

100~m$^{3}$ of water\\[6pt]

100 m3 of water

This comes from my


\begin{math}\heartsuit\end{math}

This comes from my

 \ F " r g C 
  3
 @ o \ w (display) m d "
d\ r 3 \[ \] m \begin{displaymath}
\end{displaymath} m"
1

{I
r LATEX *"~f^
*"kC TEX

u1J
*"XJ\Xvk macros/latex/required/amslatex w"

46
Add $a$ squared and $b$ squared
to get $c$ squared. Or, using
a more mathematical approach:
\begin{displaymath}

Add a squared and b squared to get c


squared. Or, using a more mathematical
approach:
c2 = a2 + b2

c^{2}=a^{2}+b^{2}
\end{displaymath}

or you can type less with:

or you can type less with:

a+b=c

\[a+b=c\]

XJ\F" LATEX \?\^ equation ",


\^ \label 5\I\3,?^ \ref
amsmath  \eqref -5^"
\begin{equation} \label{eq:eps}
\epsilon > 0
>0

\end{equation}

(3.1)

From (\ref{eq:eps}), we gather

From (3.1), we gather . . . From (3.1) we do

\ldots{}From \eqref{eq:eps} we

the same.

do the same.

5ec1m w
$\lim_{n \to \infty}
\sum_{k=1}^n \frac{1}{k^2}
= \frac{\pi^2}{6}$

limn

Pn

1
k=1 k2

2
6

\begin{displaymath}
\lim_{n \to \infty}
\sum_{k=1}^n \frac{1}{k^2}

lim

= \frac{\pi^2}{6}

n
X
1
k=1

k2

2
6

\end{displaymath}


?"~X3
1. 1vk? kolA
Lg,)o^
;-5X \,
\quad \qquad"
2. x1#N"zU"
3. zi1@CAd"
XJ\3iNi@o\
7Lr
3 \textrm{...} -1 55 1 3.7
!"

3.2 +|

47

\begin{equation}
\forall x \in \mathbf{R}:
x R :

\qquad x^{2} \geq 0

x2 0

(3.2)

\end{equation}

\begin{equation}
x^{2} \geq 0\qquad
x2 0

\textrm{for all }x\in\mathbf{R}

for all x R

(3.3)

\end{equation}

[u^oNf\pS.^%oN
(blackboard bold)diN^ amsfonts amssymb 
\mathbb -"~fC
\begin{displaymath}
x^{2} \geq 0\qquad
x2 0

\textrm{for all }x\in\mathbb{R}

for all x R

\end{displaymath}

3.2

+|

-

ikdXJ\F"

-i^\7Lr3+|^s)
{...}.
\begin{equation}
a^x+y \neq a^{x+y}

ax + y 6= ax+y

\end{equation}

3.3

(3.4)



!0 
-"[
-L1 59 1 3.10 !"
F1i1 (Greek letters) \/ \alpha!\beta!\gamma!,
,i1\/ \Gamma!\Delta!,,2
$\lambda,\xi,\pi,\mu,\Phi,\Omega$
2 A
LT

, , , , ,

EX 2 vk Alpha /i1 A "#?


UkU"

48
eIUL^ ^ _ 5"
$a_{1}$ \qquad $x^{2}$ \qquad
$e^{-\alpha t}$ \qquad
$a^{3}_{ij}$\\
$e^{x^2} \neq {e^x}^2$

x2

a1

a3ij

et

ex 6= ex2

(square root) \^ \sqrtng^ \sqrt[n] 5"


d LATEX g)"XJ==I^ \surd "
$\sqrt{x}$ \qquad
$\sqrt{ x^{2}+\sqrt{y} }$
\qquad $\sqrt[3]{2}$\\[3pt]

x
x2 + y
2
[x + y 2 ]

3
2

$\surd[x^2 + y^2]$

- \overline \underline )Y3L


e"
$\overline{m+n}$

m+n

- \overbrace \underbrace 3Le)


Y)

$\underbrace{a+b+\cdots+z}_{26}$

a + b + + z

{z
26

CO\X(tilde)\^1
59 L 3.1 -"CXi/lf0d
\widehat \widetilde " K
(prime)"
\begin{displaymath}
y=x^{2}\qquad y=2x\qquad y=2

y = x2

y 0 = 2x

y 00 = 2

\end{displaymath}

L3CV\ (arrow symbols) 5"


d^ \vec -="\overrightarrow \overleftarrow
-^5Ll A  B "
\begin{displaymath}
\vec a\quad\overrightarrow{AB}

~a

AB

\end{displaymath}

~\vk7w:5L{$k
I5"3
e\AT^ \cdot -"

3.3 

49

\begin{displaymath}
v = {\sigma}_1 \cdot {\sigma}_2
v = 1 2 1 2

{\tau}_1 \cdot {\tau}_2


\end{displaymath}

log aq~^iN XC^N


d LATEX J
e-5

\arccos \cos
\csc \exp
\ker
\limsup
\arcsin

\cosh

\deg

\gcd

\lg

\ln

\arctan

\cot

\det

\hom

\lim

\log

\arg

\coth

\dim

\inf

\liminf

\max

\sinh

\sup

\tan

\tanh

\min

\Pr

\sec

\sin

\[\lim_{x \rightarrow 0}

lim

\frac{\sin x}{x}=1\]

x0

sin x
=1
x

u (modulo function)k-\bmod ^u$


a mod b \pmod K^uLX x a (mod b)"
$a\bmod b$\\

a mod b

$x\equiv a \pmod{b}$

x a (mod b)

e (fraction) ^ \frac{...}{...} -" 


/X 1/2kJu{f15`w
{*"
$1\frac{1}{2}$~hours
\begin{displaymath}
\frac{ x^{2} }{ k+1 }\qquad
x^{ \frac{2}{k+1} }\qquad
x^{ 1/2 }

1 21 hours
x2
k+1

x1/2

x k+1

\end{displaymath}

Xaq(\^ amsmath  \binom


-"
\begin{displaymath}
\binom{n}{k}\qquad\mathrm{C}_n^k
\end{displaymath}

 
n
k

Ckn

50

u'Xk\Irp5"\stackrel r1I31 1K


~{"
\begin{displaymath}

\int f_N(x) \stackrel{!}{=} 1


\end{displaymath}

fN (x) = 1

(integral operator) ^ \int ) (sum operator) ^


\sum - (product operator) ^ \prod -"e^ ^
_ 5XIeI3"
\begin{displaymath}
\sum_{i=1}^{n} \qquad
\int_{0}^{\frac{\pi}{2}} \qquad

n
X
i=1

\prod_\epsilon

\end{displaymath}

E,LIamsmath J

 \substack - subarray
\begin{displaymath}
\sum_{\substack{0<i<n \\ 1<j<m}}
P(i,j) =

\sum_{\begin{subarray}{l}
i\in I\\

0<i<n
1<j<m

1<j<m
\end{subarray}}

P (i, j) =

Q(i, j)

iI
1<j<m

Q(i,j)

\end{displaymath}

TEX J
  5   ) (braces)  .
(delimiters)X[ h k l " ))dA\ s

)^\{k.^-X\updownarrow
)"k^.L1 62 L 3.7"

\begin{displaymath}
{a,b,c}\neq\{a,b,c\}
\end{displaymath}

a, b, c 6= {a, b, c}

XJ\3,.c \left -3,m.c


\right -TEX g."5\7L
3

AMS-LATEX ,k1I/eI"

3.4

51

z \left -A \right - k3m.


31("XJ\^?m.^
w \right. =
\begin{displaymath}
1 + \left( \frac{1}{ 1-x^{2} }

1+

\right) ^3
\end{displaymath}

1
1 x2

3

k
ek7.(^
\big\Big\bigg \Bigg -e\Ir3.
-c4"
$\Big( (x+1) (x-1) \Big) ^{2}$\\

$\big(\Big(\bigg(\Bigg($\quad

(x + 1)(x 1)



$\big\}\Big\}\bigg\}\Bigg\}$
\quad
$\big\|\Big\|\bigg\|\Bigg\|$

2

)
o

k-y3\n: (three dots)"\ldots 


3: \cdots e:", k \vdots -
):\ddots ):" \31 3.5 !,
~f"
\begin{displaymath}
x_{1},\ldots,x_{n} \qquad
x1 , . . . , x n

x_{1}+\cdots+x_{n}

x1 + + xn

\end{displaymath}

3.4

XJSd TEX J-<@oL\

A-5N"k
-)\, 
( ) , \: 

4
18

quad ( ) \; 

, \quad (

5
18

3
18

quad

quad ( )"= \ )

) \qquad (

) )"\quad 

3
ciNi1Mk'"\! -) 18
quad ( ) 

K"
4

XJ^
,UCiN-
11pt 12pt {
-

J"^ exscale amsmath "

52
\newcommand{\ud}{\mathrm{d}}
\begin{displaymath}
\int\!\!\!\int_{D} g(x,y)
\, \ud x\, \ud y

ZZ

g(x, y) dx dy

instead of

\end{displaymath}
instead of
\begin{displaymath}
\int\int_{D} g(x,y)\ud x \ud y

Z Z

g(x, y)dxdy
D

\end{displaymath}

5p d U.~iN"
AMS-LATEX mNJ
,{=^
\iint, \iiint, \iiiint, \idotsint -"
\\ amsmath

~f

\newcommand{\ud}{\mathrm{d}}

ZZ

\begin{displaymath}
\iint_{D} \, \ud x \, \ud y

dx dy

\end{displaymath}

>f testmath.tex AMS-LATEX u1

The LATEX Companion [3] 1l"

3.5

R

|^ array "^ tabular k


aq"\\
-^51"
\begin{displaymath}
\mathbf{X} =
\left( \begin{array}{ccc}
x_{11} & x_{12} & \ldots \\
x_{21} & x_{22} & \ldots \\
\vdots & \vdots & \ddots
\end{array} \right)

x11

x12

...

x21
X=

..
.

x22
..
.

...

..
.

\end{displaymath}

array ^5LL^ .
 \right ."

3.5 R

53

\begin{displaymath}
y = \left\{ \begin{array}{ll}
a & \textrm{if $d>c$}\\
b+x & \textrm{in the morning}\\
l & \textrm{all day long}
\end{array} \right.
\end{displaymath}

y=

if d > c

b+x

in the morning

all day long

3 tabular \3 array xX

\begin{displaymath}
\left(\begin{array}{c|c}
1 & 2 \\
\hline
3 & 4

\end{array}\right)
\end{displaymath}

u1| (equation system)\^ eqnarray


eqnarray* 5O equation "3 eqnarray z1k
?"eqnarray* KV\?"
eqnarray eqnarray* ^{ {rcl}/ La
qpm^5\J"\\
-1"

\begin{eqnarray}
f(x) & = & \cos x

\\

f(x) & = & -\sin x

\\

\int_{0}^{x} f(y)dy &


= & \sin x
\end{eqnarray}

f (x)

cos x

(3.5)

f 0 (x)

sin x

(3.6)

f (y)dy

sin x

(3.7)

5p>xwL"\setlength\arraycolsep{2pt}
N~Xe"
U"7L3=pX?"
e{~^"

54
{\setlength\arraycolsep{2pt}
\begin{eqnarray}
\sin x & = & x -\frac{x^{3}}{3!}
+\frac{x^{5}}{5!}-{}

x3
x5
+

3!
5!
x7
+

7!

sin x = x

\nonumber\\

(3.8)

&& {}-\frac{x^{7}}{7!}+{}\cdots
\end{eqnarray}}

\begin{eqnarray}
\lefteqn{ \cos x = 1
-\frac{x^{2}}{2!} +{} }
\nonumber\\

x2
+
2!
x6
x4

+
+
4!
6!

cos x = 1

& & {}+\frac{x^{4}}{4!}


-\frac{x^{6}}{6!}+{}\cdots

(3.9)

\end{eqnarray}

\nonumber -w LATEX ?"


^{J4(Ramsmath J
X
rkOJ align, flalign, gather, multline split
"

3.6

wJphantomkKg3N<M
,k"LATEX "^5y
k
E|"
^ ^ _ LATEX RkwLug"
^ \phantom -\3wi3"n)d
{we~f"
\begin{displaymath}
{}^{12}_{\phantom{1}6}\textrm{C}
\qquad \textrm{versus} \qquad

12
6C

versus

12
6 C

{}^{12}_{6}\textrm{C}
\end{displaymath}

\begin{displaymath}
\Gamma_{ij}^{\phantom{ij}k}
\qquad \textrm{versus} \qquad
\Gamma_{ij}^{k}
\end{displaymath}

ij k

versus

kij

3.7 iN

3.7

55

iN

3TEX eJiN"~XI
iN"XJ\riN^ \textrm
- \textrm 6 diN
^"^ \mathrm 5iN~"%\mathrm
k", ^5"
\begin{equation}
2^{\textrm{nd}} \quad
2nd

2^{\mathrm{nd}}

2nd

(3.10)

\end{equation}

k\EIw LATEX (iN"3^eo


-5
\displaystyle (123), \textstyle (123), \scriptstyle (123) and
\scriptscriptstyle (123).
UCKew"
\begin{displaymath}
\frac{\displaystyle
\sum_{i=1}^n(x_i-\overline x)
(y_i-\overline y)}
{\displaystyle\biggl[

X
n

\sum_{i=1}^n(x_i-\overline x)^2
\sum_{i=1}^n(y_i-\overline y)^2

i=1

\biggr]^{1/2}}

n
X
i=1

(xi x)(yi y)

(xi x)2

n
X
i=1

(yi y)2

1/2

\end{displaymath}

~f)' \left[

\right] J)
"\biggl

\biggr -OAum)"

3.8

n!!,,

 \UI{5/n0!
/0!
/
n09aq("
\newtheorem{name}[counter]{text}[section]

name ^5I/n0'i" text /


5

AMS-LATEX(amsmath) 4\textrm -iN"

56
n03 <5"

)"^5n?K"^
counter 5kc(/n0 name"Kd#/n0k
cn?"section 4\5! /n0UA
!

g5?"

3\ 1 \newtheorem -

\3

^e-
"

\begin{name}[text]
This is my interesting theorem
\end{name}

amsthm J
\newtheoremstyle{style} -Lln
J5n *nOdefinition I
KoNSNNplainIKoNSNNremarkIKN
SNN"
n`

eXe~fF"U

r\4\ \newtheorem 'E,n)"


kn

\theoremstyle{definition} \newtheorem{law}{Law}
\theoremstyle{plain}

\newtheorem{jury}[law]{Jury}

\theoremstyle{remark}

\newtheorem*{marg}{Margaret}

\begin{law} \label{law:box}
Dont hide in the witness box
\end{law}

Law 1. Dont hide in the witness box

\begin{jury}[The Twelve]

Jury 2 (The Twelve). It could be you! So

It could be you! So beware and

beware and see law 1

see law~\ref{law:box}\end{jury}
\begin{marg}No, No, No\end{marg}

Margaret. No, No, No

/Jury0n/Law0n^
Od?
/Law0n?^Se5")^5n
IKaqSN"

3.9 oN

57

\flushleft
\newtheorem{mur}{Murphy}[section]
\begin{mur}
If there are two or more
ways to do something, and
one of those ways can result
in a catastrophe, then

Murphy 3.8.1. If there are two or more


ways to do something, and one of those
ways can result in a catastrophe, then
someone will do it.

someone will do it.\end{mur}

/Murphy0 nkc!X?"\^
X (chapter) ! (subsection)"
amsthm J
proof "
\begin{proof}

Proof. Trivial, use

Trivial, use

E = mc2

\[E=mc^2\]
\end{proof}

^ \qedhere -\-y.."
-y..%@3y(
u1"
\begin{proof}
Trivial, use

Proof. Trivial, use

\[E=mc^2 \qedhere\]

E = mc2

\end{proof}

3.9

oN

3 LATEX oNNN
{YL^"iNC- \mathbf oNi
1N ~N"k
\boldmath -U^3 "=^ui1^
u"
\begin{displaymath}
\mu, M \qquad \mathbf{M} \qquad
\mbox{\boldmath $\mu, M$}
\end{displaymath}

5oN
NI"

, M

, M

58

amsbsy 3 amsmath tool 8 bm B|N


 \boldsymbol -"
\begin{displaymath}
\mu, M \qquad
\boldsymbol{\mu}, \boldsymbol{M}
\end{displaymath}

, M

, M

3.10 L

3.10

59

eL
k~^"
^L 3.113.156 "7Lk31\ amssymb X
7LSC
AMS iN"XJXvkSC AMS iN

macros/latex/required/amslatex"    L u info/symbols/
comprehensive ?"
L 3.1: "
a

\hat{a}

\check{a}

\tilde{a}

a
`

\grave{a}

\dot{a}

\ddot{a}

Ab

\widehat{A}

\bar{a}

~a

\vec{a}

\acute{a}

\breve{a}

Ae

\widetilde{A}

L 3.2: F1i1"

\alpha

\theta

\upsilon

\beta

\vartheta

\pi

\phi

\gamma

\iota

\varpi

\varphi

\delta

\kappa

\rho

\chi

\epsilon

\lambda

\varrho

\psi

\varepsilon

\mu

\sigma

\omega

\zeta

\nu

\varsigma

\eta

\xi

\tau

\Gamma

\Lambda

\Sigma

\Psi

\Delta

\Xi

\Upsilon

\Omega

\Theta

\Pi

\Phi

L gu David Carlisle  symbols.tex,

3 Josef Tkadlec e
U"

60

L 3.3: 'X"
\3eA-c\ \not - /"
<

<

>

>

\leq or \le

\geq or \ge

.
=

\equiv

\sim

\ll

\prec

\preceq

\subset
\subseteq

\sqsubset

\sqsubseteq

`
|

^
:

\supset
\supseteq

\simeq

\approx

\Join

\cong

\sqsupseteq

./

\bowtie

\ni , \owns

\propto

\dashv

\mid

\parallel

\smile

\frown

\notin

'

\succeq

\sqsupset

\vdash

\succ

\doteq

A
3

\in

\gg

^ latexsym U

|=

6=

\models
\perp
\asymp
\neq or \ne

3.10 L

61

L 3.4: $"
+

\pm

\cdot

\times

\cup
\vee , \lor

\oplus

\odot

\otimes

\bigtriangleup

\lhd

\sqcup

\unlhd

\mp

\triangleleft

\div

\triangleright

\setminus

\star

\cap

\ast

\sqcap
\wedge , \land

\ominus

\oslash

\bigcirc

\bigtriangledown

\rhd

\unrhd

\circ
\bullet
\diamond
\uplus
\amalg
\dagger
\ddagger
\wr

L 3.5: /0$"
P
Q

`
R

\sum
\prod
\coprod
\int
\bigoplus

F
H

\bigcup
\bigcap
\bigsqcup
\oint
N

\bigotimes

\bigvee
\bigwedge
\biguplus
\bigodot

62

L 3.6: "

\leftarrow or \gets
\rightarrow or \to

\leftrightarrow

\longleftarrow
\longrightarrow
\longleftrightarrow

\Leftarrow

\Longleftarrow

\Rightarrow

\Longrightarrow

\Leftrightarrow

\Longleftrightarrow

\mapsto

\longmapsto

\hookleftarrow

\hookrightarrow

\leftharpoonup

\rightharpoonup

\leftharpoondown

\rightharpoondown

\rightleftharpoons

\iff (bigger spaces)

\uparrow

\updownarrow

\Downarrow

&

\nearrow

\swarrow

\leadsto

a
a

\downarrow
\Uparrow
\Updownarrow
\searrow
\nwarrow

^ latexsym U

L 3.7: ."
(

[ or \lbrack

] or \rbrack

\{ or \lbrace

\} or \rbrace

\langle

\lfloor

\Uparrow

\rceil

\rangle
\rfloor
\backslash
\Downarrow

\uparrow
\downarrow

\updownarrow

\lceil

m
k

| or \vert
\Updownarrow
\| or \Vert

3.10 L

63

L 3.8: ."

w
w

\lgroup
\arrowvert
\rmoustache

\rgroup
\Arrowvert

\lmoustache
\bracevert

L 3.9: "
...

\dots

\cdots

..
.

\vdots

..

\hbar

\imath

\jmath

\ell

<

\Re

\Im

\aleph

\wp

\partial

\infty

\Diamond

\mho

\prime

\emptyset

\triangle

\Box

\top

\angle

\heartsuit

\clubsuit

\spadesuit

\flat

\natural

\sharp

\nabla

>

\bot
\diamondsuit
\neg or \lnot

\ddots

\exists

\forall

\surd

^ latexsym U

L 3.10: "
3^
"

\dag

\S

\copyright

\textregistered

\ddag

\P

\pounds

\%

L 3.11: AMS ."


p

\ulcorner

\urcorner

\llcorner

\lrcorner

\lvert

\rvert

\lVert

\rVert

L 3.12: AMS F1F5i1"


z

\digamma

\varkappa

\beth

\gimel

\daleth

64

L 3.13: AMS 'X"


l

\lessdot

\gtrdot

\doteqdot

\leqslant

>

\geqslant

\risingdotseq

\eqslantless

\eqslantgtr

\fallingdotseq

\leqq

\geqq

\eqcirc

\lll or \llless

\ggg

\circeq

\lesssim

&

\gtrsim

\triangleq

\lessapprox

'

\gtrapprox

\bumpeq

\lessgtr

\gtrless

\Bumpeq

\lesseqgtr

\gtreqless

\thicksim

\lesseqqgtr

\gtreqqless

\thickapprox

\preccurlyeq

<

\succcurlyeq

\approxeq

\curlyeqprec

\curlyeqsucc

\backsim

\precsim

\succsim

\backsimeq

\precapprox

\succapprox

\vDash

\subseteqq

\supseteqq

\Vdash

\shortparallel

\Supset

\Vvdash

\blacktriangleleft

\sqsupset

\backepsilon

\vartriangleright

\because

\varpropto

\blacktriangleright

\Subset

\between

\trianglerighteq

\smallfrown

\pitchfork

\vartriangleleft

\shortmid

\smallsmile

\trianglelefteq

\therefore

\sqsubset

3.10 L

65

L 3.14: AMS "


L99

\dashleftarrow

99K

\dashrightarrow

\leftleftarrows

\rightrightarrows

\leftrightarrows

\rightleftarrows

\Lleftarrow

\Rrightarrow

\twoheadleftarrow

\twoheadrightarrow

\leftarrowtail

\rightarrowtail

\leftrightharpoons

\rightleftharpoons

\Lsh

\Rsh

"

\looparrowleft

\looparrowright

\curvearrowleft

\curvearrowright

\circlearrowleft

\circlearrowright

\multimap

\upuparrows

\downdownarrows

\upharpoonleft

\upharpoonright

\downharpoonright

\rightsquigarrow

\leftrightsquigarrow

66

L 3.15: AMS 'X"

\nless

\ngtr

&

\varsubsetneqq

\lneq

\gneq

'

\varsupsetneqq

\nleq

\ngeq

"

\nsubseteqq

\nleqslant

\ngeqslant

\nsupseteqq

\lneqq

\gneqq

\nmid

\lvertneqq

\gvertneqq

\nparallel

\nleqq

\ngeqq

\nshortmid

\lnsim

\gnsim

\nshortparallel

\lnapprox

\gnapprox

\nsim

\nprec

\nsucc

\ncong

\npreceq

\nsucceq

\nvdash

\precneqq

\succneqq

\nvDash

\precnsim

\succnsim

\nVdash

\precnapprox

\succnapprox

\nVDash

\subsetneq

\supsetneq

\ntriangleleft

\varsubsetneq

\varsupsetneq

\ntriangleright

\nsubseteq

\nsupseteq

\ntrianglelefteq

\subsetneqq

\supsetneqq

\ntrianglerighteq

\nleftarrow

\nrightarrow

\nleftrightarrow

\nLeftarrow

\nRightarrow

<

\nLeftrightarrow

L 3.16: AMS $"


u

\dotplus

\centerdot

\ltimes

\rtimes

>

\divideontimes

\doublecup

\doublecap

\smallsetminus

\veebar

\barwedge

\doublebarwedge

\boxplus

\boxminus

\circleddash

\boxtimes

\boxdot

\circledcirc

\intercal

\circledast

\rightthreetimes

\curlyvee

\curlywedge

\leftthreetimes

3.10 L

67

L 3.17: AMS "


~

\hbar

\hslash

\Bbbk

\square

\blacksquare

\circledS

\vartriangle

\blacktriangle

\complement

\triangledown

\blacktriangledown

\Game

\lozenge

\blacklozenge

\bigstar

\angle

\measuredangle

\diagup

\diagdown

\backprime

\nexists

\Finv

\varnothing

\eth

\sphericalangle

\mho

L 3.18: i1"
~

ABCDEabcde1234

\mathrm{ABCDE abcde 1234}

ABCDEabcde1234

\mathit{ABCDE abcde 1234}

ABCDEabcde

\mathnormal{ABCDE abcde 1234}

ABCDE

\mathcal{ABCDE abcde 1234}

A BC DE

\mathscr{ABCDE abcde 1234}

mathrsfs

ABCDEabcde1234

\mathfrak{ABCDE abcde 1234}

amsfonts or amssymb

ABCDEa1234

\mathbb{ABCDE abcde 1234}

amsfonts or amssymb

1o

;U

\n. LATEX 
;U~Xg
)!z+n\"['u LATEX A
U9UOrU3 LATEX Manual [1] The LATEX
Companion [3] "

4.1

\ EPS /

LATEX L figure table J


?n/2N
"
kA{L^ LATEX - LATEX *5)
S/ (graphics)10 A{"XJI
[&E The LATEX Companion [3] LATEX Manual [1]"
3 ^/N{^;^1)
/,

/\ "LATEX J

N{5"3p? Encapsulated
PostScript(EPS) /^'{ 2/^"

^ EPS \7Lk PostScript <2 5(


J"
d D. P. Carlisle  graphicx J
@-"
 graphics 83"
b\^XSC
PostScript < graphicx @o
\Ler\\\
1. ^\/^ EPS 4"
1
2

~X XFig!CorelDraw!!Freehand!Gnuplot!,,
, ^5 PostScript  GhostScript Sl support/ghostscript

"Windows OS/2 ^rUU^ GSview"


3
macros/latex/required/graphics
4
XJ\^U EPS \}SC PostScript <S~X
Apple LaserWriter ,

\/LS<"${ EPS

;U

70
2. 3 \e-51\ graphicx "
\usepackage[driver]{graphicx}

p driver \^dvi  postscript=S"~^


dvips" TEX vk5\/IO driver i
7I"
driver igraphicx J{
3 .dvi \'u/&E", <n)
&EU
(\ .eps "
3. ^\includegraphics[key=value, . . . ]{file}

5r file \\\ "Xdm keys


A (values)"keys ^5UC!p9^="L 4.1

'c"

L 4.1: graphicx ^'c"


width

r/N

height

r/Np

angle

_^=/

scale

e~n)L
\begin{figure}
\centering
\includegraphics[angle=90,
width=0.5\textwidth]{test}
\caption{This is a test.}
\end{figure}
r test.eps /\ p"k/^= 90
,

?1/uIO 0.5 "vk

"5 EPS ULSN"


<S(/ EPS
"

4.2 z

71

/p/pCz'~ 1.05p'"p
"[&E31 115 L 6.5
"XJ\z [9] [13]"

4.2

z

\L thebibliography 5)z (bibliography)"zz^8Xe-m


\bibitem[label]{marker }

^ marker 3^!"

\cite{marker}

X J \ ^ label  z ^ 8  ? g ) "
\begin{thebibliography} -


?"3e

~f{99} w LATEX z^8?'i 99 "


Partl [1] has proposed that . . .

Partl~\cite{pa} has
proposed that \ldots
\begin{thebibliography}{99}
\bibitem{pa} H.~Partl:
\emph{German \TeX},
TUGboat Volume~9, Issue~1 (1988)

Bibliography

\end{thebibliography}

[1] H. Partl: German TEX, TUGboat Volume 9, Issue 1 (1988)

u.8\NI^ BibTEX S" BibTEX 3


 TEX u1"U
4\ozl)\
^z^8"BibTEX )z *u
LVg4\UkO5M\z"

;U

72

L 4.2: 'c{~"
~

\index{hello}

hello, 1

Peter, 3

\index{hello!Peter}

4.3

helloef

\index{Sam@\textsl{Sam}}

Sam, 2

z

\index{Lin@\textbf{Lin}}

Lin, 7

\index{Jenny|textbf}

Jenny, 3

z

\index{Joe|textit}

Joe, 5

\index{ecole@\ecole}

cole, 4

IP

N7~k^ (index)
"^
LATEX 9 makeindex5 U
N)"3
p0
)-"?
) The LATEX
Companion [3]"

^ LATEX U makeidx 7L31\


\usepackage{makeidx}

3^

\makeindex

--"
SNL\index{key}

p key 'c"\3I/\\^
-"L 4.2 ~)
key {"
 LATEX ?n z \index -c
\;"i LATEX k
5

3UL 8 iXS makeidx"

4.4 w
*

73

M (.idx)" .idx I^ makeindex S5?n"

makeindex filename

makeindex S) Sz
^ .ind *"2g^ LATEX ?n Sz

\printindex

-y"
LATEX 2 N showidx 3><"
U3 k^"
5>&/^ \index -K "
My Word \index{Word}. As opposed
to Word\index{Word}. Note the
position of the full stop.

4.4

My Word . As opposed to Word. Note the


position of the full stop.

Piet van Oostrum ? fancyhdr 6 J

{-
w "w\Uuy
^?"
w 5z!
"LATEX L5?"3w \
^ \rightmark -5Lc section ^ \leftmark 5Lc
 chapter "-3?n chapter section -#
D"

  ( 5 \chapter  - \rightmark
\leftmark ?1 LN^ \chaptermark - \sectionmark!\subsectionmark
5# \rightmark \leftmark"
dXJ\?Uww{I#\chaptermark
-"
4.1 w
X fancyhdr 5qw"X
\ke fancyhdr  "
6

3 macros/latex/contrib/supported/fancyhdr "

;U

74

\documentclass{book}
\usepackage{fancyhdr}
\pagestyle{fancy}
with this we ensure that the chapter and section
headings are in lowercase.
\renewcommand{\chaptermark}[1]{%
\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{%
\markright{\thesection\ #1}}
\fancyhf{}

% delete current header and footer

\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt} % space for the rule
\fancypagestyle{plain}{%
\fancyhead{} % get rid of headers on plain pages
\renewcommand{\headrulewidth}{0pt} % and the line
}
4.1: fancyhdr ~"

4.5 Verbatim

4.5

75

Verbatim

3c\
verbatim "3!\
^ verbatim "verbatim #y
verbatim )

5 verbatim 
"vkoAO verbatim
y

#OU3pJ"
verbatim J

\verbatiminput{filename}

--#N\r ASCII \ 5


3 verbatim "
verbatim tools 8XC

8"XJ\/
) [10]"

4.6

SC 

 LATEX SCkC
3   "3 p     / CTAN
(http://www.ctan.org/)"
 ~X geometry hyphenat 5`
* .ins,* .dtx"d ~k
readme.txt ?1{`"\ATk"
X

\
 \?1?n

(a) \ TEX X#(b) )` "e1



1. .ins $1 LATEX -") .sty "
2. r .sty  LATEX XU/"e3\
.../localtexmf/tex/latex f8eWindows OS/2 ^rA
TUC"
3. M#X"N-u\^ LATEX X
teTeX, fpTeX texhash; web2c maktexlsr; MikTeX initexmf
-update-fndb ^/."
y3\l .dtx )`

;U

76

1. .dtx $1 LATEX -") .dvi "5\U


Ig$1 LATEX -5(?n^"
2. ue LATEX -)
.idx "XJvuy\
11 5
"
3.
)v\-
makeindex -s gind.ist name
p name L*"
4. 2g .dtx $1 LATEX -"
5.

7I) .ps .pdf B"

k\w)
.glo (glossary) "31 4 1 5
m$1e-
makeindex -s gglo.ist -o name.gls name.glo
(@311 5 c

4.7

.dtx $1H LATEX -"

^ pdf LATEX

By Daniel Flipo <Daniel.Flipo@univ- lille1.fr>

PDF  (hypertext) "aqu ,

cIP" ,/$,
"XJ\:\=N8/"X3
LATEX  k \ref \pageref yC"d
8aq(C8"
y3^ HTML IP?"3E
k"
1. 3HTML ~|"+dkIO
y3^A|"IiN"
2. <HTML 'N<(JXA
 y "(J3 LATEX .p
lZp"
kN LATEX = HTML}"
`
UIO LATEX )"
8
IK
|"\m^ LATEX E,U*@
}
1
"eF"=u3 p

4.7 ^ pdf LATEX


^ PDFB 3
#N"y
3AAwPDF "
+AkXk DVI PS \uy<
/^ Acrobat Reader Xpdf 5 PDF " JPDF
 d3N"

4.7.1

u PDF

k
Hn Th Thnh mu pdfTEX S^ LATEX 5M
PDF C~{" TeX ) DVI pdfTEX ) PDF "
k pdfLATEX S LaTeX ) PDF "
y3 TEX u1g8SC
pdfTEX pdfLATEX
~XteTEX fpTEX MikTEX TEXLive CMacTEX "

)PDF DVII-latex file.texUpdflatex


file.tex"3^-1 LATEX X\3 TEX %
;U"
3 LATEX \L documentclass 5
~Xa4paper letterpaper"
pdfLATEX kk
4 pdfTEX S5 PDF "e\
^ hyperref 1 80 gN"K\I
e1\\ 
\pdfpagewidth=\paperwidth \pdfpageheight=\paperheight
e5!\0 LATEX pdfLATEX m"
kn^iN"

4.7.2

iN

pdfLATEX ?nkiNPK :
!TrueType!PostScript
type 1!,, LATEX ~iNPK :
iN3 Acrobat
Reader ewJ~ "
 pwJ^
PostScript Type 1 iN"p? TeX SCSg\
eXJ~$\aL!"
PostScript Type 1  Computer Modern AMSFonts iNd Blue
Sky Research Y&Y, Inc. 5u{I (AMS)"

iN3 1997 cmy3 TEX u1"


, XJ\^ LATEX 5M= \U^ ECLH
CB iN'u OT1 iN?1 24"Vladimir Volovich M

77

;U

78

cm-super iN EC/TC!EC Concrete!EC Bright LH iN


8"3
CTAN:/fonts/ps-type1/cm-super 8?
TEXLive7 MikTEX"
d Apostolos Syropoulos Maq type 1 CB F1iN3
CTAN:/tex-archive/fonts/greek/cb "3
iN8 Blue
Sky/Y&Y  Type 1 CM iN<M"LATEX gJ
34wJX Blue Sky/Y&Y type 1 CM iN@o'"3
p)e)J5 EC/LH/CB :
iN
"
XJ\^.X5M \k
J"
\U^ aeguill  Almost European Computer Modern
with Guillemets"I3V\1
\usepackage{aeguill}5^ AE J[iNO EC iN"
\^ mltex 3 pdfTEX 
mltex k
"
AE J[iN8 MlTEX X3 CM iNi:M
"i1U EC ^S# TEX ?n@k
 256 iiN8"^X` type 1
 cm iN"@iNy3 T1 ?3.X
$"vM AE i| Acrobat Reader U
d\U3 PDF |@
c"
u  a q  ) { ^ C1 J [ i N 3
ftp://ftp.vsu.ru/pub/tex/font-packs/c1fonts "@iN8

IO Bluesky CM type 1 iN Paradissa BaKoMa  CMCYR type


1 iN
3 CTAN "du Paradissa iNi
1C1 iNpvkpi
"
,){^ PostScript type 1 iN"

iN3 Acrobat Reader A"du


iNk
iUC"/aiNm'
CM iN CM iN~!miN" 
5
Times, Helvetica Courier iN
Acrobat
pOiNvkO53 ?"

8k@iNpxfontsui
N Palatinou Times txfonts "I3 \\
eA1^
iN

4.7 ^ pdf LATEX


\usepackage[T1]{fontenc}
\usepackage{pxfonts}
5\?3 .log ye&E
Warning: pdftex (file eurmo10): Font eur... not found
X ^,
iNvk"\7L)
KK
 PDF Uw"i"
to the preamble of your document and you are all set for creating
excellent pdf output with full support for the full Latin character set.
?
XdiNKAO"y type 1  CM iN
p EC iN(6["C@# Latin Modern
(LM) piNmu"c%{"XJ\S
C
# TEX\USC@iNI3\ 
V\
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
M|k.i` PDF "

4.7.3

^/

L graphicx 1 69 \3 \/"^
pdftex driver ^u pdfLATEX
\usepackage[pdftex]{color,graphicx}
~f
color d w5
g,
"
Ed"E Encapsulated PostScript /
 PdfLATEX |"XJ\3- \includegraphics (\1
* graphicx 6u driver g
"u pdftex |k .png!.pdf!.jpg .mps
(META O T)| .eps"
)K{{L3X epstopdf
\ EPS =z PDF "ux
){u!n PDF
5| PNG JPEG "PNG 4

79

;U

80

k"JPEG ~u ^m
"
Uux
AA/n3L
;
-5x/~X META O T3 TEX u1
*"

4.7.4

hyperref \ kS^C"d
A
7Ly\usepackage[pdftex]{hyperref} \ 


1-"

k^u hyperref J:


3 \usepackage[pdftex]{hyperref}  pdftex

m
^1- \hypersetup{options}"
pdftex 7L^5UC hyperref %@J7"
eL%@ upright iN"
bookmarks (=true,false) w\9
unicode (=false,true) #N3 Acrobat \9^.Xi
pdftoolbar (=true,false) w Acrobat 9
pdfmenubar (=true,false) w Acrobat 9
pdffitwindow (=true,false) Nw PDF z
pdftitle (={text}) Acrobat w Document Info
pdfauthor (={text}) PDF i
pdfnewwindow (=true,false) , m
#I
colorlinks (=false,true) ke(false) 
(true)"Le5(%@
)
7

5 hyperref3 pdfTEX e^"^u PDF A&Ei\d

~ LATEX ) DVI ",


PDF"

L dvips =z PS

^ Adobe Distiller PS =

4.7 ^ pdf LATEX


linkcolor (=red) S(sections, pages, etc.),
citecolor (=green) ^(bibliography)
filecolor (=magenta) 
urlcolor (=cyan) URL (mail, web)
XJ\
%@^
\usepackage[pdftex]{hyperref}

\Lm=true I5
\usepackage[pdftex,bookmarks,colorlinks]{hyperref}
M PDF ^5<^
<l J"\<
e
\usepackage{hyperref}
\hypersetup{colorlinks=false}
C
\usepackage{hyperref}
\hypersetup{colorlinks,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black,%
pdftex}
\J PDF  Document Info &E
\usepackage[pdfauthor={Pierre Desproges},%
pdftitle={Des femmes qui tombent},%
pdftex]{hyperref}

g^Le-y 3

\href{url}{text}

81

;U

82
The \href{http://www.ctan.org}{CTAN} website.

)JCTANc CTAN r\ CTAN "


e8/ URL /\^ \href
-
The complete document is \href{manual.pdf}{here}
)J The complete document is here" here m
manual.pdf 6uc "
eF"N/ueI3 IK
 \author -^- \href
\author{Mary Oetiker $<$\href{mailto:mary@oetiker.ch}%
{mary@oetiker.ch}$>$
5=w3w3"e
\href{mailto:mary@oetiker.ch}{Mary Oetiker}
3 Acrobat ~^<e/"

4.7.5

K

O#z Uye&E
! pdfTeX warning (ext4): destination with the same
identifier (name{page.1}) has been already used,
duplicate ignored
~X3 book a ^- \mainmatter Uyw"
31O 1Sk 1l
/ 102y
duplicate has been ignored.
)  { plainpages=false \ \  hyperref "
3   O k " k x  ) { ^
hypertexnames=false"

4.7.6

\K

\k\@w\==/
0^i'~ LATEX "Hyperref ~
aK yew
Package hyperref Warning: Token not allowed in a PDFDocEncoded
string:

4.7 ^ pdf LATEX

83

y3\L\JiG5)K^
\texorpdfstring{TEX text}{Bookmark Text}

5O~w"
LaK;.L
\section{\texorpdfstring{$E=mc^2$}%
{E=mc^2}}
~3\ \section{$E=mc^2$} w/E=mc20"
UC3\wK
\section{\textcolor{red}{Red !}}
w(J/redRed!0"- \textcolor "  (red) 
"
XJ\^
\section{\texorpdfstring{\textcolor{red}{Red !}}{Red\ !}}
(J{*"
XJ\ unicodei?a. IV\ hyperref
 unicode  \ 3 \ ^ unicode i ",

\texorpdfstring -4\kiJ"
LATEX pdf LATEX  oN5
n{\ ^ LATEX pdfLATEX ?JAT
K"{){3- \includegraphics
\1*g3c8
\IMA"LATEX .eps
pdfLATEX }* .png!.pdf!.jpg .mps U
^S"
e\3 PDF ^I{/3
\\ ifpdf 8 "cJ\SC
XJvkSC \q
^ MiKTEX {3\1g^gSC"

A- \ifpdf|^\N?^"~X
<^^ PostScript =^x3w PDF
"
8

XJ\o^ TEX FAQ 98


http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ifpdf"

;U

84
\RequirePackage{ifpdf} % running on pdfTeX?
\ifpdf
\documentclass[a4paper,12pt,pdftex]{book}
\else
\documentclass[a4paper,12pt,dvips]{book}
\fi
\ifpdf
\usepackage{lmodern}
\fi
\usepackage[bookmarks, % add hyperlinks
colorlinks,
plainpages=false]{hyperref}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
...

3~f3 PDF
hyperref 
\href -3k/ek^3ze^^
("
5c TEX u1~X TEXLive~ TEX
a.gJ PDF DVI"XJ\^\E,
^ pdflatex -5 PDF ^ latex  DVI
"

4.8

Mv

By Daniel Flipo <Daniel.Flipo@univ- lille1.fr>

\\JL!^v
^3\)P>My"
pdfLATEX beamer a#N\M PDF v(J
\^Um PowerPoint w B Acrobat
Reader |X"
beamer a^ graphicx color hyperref 5A
4v"

4.8 Mv

85

\documentclass[10pt]{beamer}
\mode<beamer>{%
\usetheme[hideothersubsections,
right,width=22mm]{Goettingen}
}
\title{Simple Presentation}
\author[D. Flipo]{Daniel Flipo}
\institute{U.S.T.L. \& GUTenberg}
\titlegraphic{\includegraphics[width=20mm]{USTL}}
\date{2005}
\begin{document}
\begin{frame}<handout:0>
\titlepage
\end{frame}
\section{~f}
\begin{frame}
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\begin{itemize}
\item walk the dog\dots \pause
\item read a book\pause
\item confuse a cat\pause
\end{itemize}
\end{block}
and many other things
\end{frame}
\end{document}
4.2: beamer a~"

;U

86

\^ PDFLATEX ? 4.2 \ PDF


1IK1kA98\\ gw
^98"
beamer aM PDF `:)^
prosper IkL PostScript ppower4 I
\?nU) "
^ beamer a\^ )A"3 
)l\\A5)"keA
beamer PDF 4
trans 
handout PDF "
%@ beamer \L5?U~X
^ \documentclass[10pt,handout]{beamer} 5)"
v *6u\JK"\J beamer ag
KgC#K" beamer a
beameruserguide.pdf"
425c[ 4.2 "
u4v \mode<beamer>J
Goettingen
K8"L~f
^ 22 mm(m" hideothersubsections
w!IKwc!f!IK"u \mode<trans>
\mode<handout> y3IO"
- \title{}\author{}\institute{} \titlegraphic{}
I K  S N"\title[]{} \author[]{}  # N \ w 3
Goettingen KIK"
 I K f I K d frame  - \section{}
\subsection{} 5M"
4.
.I4\A "y
6\JK"
zz4SN3 frame "|^k)l< >
p^ 5Av"3~f
1du <handout:0> w"

IKrL- \frametitle{} 5#


zIK"XJI^ block 5fIK3

4.8 Mv
~fNy5"5!- \section{} \subsection{}
3SN)(J"
L- \pause #N\wL98SN"
-\only!\uncover!\alt \temporal4\

J"e\Lk)lSN5J"
X\ beamer a beameruserguide.pdf 5

)"3/mu
http://latex-beamer.sourceforge.net/
#&E"

87

<^ LATEX "SN(


{B
LATEX J
l)/k5
{"d  LATEX *mu5
"3!
S
"

5.1

picture 3 LATEX pO/"[0  LATEX


Manual [1]"{k5'X 
U3S",LATEX 2  picture J

\qbezier -
/q0 L quadratic"N~^X ! !
]^g Bzier -<Cq,UI

"O", XJ?X Java U^5) LATEX


 \qbezier picture r"
,3 LATEX pO/{k5 ~'
k^" ^CNI\
"

X epic eepicThe LATEX Companion [3] pk0


pstricks picture /Or
LATEX /
U"
c\r
picture pstricks kgC
pspicture"pstricks r?3u2A^
PostScript"
, N^5?n;K"kXY-pic
"The LATEX Graphics Companion [4] The LATEX Companion
[3] p[0
.
LATEX r/U MetaPost METAFONT )73
 d Donald E. Knuth ? "MetaPost ^ ~ r  ?

90

METAFONT" METAFONT ):
MetaPost )C
PostScript \ LATEX "0 w A Users Manual
for MetaPost [15]H [17]"
'u LATEX TEX /iN|[? TEX Unbound
[16]"

5.2

picture

By Urs Oswald <osurs@bluewin.ch>

5.2.1

-

picture 1 ^e-5M

\begin{picture}(x, y). . . \end{picture}

or

\begin{picture}(x, y)(x0 , y0 ). . . \end{picture}

i x, y, x0 , y0 u \unitlength ?
3
picture S ^-X

\setlength{\unitlength}{1.2cm}

5UC"\unitlength%@ 1 pt"1(x, y)3


/3/"1(x0, y0 )/e
I"
1

&&d\picture =IIO LATEX 2


/m=^0I1\"

5.2 picture
-e
\put(x, y){object}

\multiput(x, y)(x, y){n}{object}

Bzier ~ "I^\qbezier(x1 , y1 )(x2 , y2 )(x3 , y3 )

5x"

91

92

5.2.2

\setlength{\unitlength}{5cm}
\begin{picture}(1,1)
\put(0,0){\line(0,1){1}}
\put(0,0){\line(1,0){1}}
\put(0,0){\line(1,1){1}}
\put(0,0){\line(1,2){.5}}
\put(0,0){\line(1,3){.3333}}
\put(0,0){\line(1,4){.25}}
\put(0,0){\line(1,5){.2}}

%




%
     

     
%
,
     
%
,
#
#
,
     
%


#
,

     
%

#
"
% ,,
#
     

"

% ,#
     

""

#
% ,
"


     

#
!
"

!

% ,

   

#
" !
"

% ,
#

!!!
  



"
,



!
#
%,

!
 

"
!
"
#


(
(
%
!




 

"
(
,

!
#
((((

(

"
!
(
%






 
(
,
!
#
(


(
"

(
!


(
,
%
"
#
!









 (

\put(0,0){\line(1,6){.1667}}
\put(0,0){\line(2,1){1}}
\put(0,0){\line(2,3){.6667}}
\put(0,0){\line(2,5){.4}}
\put(0,0){\line(3,1){1}}
\put(0,0){\line(3,2){1}}
\put(0,0){\line(3,4){.75}}
\put(0,0){\line(3,5){.6}}
\put(0,0){\line(4,1){1}}
\put(0,0){\line(4,3){1}}
\put(0,0){\line(4,5){.8}}
\put(0,0){\line(5,1){1}}
\put(0,0){\line(5,2){1}}
\put(0,0){\line(5,3){1}}
\put(0,0){\line(5,4){1}}
\put(0,0){\line(5,6){.8333}}
\put(0,0){\line(6,1){1}}
\put(0,0){\line(6,5){1}}
\end{picture}

^\put(x, y){\line(x1 , y1 ){length}}

5x"- \line k
1.
2. "
Ide
6, 5, . . . , 5, 6,

5.2 picture

93

Ip 1 vk/w
1k
25 U"u \unitlength 5`"
RRIYI"

5.2.3

\setlength{\unitlength}{0.75mm}
\begin{picture}(60,40)
\put(30,20){\vector(1,0){30}}
\put(30,20){\vector(4,1){20}}
\put(30,20){\vector(3,1){25}}
\put(30,20){\vector(2,1){30}}
\put(30,20){\vector(1,2){10}}
\thicklines
\put(30,20){\vector(-4,1){30}}
\put(30,20){\vector(-1,4){5}}

COC
C


*




1

y
X

XXX
C  

:


XX


XC







\thinlines
\put(30,20){\vector(-1,-1){5}}
\put(30,20){\vector(-1,-4){5}}
\end{picture}

x^-

\put(x, y){\vector(x1 , y1 ){length}}

'=Ide

4, 3, . . . , 3, 4.
I p 1 v k  "5  \thicklines J"

94

5.2.4

\setlength{\unitlength}{1mm}
\begin{picture}(60, 40)
\put(20,30){\circle{1}}
\put(20,30){\circle{2}}
\put(20,30){\circle{4}}
\put(20,30){\circle{8}}
\put(20,30){\circle{16}}
\put(20,30){\circle{32}}
\put(40,30){\circle{1}}
\put(40,30){\circle{2}}
\put(40,30){\circle{3}}
\put(40,30){\circle{4}}
\put(40,30){\circle{5}}
\put(40,30){\circle{6}}
\put(40,30){\circle{7}}
\put(40,30){\circle{8}}
\put(40,30){\circle{9}}
\put(40,30){\circle{10}}

'$
'$
#


 


be
m
h
j
j
be



 

"!
&%
&%
r

u x z}

\put(40,30){\circle{11}}
\put(40,30){\circle{12}}
\put(40,30){\circle{13}}
\put(40,30){\circle{14}}
\put(15,10){\circle*{1}}
\put(20,10){\circle*{2}}
\put(25,10){\circle*{3}}
\put(30,10){\circle*{4}}
\put(35,10){\circle*{5}}
\end{picture}

\put(x, y){\circle{diameter}}

x
%3 (x, y) diameter  "picture
#N 14 mm =3ek
"- \circle* ) W /"
 \ U I  'X eepic
pstricks"
[` The LATEX Graphics Companion [4]"

5.2 picture

95

picture k, U"XJ\7O
S5?n? /dg Bzier "
w~f Graphics in LATEX 2 [17] 9 Java "

5.2.5

\setlength{\unitlength}{0.8cm}
\begin{picture}(6,5)
\thicklines
\put(1,0.5){\line(2,1){3}}
\put(4,2){\line(-2,1){2}}
\put(2,3){\line(-2,-5){1}}
\put(0.7,0.3){$A$}
\put(4.05,1.9){$B$}
\put(1.7,2.95){$C$}
\put(3.1,2.5){$a$}
\put(1.3,1.7){$b$}
\put(2.5,1.05){$c$}
\put(0.3,4){$F=

F =

s(s a)(s b)(s c)


CH

HHa
HH

B
b




c

a+b+c
s :=
A 
2

\sqrt{s(s-a)(s-b)(s-c)}$}
\put(3.5,0.4){$\displaystyle
s:=\frac{a+b+c}{2}$}
\end{picture}

X~^ \put -U~3 picture


^"

96

5.2.6

\multiput \linethickness

\setlength{\unitlength}{2mm}
\begin{picture}(30,20)
\linethickness{0.075mm}
\multiput(0,0)(1,0){26}%
{\line(0,1){20}}
\multiput(0,0)(0,1){21}%
{\line(1,0){25}}
\linethickness{0.15mm}
\multiput(0,0)(5,0){6}%
{\line(0,1){20}}
\multiput(0,0)(0,5){5}%
{\line(1,0){25}}
\linethickness{0.3mm}
\multiput(5,0)(10,0){2}%
{\line(0,1){20}}
\multiput(0,5)(0,10){2}%
{\line(1,0){25}}
\end{picture}

\multiput(x, y)(x, y){n}{object}

k 4 :le8
"- \linethickness ^uYRU
^u ", T-^ug Bzier "

5.2 picture

5.2.7

97

\setlength{\unitlength}{0.75cm}
\begin{picture}(6,4)
\linethickness{0.075mm}
\multiput(0,0)(1,0){7}%
{\line(0,1){4}}
\multiput(0,0)(0,1){5}%
{\line(1,0){6}}
\thicklines
\put(2,3){\oval(3,1.8)}
\thinlines
\put(3,2){\oval(3,1.8)}
\thicklines
\put(2,1){\oval(3,1.8)[tl]}

"
! !
#



"
!
"

\put(4,1){\oval(3,1.8)[b]}
\put(4,3){\oval(3,1.8)[r]}
\put(3,1.5){\oval(1.8,0.4)}
\end{picture}

\put(x, y){\oval(w, h)}

\put(x, y){\oval(w, h)[position]}

)%3 (x, y) ?! w p h  "X~


position b, t, l, r OL= /e0!
/0!
/
0/m0X~
?1|"
^ea-a \linethickness{length}
,a \thinlines \thicklines"- \linethickness{length} =
YR9g Bzier k^\thinlines \thicklines
K^u! "

98

5.2.8

E^/f

\setlength{\unitlength}{0.5mm}
\begin{picture}(120,168)
\newsavebox{\foldera}
\savebox{\foldera}
(40,32)[bl]{% definition
\multiput(0,0)(0,28){2}
{\line(1,0){40}}
\multiput(0,0)(40,0){2}

 

{\line(0,1){28}}
\put(1,28){\oval(2,2)[tl]}
\put(1,29){\line(1,0){5}}
\put(9,29){\oval(6,6)[tl]}
\put(9,32){\line(1,0){8}}
\put(17,29){\oval(6,6)[tr]}
\put(20,29){\line(1,0){19}}
\put(39,28){\oval(2,2)[tr]}
}
\newsavebox{\folderb}
\savebox{\folderb}
(40,32)[l]{%

definition

\put(0,14){\line(1,0){8}}
\put(8,0){\usebox{\foldera}}
}
\put(34,26){\line(0,1){102}}
\put(14,128){\usebox{\foldera}}
\multiput(34,86)(0,-37){3}
{\usebox{\folderb}}
\end{picture}

/f^\newsavebox{name}

?1(,

^-

\savebox{name}(width,height)[position]{content}

?1

^-

\put(x, y)\usebox{name}

?1?gE"

 

 

 

5.2 picture

99

position ^/f/e:0"3~T
 bll e:/fe"
k t rOL/0/m0"
name
LATEX ;
-3~
"/fi@3~\foldera ^3
\folderb 
"
du- \line 3u 3 mm U~
7L^- \oval"

5.2.9

g Bzier

\setlength{\unitlength}{0.8cm}
\begin{picture}(6,4)
\linethickness{0.075mm}
\multiput(0,0)(1,0){7}
{\line(0,1){4}}
\multiput(0,0)(0,1){5}
{\line(1,0){6}}
\thicklines
\put(0.5,0.5){\line(1,5){0.5}}
\put(1,3){\line(4,1){2}}
\qbezier(0.5,0.5)(1,3)(3,3.5)
\thinlines
\put(2.5,2){\line(2,-1){3}}
\put(5.5,0.5){\line(-1,5){0.5}}













D
D

D
H
HH
D
HH D
HHD

\linethickness{1mm}
\qbezier(2.5,2)(5.5,0.5)(5,3)
\thinlines
\qbezier(4,2)(4,3)(3,3)
\qbezier(3,3)(2,3)(2,2)
\qbezier(2,2)(2,1)(3,1)
\qbezier(3,1)(4,1)(4,2)
\end{picture}

X~  4 ^g Bzier JU-<


I 8 ^"T2g
- \linethickness YR
9- \thinlines \thicklines K"T~w
a-Kg Bzier z^-CXck-"
- P1 = (x1 , y1 ), P2 = (x2 , y2 ) m1 , m2 OL^g Bzier

100

:9A"m: S = (x, y) Kde

x =

m2 x2 m1 x1 (y2 y1 )
,
m2 m1
y = yi + mi (x xi )
(i = 1, 2).

(5.1)

'u)7 \qbezier - Java S Graphics in LATEX 2 [17]"

5.2.10

\setlength{\unitlength}{1cm}
\begin{picture}(4.3,3.6)(-2.5,-0.25)
\put(-2,0){\vector(1,0){4.4}}
\put(2.45,-.05){$x$}
\put(0,0){\vector(0,1){3.2}}
\put(0,3.35){\makebox(0,0){$y$}}
\qbezier(0.0,0.0)(1.2384,0.0)
(2.0,2.7622)
\qbezier(0.0,0.0)(-1.2384,0.0)
(-2.0,2.7622)
\linethickness{.075mm}
y

\multiput(-2,0)(1,0){5}

{\line(0,1){3}}
\multiput(-2,0)(0,1){4}
{\line(1,0){4}}
\linethickness{.2mm}
\put( .3,.12763){\line(1,0){.4}}
\put(.5,-.07237){\line(0,1){.4}}
\put(-.7,.12763){\line(1,0){.4}}
\put(-.5,-.07237){\line(0,1){.4}}

-x

\put(.8,.54308){\line(1,0){.4}}
\put(1,.34308){\line(0,1){.4}}
\put(-1.2,.54308){\line(1,0){.4}}
\put(-1,.34308){\line(0,1){.4}}
\put(1.3,1.35241){\line(1,0){.4}}
\put(1.5,1.15241){\line(0,1){.4}}
\put(-1.7,1.35241){\line(1,0){.4}}
\put(-1.5,1.15241){\line(0,1){.4}}
\put(-2.5,-0.25){\circle*{0.2}}
\end{picture}

3] y = cosh x 1 dg Bzier OC

q/"mu: (2, 2.7622)A m = 3.6269"

5.3 XY-pic

101

2g^ (5.1)Om:"O(J (1.2384, 0)


(1.2384, 0)"i]:" uzJ
uy"
T~
- \begin{picture} ^{"TL^
\begin{picture}(4.3,3.6)(-2.5,-0.25)


B / 0Ied :II
(2.5, 0.25)"

5.2.11

I5

\setlength{\unitlength}{0.8cm}
\begin{picture}(6,4)(-3,-2)
\put(-2.5,0){\vector(1,0){5}}
\put(2.7,-0.1){$\chi$}
\put(0,-1.5){\vector(0,1){3}}
\multiput(-2.5,1)(0.4,0){13}

= v/c = tanh

{\line(1,0){0.2}}
\multiput(-2.5,-1)(0.4,0){13}

{\line(1,0){0.2}}
\put(0.2,1.4)
{$\beta=v/c=\tanh\chi$}
\qbezier(0,0)(0.8853,0.8853)
(2,0.9640)

\qbezier(0,0)(-0.8853,-0.8853)
(-2,-0.9640)
\put(-3,-2){\circle*{0.2}}
\end{picture}

(5.1)
^ Bzier :"|dP1 = (0, 0), m1 =
1 P2 = (2, tanh 2), m2 = 1/ cosh2 2 ("c~
3
BIeI (3, 2):"

5.3

XY-pic

By Alberto Manuel Brando Simes <albie@alfarrabio.di.uminho.pt>

102

xy 6;^"^I3\
\usepackage[options]{xy}

options \I1\XY-pic U"


U^uN
^"\^ all 4 LATEX 1\XY k-"
XY-pic 63
xz6
3


\begin{displaymath}
\xymatrix{A & B \\

C & D }
\end{displaymath}

- \xymatrix 7Lu"p
1

"
x6I^- \ar O\="
\begin{displaymath}
\xymatrix{ A \ar[r] & B \ar[d] \\

AO

/B

Do

D \ar[u] & C \ar[l] }


\end{displaymath}

-3u@p" ud
erm9 l.
\begin{displaymath}
\xymatrix{
A \ar[d] \ar[dr] \ar[r] & B \\
D

& C }

\end{displaymath}

A@
@

/B

@@
@@
@
C

x"S\E
5"
\begin{displaymath}
\xymatrix{
A \ar[d] \ar[dr] \ar[drr] & & \\
B
\end{displaymath}

& C & D }

A@
PPP
@@ PPP
@@ PPP
@@ PPP
PP'

B
C
D

5.3 XY-pic

103

k6\I\I^
IeI"

\begin{displaymath}
\xymatrix{

A \ar[r]^f \ar[d]_g &


B \ar[d]^{g} \\
D \ar[r]_{f}

& C }

/B
g0

f0


/C

\end{displaymath}

Xp^eI"O3uIL
3/0eIL3/e0"r
^ |"

\begin{displaymath}
\xymatrix{
A \ar[r]|f \ar[d]|g &
B \ar[d]|{g} \\
D \ar[r]|{f}

& C }

/B
g0

f0


/C

\end{displaymath}

%- \ar[...]|\hole"
,
eIa."bI\
^ *5y

104

\shorthandoff{"}
\begin{displaymath}

\xymatrix{
\bullet\ar@{->}[rr] && \bullet\\

/o /o /o /o /o /o /o ? _

\bullet\ar@{.<}[rr] && \bullet\\


\bullet\ar@{~)}[rr] && \bullet\\
\bullet\ar@{=(}[rr] && \bullet\\
\bullet\ar@{~/}[rr] && \bullet\\
\bullet\ar@{^{(}->}[rr] &&

 

/o /o /o /o /o /o /o 

\bullet\\
\bullet\ar@2{->}[rr] && \bullet\\



\bullet\ar@3{->}[rr] && \bullet\\


\bullet\ar@{=+}[rr]

&& \bullet

+3

_*4

_

\end{displaymath}
\shorthandon{"}

5e6O
\begin{displaymath}
\xymatrix{
\bullet \ar[r]
\ar@{.>}[r] &
\bullet

'
7

}
\end{displaymath}

\begin{displaymath}
\xymatrix{
\bullet \ar@/^/[r]
\ar@/_/@{.>}[r] &
\bullet
}
\end{displaymath}

^m?
ATXx"XY-pic J

{5UC/G[SN XY-pic  "

18

LATEX

8c$^\L-U
 "+
w

pk5
K
5K Nw5~"
, 3
eLATEX NvkJ\I-
yk-)\"
}
#E$^
E LATEX

#rZ LATEX )"

6.1

#-!

\N530 k-3/
py3

"vk^I LATEX -

5y M
(package)3
I
-"y3{
\begin{lscommand}

\dum

\ci{dum}
\end{lscommand}

3~f^
#lscommand"KI3
-x/"^
-\ci-K
I-i3V\A^8"\3
- \dum,

\uyk \dum ^8^8

k \dum -k"

2 U 3 / - t  U C

lscommand 5M# *"Jl?Uk^


 LATEX -3ix/'{N"

LATEX

106

6.1.1

#-

\gC-^Xe-
\newcommand{name}[num]{definition}

-k1 name \-


1 definition -")p num ^u
#-I8 9 "XJ%@
0#-?"
 e 5  ~ f k \  n )"1 ~ f
# 
-\tnss"-f The Not So Short Introduction to LATEX 2
{"XJ\I3 g^@o-
~B"
\newcommand{\tnss}{The not
so Short Introduction to

This is The not so Short Introduction to

\LaTeXe}

LATEX 2 . . . The not so Short Introduction to LATEX 2

This is \tnss \ldots{}


\tnss

e~f
X-"3-
IP #1 \O"XJ\^@o
g^ #2!. . . !#9 IP"
\newcommand{\txsit}[1]
{This is the \emph{#1} Short
Introduction to \LaTeXe}

This is the not so Short Introduction


to LATEX 2

% in the document body:


\begin{itemize}

This is the very Short Introduction

\item \txsit{not so}

to LATEX 2

\item \txsit{very}
\end{itemize}

LATEX #N\#yk--"XJ\(Io
kA-;^u?n\renewcommand"^
- \newcommand {"
3,
e\UF"^ \providecommand -"
\newcommand -"XJ-3LATEX 2 ww
k@"
?n LATEX -

k
5w1 5

&E"

6.1 #-!

6.1.2

107

\newcommand -aqk-^u#"-
\newenvironment{Xe
\newenvironment{name}[num]{before}{after}

/\newenvironment k"3 before SN


3dc?n 3 after SN3 \end{name}
-?n"
e~f
\newenvironment -^{
\newenvironment{king}
{\rule{1ex}{1ex}%
\hspace{\stretch{1}}}
{\hspace{\stretch{1}}%
My humble subjects . . .

\rule{1ex}{1ex}}
\begin{king}
My humble subjects \ldots
\end{king}

num ^ \newcommand -"LATEX y\


%#"XJ\(F"UCyk\
^- \renewenvironment^- \newenvironment 
{"
3~f^
-3

)\rule -)w

1 121 \stretch -)w1 114 'u \hspace &E


31 114 "

6.1.3

 xm

M#\N xm 6
m
U)

J"'X\IKQg?

;Xe?3 begin \\- \ignorespaces #


1 begin

xm end INs

(
3 end ?n.

m?n"^ \ignorespacesafterendLATEX

) \ignorespaces"

LATEX

108
\newenvironment{simple}%
{\noindent}%
{\par\noindent}

See the space


to the left.

\begin{simple}

Same

See the space\\to the left.

here.

\end{simple}
Same\\here.

\newenvironment{correct}%
{\noindent\ignorespaces}%
{\par\noindent%
\ignorespacesafterend}

No space
to the left.

\begin{correct}

Same

No space\\to the left.

here.

\end{correct}
Same\\here.

6.1.4

-1 LATEX

XJ^a Unix X\U3^ Makefiles \


EX 8"@{^-1 LATEX 5M 
k"XJre\\

LAT

\usepackage{ifthen}
\ifthenelse{\equal{\blackandwhite}{true}}{
% "black and white" mode; do something..
}{
% "color" mode; do something different..
}
y3\5 LATEX
latex \newcommand{\blackandwhite}{true}\input{test.tex}
k- \blackandwhite,

^ input 5\S "

M I \blackandwhite false"

6.1.5

XJ\
#-\ C
3e# LATEX 5k\gC-

6.2 iNi

109

?n",

\3 ^ \usepackage

-5\g"
% Demo Package by Tobias Oetiker
\ProvidesPackage{demopack}
\newcommand{\tnss}{The not so Short Introduction
to \LaTeXe}
\newcommand{\txsit}[1]{The \emph{#1} Short
Introduction to \LaTeXe}
\newenvironment{king}{\begin{quote}}{\end{quote}}
6.1: ~"
\ SN,
I .sty ("\\\;^-
\ProvidesPackage{package name}

-AT3\c"\ProvidesPackage w LATEX
l 4 LATEX 3\}g\w
&E 6.1
~
c

-"

6.2

iNi

6.2.1

iNC-

LATEX 6(!! 5!,,5JiNi


N"3,
e\UUC ^iN9"

8\^L 6.1 L 6.2 @


-"zi
NSOK6u ^ a9
"L 6.3 

-3IO a pt "
{\small The small and
\textbf{bold} Romans ruled}

The small and bold Romans ruled

{\Large all of great big

great big Italy.

all of

\textit{Italy}.}

LATEX 2 AiN5pX\
UCiN E,3iNkoNNA5"

LATEX

110

3\^iNC-56,
\
~i"XJ\F"UC^iNLATEX J

, @-"wL 6.4"
^iN-) (curly braces)
"
^u|"|
LATEX -^"

He likes {\LARGE large and

He likes

{\small small} letters}.

ters.

large and

small

let-

XJ3iN^(@oi-UC1
"d^u|) } AT@y"5

\par -

~f "
1

\paru1

L 6.1: iN"
\textrm{...}

roman

\texttt{...}

typewriter

\textmd{...}

\textsf{...}

sans serif

medium

\textbf{...}

bold face

\textup{...}

upright

\textit{...}

italic

\textsl{...}

slanted

\textsc{...}

Small Caps

\emph{...}

emphasized

\textnormal{...}

document font

L 6.2: i"
\tiny

tiny font

\scriptsize

very small font

\footnotesize

quite small font

\small

small font

\normalsize

normal font

\large

large font

\Large

larger font

\LARGE

very large font

\huge

huge

\Huge

largest

6.2 iNi

111

L 6.3: IO a pt "
size

10pt (default)

11pt option

12pt option

\tiny

5pt

6pt

6pt

\scriptsize

7pt

8pt

8pt

\footnotesize

8pt

9pt

10pt

\small

9pt

10pt

11pt

\normalsize

10pt

11pt

12pt

\large

12pt

12pt

14pt

\Large

14pt

14pt

17pt

\LARGE

17pt

17pt

20pt

\huge

20pt

20pt

25pt

\Huge

25pt

25pt

25pt

L 6.4: iN"
\mathrm{...}

Roman Font

\mathbf{...}

Boldface Font

\mathsf{...}

Sans Serif Font

\mathtt{...}

Typewriter Font

\mathit{...}

Italic Font

\mathcal{...}

CALLIGRAPHIC FONT

\mathnormal{...}

N ormal F ont

LATEX

112

{\Large Dont read this!


It is not true.
You can believe me!\par}

{\Large This is not true either.


But remember I am a liar.}\par

Dont read this!

It is not

true. You can believe me!

This is not true either. But


remember I am a liar.

XJ\F"UC$iN\UAT^iNC
-{"
\begin{Large}
This is not true.
But then again, what is these
days \ldots

This is not true. But then


again, what is these days . . .

\end{Large}

\l))5"

6.2.2

X X

XmQ`L@3\ $^
(-?
U~x LATEX :ng"3?
LATEX 5rS6 *I
m"XXJ\3/^
,A5?
~^&E\AT^ \newcommand 56C
-L-5?U&EL"
\newcommand{\oops}[1]{%
\textbf{#1}}
Do not \oops{enter} this room,
its occupied by \oops{machines}

Do not enter this room, its occupied by


machines of unknown origin and purpose.

of unknown origin and purpose.

{kw`:\3 ^
kr
yAO *u \textbf@\IH{\
5k \textbf /,
 *"

/(Uvkr

6.3 m

6.2.3

113

o('uiNi-e{

! The MO RE fonts you

Remember

more readable and beautiful it becom

es .

use

in a document,

the

P4\3

^iNw5{*"

6.3

6.3.1

XJ\3 ^1\3^Xe-?1

\linespread{factor}

X \linespread{1.3} ) 1.5 1 \linespread{1.6} K)


V1""e1 1"
5 \linespread Jx "dXJ\
UC1UF"^Xe-
\setlength{\baselineskip}{1.5\baselineskip}

{\setlength{\baselineskip}%
{1.5\baselineskip}
This paragraph is typeset with
the baseline skip set to 1.5 of
what it was before. Note the par
command at the end of the
paragraph.\par}
This paragraph has a clear
purpose, it shows that after the
curly brace has been closed,

This paragraph is typeset with the baseline


skip set to 1.5 of what it was before. Note
the par command at the end of the paragraph.
This paragraph has a clear purpose, it
shows that after the curly brace has been
closed, everything is back to normal.

everything is back to normal.

6.3.2

3 LATEX kK"3 
LXe5UC"

LATEX

114
\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex plus 0.5ex minus 0.2ex}
-O\
m1? 0"

~f plus minus  TEX U


m"
(w3TEX 3 0.8ex
 1.5ex mNm"
3~^
x1?"
 5  K 8 "8  1 C  ~ t"

; \ U I  - l 
\tableofcontents e^
5
`;7^?~^x5l"XJ\?
5vk?23m^-
\indent

,-k3 \parindent "ekJ"

M?\3m^-
\noindent

  !-m-JB"

6.3.3

Ym

LATEX Xgcfml"
O\Yl^
-
\hspace{length}

X J Y m = 3 1 1 " A T   {^ \hspace* O \hspace"- length 3{ek


i"3L 6.5 
5"
This\hspace{1.5cm}is a space
of 1.5 cm.

?!IK

This

is a space of 1.5 cm.

1^ indentfirst "

6.3 m

115

L 6.5: TEX "


mm
cm

millimetre 1/25 inch


centimetre = 10 mm

in

inch = 25.4 mm

pt

point 1/72 inch

em
ex

1
3

mm

approx width of an M in the current font


approx height of an x in the current font

e-)A
\stretch{n}

1"XJ \hspace{\stretch{n}} -u1@


ofm"
x\hspace{\stretch{1}}
x\hspace{\stretch{3}}x

3^Ymui5Nmk
n"L^k' em ex 5y:
{\Large{}big\hspace{1em}y}\\
{\tiny{}tin\hspace{1em}y}

6.3.4

big y
tin

Rm

3!!!!!,,mld LATEX Xg"XJ


7{3mO\ l^-Xe
\vspace{length}

-~^u1m"XJ 1AT3u
"@o^-( \vspace* 5O \vspace"
- \stretch \pagebreak (^3
^5y3R"

1

LATEX

116
Some text \ldots
\vspace{\stretch{1}}

This goes onto the last line of the page.\pagebreak


L1ml^Xe-5

\\[length]

^- \bigskip \smallskip \Rm


"

6.4

LATEX 2 #N\3 \documentclass - (paper size)"


gJ>"k
\U LATEX 

\gCUC
" 6.2 w
kUUC
"^ layout )3"
k! ,,3\m/4dw5:0c
ks
m" LATEX 5"k
n"
(u\ MS Word 5`w~d"w
w\U74 OzIO1i8"\uyz1i
L 66 "y3\ LATEX Xd"wXJ31
l\iC(J"l1m1(
C(J
"9/"
dXJ\O\Mx\3\
E(J"w`

e5w\X,,
LATEX J
-5UC
"~3
^"
3
4

macros/latex/required/tools
`Rk(7"

6.4

117

?
6

?
6

Margin
Notes

6
i

?Header
6

Body

-  9i
i
10
i

3


 1i-

?
6
i

Footer

11

one inch + \hoffset

one inch + \voffset

\oddsidemargin = 28pt

\topmargin = 23pt

\headheight = 12pt

\headsep = 18pt

\textheight = 598pt

\textwidth = 345pt

\marginparsep = 7pt

10

or \evensidemargin

9
11

\footskip = 25pt

\marginparwidth = 115pt
\marginparpush = 5pt (not shown)

\hoffset = 0pt

\voffset = 0pt

\paperwidth = 597pt

\paperheight = 845pt

6.2: "

LATEX

118
1-,


\setlength{parameter}{length}

1-,
O\

\addtolength{parameter}{length}

1-S' \setlength -^\uy


k5I(J"
O\ 1 fXe
- 

\addtolength{\hoffset}{-0.5cm}
\addtolength{\textwidth}{1cm}

\Uww calc #N\3 setlength ?


1$"$^?^/"

6.5

k

kUAT;3 LATEX ^"


Lp5"'X/
\textwidth l /T"
en-#N\G!p9"

\settoheight{variable}{text}
\settodepth{variable}{text}
\settowidth{variable}{text}

e~fw
XA^
-

6.6 f

119

\flushleft
\newenvironment{vardesc}[1]{%
\settowidth{\parindent}{#1:\ }
\makebox[0pt][r]{#1:\ }}{}
\begin{displaymath}
a^2+b^2=c^2
\end{displaymath}

a2 + b2 = c2
Where: a, b are adjoin to the right angle
of a right-angled triangle.

\begin{vardesc}{Where}$a$,
$b$ -- are adjoin to the right
angle of a right-angled triangle.

c is the hypotenuse of the


triangle and feels lonely.
d finally does not show up here

$c$ -- is the hypotenuse of

at all. Isnt that puzzling?

the triangle and feels lonely.


$d$ -- finally does not show up
here at all. Isnt that puzzling?
\end{vardesc}

6.6

LATEX ^f5"kzif

f(5cc(51"5cm
(AYk5 LATEX 
cT1"
@pS4{z
':3u
TEX fY?1"ki1Uf\Ar?
)ff", LATEX ?ni1
?nf"
3L!+vk(`5\

f"~X tabular \includegraphics -)


f"
X\tL"\Iy
ou"

LATEX

120
^Xe-rf

\parbox[pos]{width}{text}

^e

\begin{minipage}[pos]{width} text \end{minipage}

pos ei c!t b^uf


R"width ^uNf
"minipage \parbox O3u\U{3 parbox ^
k- A?3 minipage ^"
,\parbox 13SAkLATEX
3d, af-^u?nY"
))\mbox{/f3f
pl LATEX mc"ff
A(5"

\makebox[width][pos]{text}

width
)f 5"
L\D4
\width!\height!\depth \totalheight width"A
fS5" pos ic !l !r
m s !f"
- \framebox \makebox ?3u3S
x/"
e~f
\^- \makebox \framebox U

X3fSw5fU
\$f 0pt

fSNK "

6.7 I|

121

\makebox[\textwidth]{%
c e n t r a l}\par
\makebox[\textwidth][s]{%
s p r e a d}\par
\framebox[1.1\width]{Guess Im
framed now!} \par
\framebox[0.8\width][r]{Bummer,
I am too wide} \par
\framebox[1cm][l]{never

central
s

Guess Im framed now!


Bummer, I am too wide
never mind,
Can you
so am
read
I this?

mind, so am I}
Can you read this?

y3NofY
e5
SXR6"u LATEX5` "\raisebox{lift}[extend-above-baseline][extend-below-baseline]{text}

4\U
f3R5"3cn\
^ \width!\height!\depth \totalheightf
U
fS"
\raisebox{0pt}[0pt][0pt]{\Large%
\textbf{Aaaa\raisebox{-0.3ex}{a}%
\raisebox{-0.7ex}{aa}%
\raisebox{-1.2ex}{r}%
\raisebox{-2.2ex}{g}%
\raisebox{-4.5ex}{h}}}

Aaaaaaa
he shouted but not
r
even the next oneg
in line noticed that something terrible had happened
to him.
h

he shouted but not even the next


one in line noticed that something
terrible had happened to him.

6.7

I|

c\U5-
\rule[lift]{width}{height}

In normal use it produces a simple black box. ~^5{


f"
6

==YR$^,,

LATEX

122
\rule{3mm}{.1pt}%
\rule[-1mm]{5mm}{1cm}%
\rule{3mm}{.1pt}%
\rule[1mm]{1cm}{5mm}%
\rule{3mm}{.1pt}

-^5)YR^"~XIK
^ \rule -M"
A~fvkkpI"3;
| (Struts)"^5y,k(p
"\3 tabular ^|5,1kAp
"
\begin{tabular}{|c|}
\hline
\rule{1pt}{4ex}Pitprop \ldots\\
\hline
\rule{0pt}{4ex}Strut\\

Pitprop . . .
Strut

\hline
\end{tabular}

("

z
[1] Leslie Lamport. LATEX: A Document Preparation System. AddisonWesley, Reading, Massachusetts, second edition, 1994, ISBN 0-20152983-1.
[2] Donald E. Knuth. The TEXbook, Volume A of Computers and Typesetting, Addison-Wesley, Reading, Massachusetts, second edition, 1984,
ISBN 0-201-13448-9.
[3] Frank Mittelbach, Michel Goossens, Johannes Braams, David Carlisle,
Chris Rowley. The LATEX Companion, (2nd Edition). Addison-Wesley,
Reading, Massachusetts, 2004, ISBN 0-201-36299-6.
[4] Michel Goossens, Sebastian Rahtz and Frank Mittelbach. The LATEX
Graphics Companion. Addison-Wesley, Reading, Massachusetts, 1997,
ISBN 0-201-85469-4.
[5] Each LATEX installation should provide a so-called LATEX Local Guide,
which explains the things that are special to the local system. It should
be contained in a file called local.tex. Unfortunately, some lazy sysops
do not provide such a document. In this case, go and ask your local
LATEX guru for help.
[6] LATEX3 Project Team. LATEX 2 for authors. Comes with the LATEX 2
distribution as usrguide.tex.
[7] LATEX3 Project Team. LATEX 2 for Class and Package writers. Comes
with the LATEX 2 distribution as clsguide.tex.
[8] LATEX3 Project Team. LATEX 2 Font selection. Comes with the LATEX 2
distribution as fntguide.tex.

z

124

[9] D. P. Carlisle. Packages in the graphics bundle. Comes with the


graphics bundle as grfguide.tex, available from the same source
your LATEX distribution came from.
[10] Rainer Schpf, Bernd Raichle, Chris Rowley. A New Implementation
of LATEXs verbatim Environments. Comes with the tools bundle as
verbatim.dtx, available from the same source your LATEX distribution
came from.
[11] Vladimir Volovich, Werner Lemberg and LATEX3 Project Team. Cyrillic
languages support in LATEX. Comes with the LATEX 2 distribution as
cyrguide.tex.
[12] Graham Williams.

The TeX Catalogue is a very complete listing

of many TEX and LATEX related packages. Available online from


CTAN:/tex-archive/help/Catalogue/catalogue.html
[13] Keith Reckdahl. Using EPS Graphics in LATEX 2 Documents, which
explains everything and much more than you ever wanted to know
about EPS files and their use in LATEX documents. Available online
from CTAN:/tex-archive/info/epslatex.ps
[14] Kristoffer H. Rose. XY-pic Users Guide. Downloadable from CTAN
with XY-pic distribution
[15] John D. Hobby. A Users Manual for MetaPost. Downloadable from
http://cm.bell-labs.com/who/hobby/
[16] Alan Hoenig. TEX Unbound. Oxford University Press, 1998, ISBN
0-19-509685-1; 0-19-509686-X (pbk.)
[17] Urs Oswald. Graphics in LATEX 2 , containing some Java source files
for generating arbitrary circles and ellipses within the picture environment, and MetaPost - A Tutorial.
http://www.ursoswald.ch

Both downloadable from


\!, 51

A5 paper, 10

", 19

, 22

", 31

abstract, 37

"-, 31

accent, 21

"---, 31

Acrobat Reader, 77

"<, 31

acute, 22

"=, 31

\addtolength, 118

", 31

advantages of LATEX, 3
, 22

$, 45

aeguill, 78

">, 31

\(, 45

\Alph, 30

\), 45

\alph, 30

\,, 46, 51

amsbsy, 57

-, 19

amsfonts, 47, 67

, 19

amsmath, 46, 4952, 54, 55, 58

\-, 18

amssymb, 47, 59

, 19

amsthm, 56, 57

, 19
., space after, 31
. . . , 21
\:, 51

\and, 33
ansinew, 24
\appendix, 32, 33
applemac, 24

\;, 51

\ar, 102

\@, 31

\arccos, 49

\[, 45

\arcsin, 49

\\, 17, 36, 37, 39, 116

\arctan, 49

\\*, 17

\arg, 49

\], 45
~, 31

array, 52, 53
arrow symbols, 48
article class, 9

A4 paper, 10

\Asbuk, 30

126
\asbuk, 30
\author, 33, 82
B5 paper, 10
babel, 18, 22, 23, 30, 31
\backmatter, 33
backslash, 5
\backslash, 4
base font size, 10
beamer, 8486
\begin, 35, 90, 101
\bibitem, 71
bibliography, 71
\Big, 51
\big, 51
\Bigg, 51
\bigg, 51
\biggl, 55
\biggr, 55
\bigskip, 116
\binom, 49
blackboard bold, 47
block, 86
bm, 58
\bmod, 49
bold face, 110
bold symbols, 47, 57
\boldmath, 57
\boldsymbol, 58
book class, 9
braces, 50
brazilian, 25
calc, 118

center, 36
\chapter, 32
\chaptermark, 73
\ci, 105
\circle, 94
\circle*, 94
\cite, 71
CJK package, 28
\cleardoublepage, 43
\clearpage, 43
\cline, 39
color, 84
coloured text, 9
comma, 21
commands, 5
\!, 51
\(, 45
\), 45
\,, 46, 51
\-, 18
\:, 51
\;, 51
\@, 31
\[, 45
\\, 17, 36, 37, 39, 116
\\*, 17
\], 45
\addtolength, 118
\Alph, 30
\alph, 30
\and, 33
\appendix, 32, 33
\ar, 102

\caption, 42, 43

\arccos, 49

\cdot, 48

\arcsin, 49

\cdots, 51

\arctan, 49

127

\arg, 49

\date, 33

\Asbuk, 30

\ddots, 51

\asbuk, 30

\deg, 49

\author, 33, 82

\depth, 120, 121

\backmatter, 33

\det, 49

\backslash, 4

\dim, 49

\begin, 35, 90, 101

\displaystyle, 55

\bibitem, 71

\documentclass, 9, 13, 17

\Big, 51

\dq, 27

\big, 51

\dum, 105

\Bigg, 51

\emph, 34, 110

\bigg, 51

\end, 35, 90

\biggl, 55

\enumBul, 30

\biggr, 55

\enumEng, 30

\bigskip, 116

\enumLat, 30

\binom, 49

\eqref, 46

\bmod, 49

\EURtm, 20

\boldmath, 57

\exp, 49

\boldsymbol, 58

\fbox, 19

\caption, 42, 43

\flq, 27

\cdot, 48

\flqq, 27

\cdots, 51

\foldera, 99

\chapter, 32

\folderb, 99

\chaptermark, 73

\footnote, 34, 43

\ci, 105

\footskip, 117

\circle, 94

\frac, 49

\circle*, 94

\framebox, 120

\cite, 71

\frenchspacing, 30, 31

\cleardoublepage, 43

\frontmatter, 33

\clearpage, 43

\frq, 27

\cline, 39

\frqq, 27

\cos, 49

\fussy, 17

\cosh, 49

\gcd, 49

\cot, 49

\headheight, 117

\coth, 49

\headsep, 117

\csc, 49

\height, 120, 121

128
\hline, 39

\linethickness, 96, 97, 99

\hom, 49

\listoffigures, 42

\href, 81, 82, 84

\listoftables, 42

\hspace, 107, 114

\ln, 49

\hyphenation, 18

\log, 49

\idotsint, 52

\mainmatter, 33, 82

\ifpdf, 83

\makebox, 120

\ignorespaces, 107

\makeindex, 72

\ignorespacesafterend, 107

\maketitle, 33

\iiiint, 52

\marginparpush, 117

\iiint, 52

\marginparsep, 117

\iint, 52

\marginparwidth, 117

\include, 13, 14

\mathbb, 47

\includegraphics, 70, 79, 83,

\mathrm, 55

119

\max, 49

\includeonly, 14

\mbox, 18, 19, 21, 120

\indent, 114

\min, 49

\index, 72, 73

\multicolumn, 40

\inf, 49

\multiput, 91, 96

\input, 14

\newcommand, 106

\int, 50

\newenvironment, 107

\item, 35

\newline, 17

\ker, 49

\newpage, 17

\label, 33, 46

\newsavebox, 98

\LaTeX, 19

\newtheorem, 55, 56

\LaTeXe, 19

\newtheoremstyle, 56

\ldots, 21, 51

\noindent, 114

\left, 50, 51

\nolinebreak, 17

\leftmark, 73

\nonumber, 54

\lg, 49

\nopagebreak, 17

\lim, 49

\not, 60

\liminf, 49

\oddsidemargin, 117

\limsup, 49

\oval, 97, 99

\line, 92, 99

\overbrace, 48

\linebreak, 17

\overleftarrow, 48

\linespread, 113

\overline, 48

129

\overrightarrow, 48

\sec, 49

\pagebreak, 17

\section, 32, 43

\pageref, 33, 76

\sectionmark, 73

\pagestyle, 11

\selectlanguage, 23

\paperheight, 117

\setlength, 90, 114, 118

\paperwidth, 117

\settodepth, 118

\par, 110

\settoheight, 118

\paragraph, 32

\settowidth, 118

\parbox, 120

\sin, 49

\parindent, 114

\sinh, 49

\parskip, 114

\sloppy, 17

\part, 32

\smallskip, 116

\phantom, 43, 54

\sqrt, 48

\pmod, 49

\stackrel, 50

\Pr, 49

\stretch, 107, 115

\printindex, 73

\subparagraph, 32

\prod, 50

\subsection, 32

\protect, 43

\subsectionmark, 73

\providecommand, 106

\substack, 50

\ProvidesPackage, 109

\subsubsection, 32

\put, 9195, 97, 98

\sum, 50

\qbezier, 89, 91, 100

\sup, 49

\qedhere, 57

\tableofcontents, 32

\qquad, 46, 51

\tan, 49

\quad, 46, 51

\tanh, 49

\raisebox, 121

\TeX, 19

\ref, 33, 46, 76

\texorpdfstring, 83

\renewcommand, 106

\textcelsius, 20

\renewenvironment, 107

\texteuro, 20

\right, 5052

\textheight, 117

\right., 51

\textrm, 55

\rightmark, 73

\textstyle, 55

\rule, 107, 121, 122

\textwidth, 117

\savebox, 98

\thicklines, 93, 97, 99

\scriptscriptstyle, 55

\thinlines, 97, 99

\scriptstyle, 55

\thispagestyle, 11

130
\title, 33

\ddots, 51

\tnss, 106

\deg, 49

\today, 19

degree symbol, 20

\topmargin, 117

delimiters, 50

\totalheight, 120, 121


\underbrace, 48
\underline, 34, 48
\unitlength, 90, 93
\usebox, 98

\depth, 120, 121


description, 35
\det, 49
Deutsch, 26
\dim, 49

\usepackage, 11, 20, 23, 24, 109 dimensions, 114


\vdots, 51
\vec, 48

displaymath, 45
\displaystyle, 55

\vector, 93

doc, 12

\verb, 38

document font size, 10

\verbatiminput, 75

document title, 10

\vspace, 115

\documentclass, 9, 13, 17

\widehat, 48

dotless and , 22

\widetilde, 48

double line spacing, 113

\width, 120, 121

double sided, 10

\xymatrix, 102
comment, 6
comments, 5
\cos, 49
\cosh, 49
\cot, 49
\coth, 49
cp1251, 24
cp850, 24
cp866nav, 24
cross-references, 33
\csc, 49
curly braces, 5, 110
dash, 19
\date, 33

\dq, 27
\dum, 105
eepic, 89, 94
ellipsis, 21
em-dash, 19
\emph, 34, 110
empty, 11
en-dash, 19
Encapsulated PostScript, 69, 79
encodings
font
LGR, 24
OT1, 24
T1, 24, 30
T2*, 30

DC font, 18

T2A, 24, 30

dcolumn, 40

T2B, 24

131
T2C, 24

minipage, 120

X2, 24

parbox, 120

input

picture, 89, 90, 94, 95

ansinew, 24

proof, 57

applemac, 24

pspicture, 89

cp1251, 24

quotation, 37

cp850, 24

quote, 37

cp866nav, 24

subarray, 50

koi8-ru, 24, 30

table, 41, 42

latin1, 24

tabular, 38, 119

macukr, 24

thebibliography, 71

utf8x, 24

verbatim, 38, 75

\end, 35, 90

verse, 37

\enumBul, 30

epic, 89

\enumEng, 30

eqnarray, 53

enumerate, 35
\enumLat, 30

\eqref, 46
equation, 46

environment, 35

equation system, 53

environments

eurosym, 20

abstract, 37
array, 52, 53
block, 86

\EURtm, 20
executive paper, 10
\exp, 49

center, 36

exponent, 48

comment, 6

exscale, 12, 51

description, 35

extension, 11

displaymath, 45

.aux, 13

enumerate, 35

.cls, 13

eqnarray, 53

.dtx, 13

equation, 46

.dvi, 13

figure, 41, 42

.fd, 13

flushleft, 36

.idx, 13

flushright, 36

.ilg, 13

frame, 86

.ind, 13

itemize, 35

.ins, 13

lscommand, 105

.lof, 13

math, 45

.log, 13

132
.lot, 13

\textrm, 110

.sty, 11

\textsc, 110

.tex, 8, 11

\textsf, 110

.toc, 13

\textsl, 110

fancyhdr, 73, 74
\fbox, 19
figure, 41, 42
floating bodies, 40
\flq, 27
\flqq, 27
flushleft, 36
flushright, 36
foiltex, 9
\foldera, 99
\folderb, 99
font, 109
\footnotesize, 110
\Huge, 110
\huge, 110
\LARGE, 110
\Large, 110
\large, 110
\mathbf, 111
\mathcal, 111
\mathit, 111
\mathnormal, 111
\mathrm, 111
\mathsf, 111
\mathtt, 111
\normalsize, 110
\scriptsize, 110
\small, 110
\textbf, 110
\textit, 110
\textmd, 110
\textnormal, 110

\texttt, 110
\textup, 110
\tiny, 110
font encoding, 12
font encodings, 24
LGR, 24
OT1, 24
T1, 24, 30
T2*, 30
T2A, 24, 30
T2B, 24
T2C, 24
X2, 24
font size, 109, 110
fontenc, 12, 24, 30
footer, 11
\footnote, 34, 43
\footnotesize, 110
\footskip, 117
formulae, 45
\frac, 49
fraction, 49
fragile commands, 43
frame, 86
\framebox, 120
French, 25
\frenchspacing, 30, 31
\frontmatter, 33
\frq, 27
\frqq, 27
\fussy, 17
\gcd, 49


geometry, 75

133
ifthen, 12

German, 23, 26

\ignorespaces, 107

GhostScript, 69

\ignorespacesafterend, 107

graphics, 9, 69

\iiiint, 52

graphicx, 69, 79, 84

\iiint, 52

grave, 22

\iint, 52

Greek, 29

\include, 13, 14

Greek letters, 47

\includegraphics, 70, 79, 83, 119

grouping, 110

\includeonly, 14
\indent, 114

HLATEX, 28

indentfirst, 114

hLATEXp, 28

index, 72

header, 11
\headheight, 117
textttheadings, 11
\headsep, 117

\index, 72, 73
\inf, 49
\input, 14
input encodings

\height, 120, 121

ansinew, 24

\hline, 39

applemac, 24

\hom, 49

cp1251, 24

horizontal

cp850, 24

brace, 48

cp866nav, 24

dots, 51

koi8-ru, 24, 30

line, 48

latin1, 24

space, 114

macukr, 24

\href, 81, 82, 84

utf8x, 24

\hspace, 107, 114

input file, 6

\Huge, 110

inputenc, 12, 23, 30

\huge, 110

\int, 50

hyperref, 77, 80, 83, 84

integral operator, 50

hypertext, 76

international, 22

hyphen, 19

italic, 110

hyphenat, 75
\hyphenation, 18
\idotsint, 52
ifpdf, 83
\ifpdf, 83

\item, 35
itemize, 35
\ker, 49
Knuth, Donald E., 1
koi8-ru, 24, 30

134
Korean, 27

\ln, 49

Korean font

\log, 49

UHC font, 28
Korean input files, 27
\label, 33, 46
Lamport, Leslie, 1
language, 22
\LARGE, 110

long equations, 53
longtabular, 40
lscommand, 105
macukr, 24
\mainmatter, 33, 82
\makebox, 120

\Large, 110

makeidx, 12, 72

\large, 110

makeidx package, 72

\LaTeX, 19
LAT

EX3, 3
\LaTeXe, 19

\makeindex, 72
makeindex program, 72
\maketitle, 33

latexsym, 12

\marginparpush, 117

latin1, 24

\marginparsep, 117

layout, 116

\marginparwidth, 117

\ldots, 21, 51

marvosym, 20

\left, 50, 51

math, 45

left aligned, 36
\leftmark, 73

math font size, 55


math spacing, 51

legal paper, 10

\mathbb, 47

letter paper, 10

\mathbf, 111

\lg, 49
LGR, 24
ligature, 21

\mathcal, 111
mathematical
accents, 48

\lim, 49

delimiter, 51

\liminf, 49

functions, 49

\limsup, 49

minus, 19

\line, 92, 99

mathematics, 45

line break, 17

\mathit, 111

line spacing, 113

\mathnormal, 111

\linebreak, 17
\linespread, 113
\linethickness, 96, 97, 99
\listoffigures, 42
\listoftables, 42

\mathrm, 55, 111


mathrsfs, 67
\mathsf, 111
mathtext, 30
\mathtt, 111

135

\max, 49

\overleftarrow, 48

\mbox, 18, 19, 21, 120

\overline, 48

META O T, 79, 80
\min, 49
minimal class, 9
minipage, 120
minus sign, 19
Mittelbach, Frank, 1
mltex, 78
mltex, 78
modulo function, 49
\multicolumn, 40
\multiput, 91, 96

\overrightarrow, 48
package, 6, 9, 105
packages
aeguill, 78
amsbsy, 57
amsfonts, 47, 67
amsmath, 46, 4952, 54, 55, 58
amssymb, 47, 59
amsthm, 56, 57
babel, 18, 22, 23, 30, 31
beamer, 8486

\newcommand, 106

bm, 58

\newenvironment, 107

calc, 118

\newline, 17

color, 84

\newpage, 17

dcolumn, 40

\newsavebox, 98

doc, 12

\newtheorem, 55, 56

eepic, 89, 94

\newtheoremstyle, 56

epic, 89

\noindent, 114

eurosym, 20

\nolinebreak, 17

exscale, 12, 51

\nonumber, 54

fancyhdr, 73, 74

\nopagebreak, 17

fontenc, 12, 24, 30

\normalsize, 110

geometry, 75

\not, 60

graphicx, 69, 79, 84


hyperref, 77, 80, 83, 84

\oddsidemargin, 117

hyphenat, 75

, 22

ifpdf, 83

one column, 10

ifthen, 12

option, 9

indentfirst, 114

optional parameters, 5

inputenc, 12, 23, 30

OT1, 24

latexsym, 12

\oval, 97, 99

layout, 116

\overbrace, 48

longtabular, 40

overfull hbox, 17

makeidx, 12, 72

136
marvosym, 20

PDF, 76

mathrsfs, 67

PDFLATEX, 86

mathtext, 30

pdfLATEX, 77, 84

mltex, 78

pdfLATEX, 77

ppower4, 86

pdfTEX, 77
period, 21

prosper, 86
pstricks, 89, 94

\phantom, 43, 54

pxfonts, 78

picture, 89, 90, 94, 95

showidx, 73

placement specifier, 41

supertabular, 40

plain, 11

syntonly, 12, 14

\pmod, 49

textcomp, 20

Portugus, 25

txfonts, 78

Portuguese, 25

ucs, 24

PostScript, 3, 8, 28, 69, 77, 78, 89,


90

verbatim, 6, 75
xy, 101
page layout, 116
page style, 11
empty, 11
headings, 11
plain, 11
\pagebreak, 17
\pageref, 33, 76
\pagestyle, 11
paper size, 10, 116
\paperheight, 117
\paperwidth, 117
\par, 110
paragraph, 15
\paragraph, 32
parameter, 5
\parbox, 120
parbox, 120

Encapsulated, 69, 79
ppower4, 86
\Pr, 49
preamble, 6
prime, 48
\printindex, 73
proc class, 9
\prod, 50
product operator, 50
proof, 57
prosper, 86
\protect, 43
\providecommand, 106
\ProvidesPackage, 109
pspicture, 89
pstricks, 89, 94
\put, 9195, 97, 98
pxfonts, 78

\parindent, 114

\qbezier, 89, 91, 100

\parskip, 114

\qedhere, 57

\part, 32

\qquad, 46, 51


\quad, 46, 51

137
slides class, 9

quotation, 37

\sloppy, 17

quotation marks, 19

\small, 110

quote, 37

Small Caps, 110


\smallskip, 116

\raisebox, 121

space, 4

\ref, 33, 46, 76

special character, 21

\renewcommand, 106
\renewenvironment, 107
report class, 9
reserved characters, 4
\right, 5052
right-aligned, 36

\sqrt, 48
square brackets, 5
square root, 48
\stackrel, 50
\stretch, 107, 115
structure, 6

\right., 51

Struts, 122

\rightmark, 73

subarray, 50

roman, 110
\rule, 107, 121, 122
sans serif, 110
\savebox, 98
Scandinavian letters, 22
\scriptscriptstyle, 55
\scriptsize, 110
\scriptstyle, 55
\sec, 49
\section, 32, 43
\sectionmark, 73
\selectlanguage, 23

\subparagraph, 32
subscript, 48
\subsection, 32
\subsectionmark, 73
\substack, 50
\subsubsection, 32
\sum, 50
sum operator, 50
\sup, 49
superscript, 50
supertabular, 40
syntonly, 12, 14

\setlength, 90, 114, 118

T1, 24, 30

\settodepth, 118

T2*, 30

\settoheight, 118

T2A, 24, 30

\settowidth, 118

T2B, 24

showidx, 73
\sin, 49
single sided, 10
\sinh, 49
slanted, 110

T2C, 24
table, 38
table, 41, 42
table of contents, 32
\tableofcontents, 32

138
tabular, 38, 119
\tan, 49
\tanh, 49
\TeX, 19
\texorpdfstring, 83
\textbf, 110
\textcelsius, 20
textcomp, 20
\texteuro, 20
\textheight, 117
\textit, 110
\textmd, 110
\textnormal, 110
\textrm, 55, 110

txfonts, 78
ucs, 24
umlaut, 22
\underbrace, 48
underfull hbox, 17
\underline, 34, 48
\unitlength, 90, 93
units, 114, 115
upright, 110
URL, 20
\usebox, 98
\usepackage, 11, 20, 23, 24, 109
utf8x, 24

\textsc, 110

\vdots, 51

\textsf, 110

\vec, 48

\textsl, 110

\vector, 93

\textstyle, 55
\texttt, 110

vectors, 48
\verb, 38

\textup, 110

verbatim, 6, 75

\textwidth, 117

verbatim, 38, 75

thebibliography, 71
\thicklines, 93, 97, 99
\thinlines, 97, 99
\thispagestyle, 11
three dots, 51
tilde, 20, 48
tilde ( ~), 31
\tiny, 110
title, 10, 33

\verbatiminput, 75
verse, 37
vertical
dots, 51
vertical space, 115
\vspace, 115
whitespace
after commands, 5
at the start of a line, 4

\title, 33

\widehat, 48

\tnss, 106

\widetilde, 48

\today, 19

\width, 120, 121

\topmargin, 117

Word, 73

\totalheight, 120, 121

www, 20

two column, 10

WYSIWYG, 2, 3


X2, 24
Xpdf, 77
xy, 101
\xymatrix, 102

139

140

You might also like