Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Version 1.0
2004
................................. 1
1.1
Knuth
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
LAT
1.2
EX
LATEX
1.3
1.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
...................................... 7
2.1
Unix-like
2.2
MS Windows
2.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2.1 cygwin
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Mac OS X
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TEX/LATEX
. . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4
2.5
2.5.1 Vim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5.2 GNU Emacs/XEmacs . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5.3 NEdit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5.4 WinEdt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5.5 UltraEdit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.5.6 Kile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
TEX/LATEX
3.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
LATEX
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.1.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2
LATEX
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.3
LATEX
. . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.4
3.3.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.3.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.3.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . 17
LAT
EX
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
3.4.1
environment
3.4.2
LATEX
3.4.3 preamble
3.4.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
. . . . . . . . . . . . . . . . . . . . . . . . . 21
. . . . . . . . . . . . . . . . . . . . . . . . . 22
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.1.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.1.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4.3
title page
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4.4
Table of Contents
4.5
abstract
4.6
. . . . . . . . . . . . . . . . . . . . . . . . . . 29
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.6.1
Footnote
4.6.2
Marginal note
4.7
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
. . . . . . . . . . . . . . . . . . . . . . . . . . . 31
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
4.7.1 LATEX
4.7.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . 32
. . . . . . . . . . . . . . . . . . . . . . 34
4.7.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.7.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
4.8
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.8.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
4.8.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
4.9
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.1
LATEX
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.1.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.1.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.2.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
5.2.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.3.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
5.3.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
5.3.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
5.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
5.5
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
5.5.1
itemize
. . . . . . . . . . . . . . . . . . . . . . . . . 52
5.5.2
enumerate
. . . . . . . . . . . . . . . . . . . . . . . . 53
5.5.3
description
. . . . . . . . . . . . . . . . . . . . . . . 53
ii
5.6
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
5.6.1
rule
5.6.2
5.6.3
5.6.4
LATEX
6.1
LATEX
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
underline
box
. . . . . . . . . . . . . . . . . . . . . . . . . . . 55
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
6.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
6.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
7.1
7.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
LAT
. . . . . . . . . . . . . . . . . . . . . . . . . 63
EX
7.2.1 alltt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
7.2.2 doc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
7.2.3 exscale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
7.2.4 fontenc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
7.2.5 graphpap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
7.2.6 ifthen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
7.2.7 inputenc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
7.2.8 latexsym . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
7.2.9 makeidx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
7.2.10 newlfont. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
7.2.11 oldlfont . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
7.2.12 showidx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
7.2.13 syntonly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.2.14 tracefnt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.3
LATEX
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.3.1 AMS-LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.3.2 babel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
7.3.3 cyrillic. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
7.3.4 graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
7.3.5 psnfss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
7.3.6 array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
7.3.7 calc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.3.8 dcolumn. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.3.9 delarray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.3.10 hhline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.3.11 longtable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.3.12 tabularx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
iii
7.3.13 afterpage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
7.3.14 bm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
7.3.15 enumerate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
7.3.16 fontsmpl. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
7.3.17 ftnright . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
7.3.18 indentfirst . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
7.3.19 layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
7.3.20 multicol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
7.3.21 rawfonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
7.3.22 somedefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
7.3.23 showkeys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
7.3.24 varioref . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
7.3.25 verbatim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
7.3.26 xr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
7.3.27 xspace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.3.28 theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
7.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
8.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
8.2
tabbing
8.3
tabular
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
8.3.1 tabular
. . . . . . . . . . . . . . . . . . . . . . . . . . 79
8.3.2 tabular
. . . . . . . . . . . . . . . . . . . . . . . . . 80
8.4
array
8.5
tabularx
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
8.6
booktabs
8.7
colortbl
8.7.1 color
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
8.7.2 colortbl
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
8.8
threeparttable
8.9
dcolumn
8.10
. . . . . . . . . . . . . . . . . . . . . . . . 85
longtable
. . . . . . . . . . . . . . . . . . . . . . . . . . 88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
8.10.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
8.10.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
8.11
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
8.11.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
8.11.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
iv
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
9.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
9.1.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
9.1.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
9.2
9.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
9.2.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
9.2.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
9.2.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
picture
9.3.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
picture
9.3.2 picture
. . . . . . . . . . . . . . . . . . . . . . . . . . 100
9.3.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
9.3.4 epic
9.4
. . . . . . . . . . . . . . . . . . . . . . . . . 104
PSTricks
PDFTricks
. . . . . . . . . . . . . . . . . . . . . . . . . 105
9.4.1 PSTricks
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
9.4.2 PDFTricks
9.5
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
METAPOST
9.5.1
. . . . . . . . . . . . . . . . . . . . . . 108
METAPOST
9.5.2 METAPOST
. . . . . . . . . . . . . . . . . . . . . . . . . 109
9.5.3 METAPOST
. . . . . . . . . . . . . . . . . . . . . . . 110
9.5.4 METAPOST
. . . . . . . . . . . . . . . . . . . . . . . . 112
9.5.5
LATEX
9.5.6
METAPOST
9.5.7
9.6
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
. . . . . . . . . . . . . . . . . . . . . . . . . 116
. . . . . . . . . . . . . . . . . . . . . . . . . 119
METAPOST
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
9.6.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
9.6.2 includegraphics
. . . . . . . . . . . . . . . . . . . . . . 121
9.6.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
9.6.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122
9.6.5
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
10
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
10.1
math mode
. . . . . . . . . . . . . . . . . . . . . . . 125
10.1.1
. . . . . . . . . . . . . . . . . . . . . . . 126
10.1.2
. . . . . . . . . . . . . . . . . . . . . . . 127
10.1.3
. . . . . . . . . . . . . . . . . . . . . . . . 127
10.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
10.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
10.3.1
10.3.2
fraction
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
10.3.3
10.4
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
array
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
10.4.1
10.5
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
10.5.1
LATEX
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
10.5.2 amsthm
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
10.6
. . . . . . . . . . . . . . . . . . . . . . . . . . . 136
10.6.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
10.6.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
11
. . . . . . . . . . . . . . . . . . . . . . . . . 138
11.1
Contents
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
11.1.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
11.1.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
11.1.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
11.2
Cross References
11.2.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
11.2.2
11.3
. . . . . . . . . . . . . . . . . . . . . . . . . . 140
hyperlink
index
. . . . . . . . . . . . . . . . . . . . . . . . 141
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
11.3.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
11.3.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
11.3.3
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
11.4
Bibliography
11.4.1 thebibliography
11.4.2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
. . . . . . . . . . . . . . . . . . . . . . . . . . . 144
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
11.4.3 BibTEX
11.5
Appendix
11.5.1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
11.6
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
11.6.1 input
11.7
12
13 GNU
include
crop marks
. . . . . . . . . . . . . . . . . . . . . . . . . . 150
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
. . . . . . . . . . . . . . . . . . . . . . . . . . . 154
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
vi
TEX
Donald E. Knuth1
Knuth
TAOCP(The
Knuth
TEX
TEX
20
1.1 Knuth
1938.01.10
1956
1960
1961.06.24
1963
1968
Ph.D.
Stanford
(Computer Science)
TAOCP(The Art of Computer Programming)
:)
TAOCP
TEX
TAOCP
1977
1986
1
ACM
http://www-cs-faculty.stanford.edu/~knuth/
1.1. KNUTH
$2.56
:-)
$2.56 Knuth
$655.36(216 pennies)
TEX
Unicode
GNU/Linux
GNU/Linux
Unicode
1996
(Free Software)3
Richard M. Stallman
TEX
WEB
literate programming
WWW Web
C
CWEB4
Silvio Levy
TEX
WEB
WEB
Pascal
literate
code
Knuth
1992
Stanford/Oxford
TAOCP
TAOCP
5
email
2
http://www.fsf.org
http://www.gnu.org/philosophy/free-sw.html
4
http://www-cs-faculty.stanford.edu/~knuth/cweb.html
5
http://www-cs-faculty.stanford.edu/~knuth/email.html
3
20
1.2.
LATEX
Knuth
1996
Informatica, CWI)
Knuth
TEX
NTG
:-)
2.
3.
4.
Combinatorial Algorithms
(a)
(b)
(c)
ISBN 0-201-89683-4
ISBN 0-201-89684-2
ISBN 0-201-89685-0
5.
Syntactic Algorithms
2010
6.
7.
Compiler techniques
http://www-cs-staff.stanford.edu/~knuth/taocp.html
1.2
LATEX
TEX
macro
6
http://www.ntg.nl
1.3.
TEX
macro
LATEX
Knuth
Leslie Lamport7
Plain TEX
LATEX
macro
TEX/LATEX
LATEX
TEX
LATEX
TEX
TEX macro
LATEX
TEX macro
eplain
LATEX
HTML markup
HTML
HTML
:-)
1.3
LATEX
Peter Flynn
LATEX
TEX
OpenType, TrueType, Adobe Type1
Knuth
METAFONT
LATEX
TEX/LATEX
LATEX
Knuth
Unix-like
10
TEX
Leslie Lamport
1985
CSL
LATEX
DEC Systems Research Center
A
L TEX
8
http://www.latex-project.org/latex3.html
9
ftp://ftp.dante.de/tex-archive/info/beginlatex/beginlatex.pdf
10
Knuth
Public Domain
TEX
TEX
TEX
American Mathematical Society, AMS
7
1.3.
LATEX
MS DOS, OS/2, MS
Windows, Mac OS, Unix-like
Sharp Zaurus
LATEX
TEX
TEX/LATEX
LATEX Project11
packages
SGML/XML/HTML
news://comp.text.tex
CTAN12
LATEX
WYSIWYG
dvi/ps/pdf
GUI
LyX13 , TEXmacs14
LATEX
TEX/LATEX programmer
Oce
MS Windows
LATEX
Knuth
:-)
TEX
TEX
XML
formatter
TEX/LATEX
11
http://www.latex-project.org/
http://tug.ctan.org/
13
http://www.lyx.org/
14
http://www.texmacs.org/
12
1.4.
1.4
TEX/LATEX
TEX macro
pre/post
LATEX
package/macro
LATEX
macro
LATEX
LATEX
package/macro
TEX/LATEX
TEX/LATEX
TEX/LATEX
TEX
teTEX
Windows
MiKTEX
TUG(TEX User Group)2
TEX
Un*x
TEX Live CD1
fpTEX
TEX
LATEX
METAFONT
METAPOST
TEX
tex
Knuth
plain TEX
latex
TEX
LATEX
LATEX
2.1 Unix-like
Unix-like
GNU/Linux
teTEX
distribution
tetex
FreeBSD
packages
packages
http://www.tug.org/teTeX
ftp://cam.ctan.org/tex-archive/systems/unix/teTeX
ftp://tug.ctan.org/tex-archive/systems/unix/teTeX
ftp://dante.ctan.org/tex-archive/systems/unix/teTeX
1
2
http://tug.org/texlive/
http://www.tug.org/
TEX Live CD
2.2. MS WINDOWS
2.2 MS Windows
free
MiKTEX
fpTEX
Un*x
teTEX
Windows
http://www.miktex.org/
http://www.fptex.org/
2.2.1 cygwin
Windows
Un*x
Unix-like
Linux-like
Unix-like
teTEX
Unix-like
Unix-like
Windows
http://sources.redhat.com/cygwin
http://sources.redhat.com/cygwin/setup.exe
setup.exe
teTEX
CJK
cygwin
seventeen
http://seventeen.mit.edu/blog/17/archives/000141.html
2.3 Mac OS X
Mac OS X
Un*x
distribution
Mac OS X
teTEX
[
]MacOS 10.2.4
teTeX
http://www.rna.nl/tex.html
http://www.cs.wright.edu/~jslater/mac-tex/mac-tex-intro/mac-tex-intro.pdf
TEXShop
http://www.uoregon.edu/~koch/texshop/texshop.html
iTEXMac
http://itexmac.sourceforge.net/
2.4.
2.4
TEX/LATEX
TEX/LATEX
free
TEX Live CD
TUG
iso
TEX
TEX/LATEX
TrueTEX
TurboTEX
Y&Y TEX
pcTEX
VTEX
Scientific Word
Textures
OzTEX
Scientific Assistant
http://www.truetex.com/
http://www.truetex.com/
http://www.YandY.com/
http://www.pctex.com/
http://www.micropress-inc.com/
http://www.sciword.demon.co.uk
http://www.bluesky.com/
http://www.trevorrow.com/oztex/
http://www.advanced-science.com/
2.5
TEX/LATEX
TEX/LATEX
TEX/LATEX
LATEX
Windows
Un*x, DOS, Windows
Windows
Windows
Windows, Linux, OS/2
Windows
Macintosh
Mac OS X
Mac OS X
2.5.
2.5.1 Vim
http://www.vim.org/
vim-latex suite
http://vim-latex.sourceforge.net/
http://www.gnu.org/software/emacs/emacs.html
http://www.xemacs.org
2.5.3 NEdit
AUCTEX
Un*x
http://nedit.org
2.5.4 WinEdt
shareware
Windows
http://home.istar.ca/~winedt
2.5.5 UltraEdit
shareware
Windows
http://www.ultraedit.com
3
http://www.gnu.org/software/auctex/
10
Knuth
2.5.
2.5.6 Kile
LATEX
Qt/KDE
http://kile.sourceforge.net/
11
3
TEX/LATEX
markup
LATEX
LATEX
TEX/LATEX
TEX
3.1 LATEX
.tex
latex
latex your.tex
makeindex
latex
bibtex
latex
12
TEX/LATEX
3.2. LATEX
latex
your.dvi
PostScript
ps2pdf
your.tex
dvipdfm[x]
PostScript
dvips
PDF
pdflatex
3.1.1
latex
ps
your.tex
dvips
ps2pdf
pdf
dvipdfm[x] pdflatex
3.2 LATEX
TEX/LATEX
\, backslash
\LaTeX
LATEX
LATEX
256
13
28
TEX/LATEX
3.3. LATEX
TEX/LATEX
*.log
log
your.tex
your.log
LATEX
$\backslash$
\%
\#
\~{}
\$
\_{}
\^{}
\{
\}
$<$
$>$
$|$
\&
\
%
#
{
}
<
>
|
&
OT1
\textbackslash
NA
NA
\textasciitilde
\textdollar
\textunderscore
\textasciicircum
\textbraceleft
\textbraceright
\textless
\textgreater
\textbar
NA
3.3 LATEX
LATEX
3.3.1
em-square
em-square
glyph
em-square
em-square
glyph
glyph
reference point
baseline
Q
14
TEX/LATEX
3.3. LATEX
y j
cap height
yZ
mean line
x-height
reference point
baseline
depth
width
depth
height
cap height
x-height
width
totalheight
height
depth
cap height
mean line
mean line
baseline
x-height
ex
x-height
em-square
glyph
reference point
baseline
1
15
TEX/LATEX
3.3. LATEX
3.3.2
1. LATEX
\
[ ]
{ }
LATEX
2. LATEX
LATEX
Enter
3.
Enter
LATEX
word
Enter
Enter
4.
LATEX
LATEX
LATEX
LATEX
5. LATEX
noindent
indent
6. LATEX
This is my first \LaTeX typesetting example.
\LaTeX
This is my first LATEXtypesetting example.
LATEX
typesetting
\
16
LATEX
TEX/LATEX
3.3. LATEX
7.
LATEX
LATEX
This is my fisrt \LaTeX\ document. Give \LaTeX\ a%
try.
try
This is my fisrt LATEX document. Give LATEX a try.
Enter
%
LATEX
LATEX
TEX/LATEX
8.
3.3.3
1.
grave accent
apostrophe
Esc
F1
Enter
"
ditto marks
Please press an Esc key.
Please press an Esc key.
This sentence.
"This sentence."
17
TEX/LATEX
3.3. LATEX
2. LATEX
.
?
:
document.
Give
LATEX
I am Mr. Edward G.J. Lee, G.J. is a abbreviation of my name.
I am Mr.~Edward G.J. Lee, G.J. is a abbreviation of my name.
I am Mr.\ Edward G.J. Lee, G.J. is a abbreviation of my name.
Mr.\ Edward
Mr.~Edward
TEX
tie
Mr.
Dr. etc.
e.g. i.e.
G.J.
vs.
Fig. cf.
Edward
Mrs.
LATEX
Well
:-)
18
TEX/LATEX
3.3. LATEX
Knuth
Please
see Appendix A.
...Appendix A\null.
...Appendix A\@.
\null
Please see Appendix A. We will be there soon.
Please see Appendix A\null. We will be there soon.
HTML
PDF
Landscape
LATEX
3.
\ldots
\dots
0xa14b U+2026
Unicode
Big-
MIDLINE HORIZONTAL
ELLIPSIS(U+22EF)
Unicode
U+22EF
19
Big-5
TEX/LATEX
3.3. LATEX
4.
hyphen
dash
father-in-low
fater-in-low
en-dash
hyphen
1991--2003
19912003
em-dash
dash
hyphen
I ama good man.
$-5$
TEX/LATEX
en-dash
0xa158
2
em-dash
en-dash
20
Big-5
TEX/LATEX
3.4. LATEX
5.
LATEX
LATEX
LATEX
:
3.4 LATEX
3.4.1
environment
LATEX
environment
\begin{
LATEX
\end{
\begin{document}
document
3.4.2
LATEX
LATEX
\documentclass{article}
preamble
21
\end{document}
TEX/LATEX
3.4. LATEX
\begin{document}
\end{document}
LATEX
\documentclass{article}
6
article
preamble
preamble
preamble
latex example.tex
dvips example.dvi
=>
dvipdfm[x] example.dvi =>
pdflatex example.tex
=>
ps
pdf
.tex
3.4.3 preamble
preamble
3.4.3.1
LATEX
TEX
\documentclass{article}
\usepackage{color}
\begin{document}
\textcolor{blue}{This is blue color.}
\end{document}
22
example.ps
.pdf
TEX/LATEX
3.4. LATEX
color package
TEX/LATEX macro
macro
package
LATEX
TEX
LATEX
7
3.4.3.2
preamble
\linespread{1.36}
\parindent=0pt
1.36
\linespread
baseline
\parindent
LATEX
LATEX
3.4.4
LATEX
LATEX
23
TEX/LATEX
3.4. LATEX
\part{}
\chapter{}
\section{}
\subsection{}
\subsubsection{}
\paragraph{}
\subparagraph{}
1
0
1
2
3
4
5
article
LATEX
secnumdepth
3
2 article
book/report
book/report
subsection
\subsection{}
article
\subsubsection{}
LATEX
LATEX
secnumdepth
preamble
% let the depth of report to subsubsection
\setcounter{secnumdepth}{3}
report
subsubsection
LATEX
24
:-)
HTML
PDF
PDF
4.1
report
article
chapter
% example1.tex
\documentclass{report}
\begin{document}
This is my first {\LaTeX} typesetting example.\\
This is my first \LaTeX{} typesetting example.\\
This is my first \LaTeX\ typesetting example.\\
I am Mr. Edward G.J. Lee, G.J. is a abbreviation of my name.\\
I am Mr.\ Edward G.J. Lee, G.J. is a abbreviation of my name.\\
Please see Appendix A. We will be there soon.\\
Please see Appendix A\null. We will be there soon.
\end{document}
25
4.1.
exmaple1.tex
latex example1.tex
dvips -Ppdf example1.dvi
ps2pdf example1.ps
dvipdfm[x] example1.dvi
pdflatex example1.tex
=>
=>
=>
=>
=>
example1.dvi
example1.ps
example1.pdf
example1.dvi
example1.tex
example1.pdf
example1.pdf
PDF
http://edt1023.sayya.org/tex/latex123/example1.tex
http://edt1023.sayya.org/tex/latex123/example1.pdf
4.1.1
LATEX
\\
\\
\newline
\\
\newline
1cm
1cm
\linebreak[n]
14
Please
see
Appendix
A.
We
Please see Appendix A. We will be there soon.
will
4.1.2
LATEX
26
be
there
soon.
4.2.
LATEX
1.
2.
\noindent
preamble
LATEX
\parindent=0pt
0pt
4.2
LATEX
LATEX
report
article
% example2.tex
\documentclass{report}
\begin{document}
This is the first experience of \LaTeX.
\chapter{Aesop Fables}
\section{The Ant and the Dove}
An ant went to the bank of a river to quench its thirst, and
being carried away by the rush of the stream, was on the
point of drowning.
A Dove sitting on a tree overhanging the water plucked a
leaf and let it fall into the stream close to her. The Ant
climbed onto it and floated in safety to the bank.
\section{The Dog in the Manger}
A dog lay in a manger, and by his growling and snapping
prevented the oxen from eating the hay which had been
placed for them.
What a selfish Dog! said one of them to his companions;
he cannot eat the hay himself, and yet refuses to allow
those to eat who can.
\chapter{The Eagle and the Arrow}
An eagle sat on a lofty rock, watching the movements of a
Hare whom he sought to make his prey.
27
4.3.
TITLE PAGE
http://edt1023.sayya.org/tex/latex123/example2.tex
http://edt1023.sayya.org/tex/latex123/example2.pdf
report
article
\chapter{}
\section{}
\section{}
\subsection{}
article
4.3
report
book
title page
LATEX
title page
date
LATEX
title
thanks
report/book
article
preamble
\maketitle
% example3.tex
\documentclass{report}
\title{Aesop Fables}
\author{Aesop\thanks{Thanks to the reader.}
\and Nobody\thanks{Thanks to nobody.}}
\date{\today}
\begin{document}
\maketitle
This is the first experience of \LaTeX.
\chapter{Aesop Fables}
\section{The Ant and the Dove}
...
http://edt1023.sayya.org/tex/latex123/example3.tex
http://edt1023.sayya.org/tex/latex123/example3.pdf
28
author
title page
4.4.
\and
TABLE OF CONTENTS
\date{\today}
\\
\maketitle
title page
4.4
Table of Contents
Table of Contents
LATEX
\tableofcontents
% example4.tex
\documentclass{report}
\title{Aesop Fables}
\author{Aesop\thanks{Thanks to the reader.}
\and Nobody\thanks{Thanks to nobody}}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
This is the first experience of \LaTeX.
\chapter{Aesop Fables}
\section{The Ant and the Dove}
...
http://edt1023.sayya.org/tex/latex123/example4.tex
http://edt1023.sayya.org/tex/latex123/example4.pdf
\tableofcontents
\maketitle
title page
example4.toc
toc
List of Figures, List of Tables
4.5
abstract
abstract
29
4.6.
abstract book
article/report
% example5.tex
\documentclass{report}
\title{Aesop Fables}
\author{Aesop\thanks{Thanks to the reader.}
\and Nobody\thanks{Thanks to nobody}}
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
The tale, the Parable, and the Fable are all common and popular
modes of conveying instruction. Each is distinguished by its own
special characteristics.
\end{abstract}
\tableofcontents
\chapter{Aesop Fables}
\section{The Ant and the Dove}
...
http://edt1023.sayya.org/tex/latex123/example5.tex
http://edt1023.sayya.org/tex/latex123/example5.pdf
report
artcile
abstract
summary
abstract
summary
4.6
LATEX
note
footnote
LATEX
marginal
part
report/book
article
footnotesize
30
4.6.1
4.6.
Footnote
\footnote{}
LATEX
Dove
Dove
% example6.tex
\documentclass{report}
\title{Aesop Fables}
\author{Aesop\thanks{Thanks to the reader.}
\and Nobody\thanks{Thanks to nobody}}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
This is the first experience of \LaTeX.
\chapter{Aesop Fables}
\section{The Ant and the Dove}
An ant went to the bank of a river to quench its thirst, and
being carried away by the rush of the stream, was on the
point of drowning.
A Dove\footnote{Pigeon, an emblem of peace.}
sitting on a tree overhanging the water plucked a
leaf and let it fall into the stream close to her. The Ant
climbed onto it and floated in safety to the bank.
...
http://edt1023.sayya.org/tex/latex123/example6.tex
http://edt1023.sayya.org/tex/latex123/example6.pdf
4.6.2
Marginal note
\footnote{}
\marginpar{}
% example7.tex
\documentclass{report}
31
\footnote{}
4.7.
\title{Aesop Fables}
\author{Aesop\thanks{Thanks to the reader.}
\and Nobody\thanks{Thanks to nobody}}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
This is the first experience of \LaTeX.
\chapter{Aesop Fables}
\section{The Ant and the Dove}
An ant went to the bank of a river to quench its thirst, and
being carried away by the rush of the stream, was on the
point of drowning.
A Dove\marginpar{Pigeon, an emblem of peace.}
sitting on a tree overhanging the water plucked a
leaf and let it fall into the stream close to her. The Ant
climbed onto it and floated in safety to the bank.
...
http://edt1023.sayya.org/tex/latex123/example7.tex
http://edt1023.sayya.org/tex/latex123/example7.pdf
4.7
TEX/LATEX
font
font shape
LATEX
LATEX
1993
TEX
4.7.1 LATEX
LATEX
LATEX
32
4.7.
1.
font encoding
TEX
OT1
OT1
2.
font family
roman
typewriter
Knuth
Computer Modern Roman Adobe
Times
Knuth
cmr
cmss
cmtt
3.
Adobe
Computer Modern fonts
font series
weight
medium
m
b
bx
sb
c
4.
width
bold
medium
bold
Bold extended
Semi-bold
Condensed
font shape
italic
slant
small
caps
1
1
OT1
33
T1
Type
4.7.
n
it
sl
sc
5.
normal
upright
roman
Italic
Slanted
Small Caps
font size
10pt 10 point
pt
LATEX
LATEX
4.7.2
textup
italic
slant
small caps
\textup{textup}
\textit{italic}
\textsl{slant}
\textsc{small caps}
{\upshape
{\itshape
{\slshape
{\slshape
medium
boldface
\textmd{medium}
\textbf{boldface}
{\mdseries medium}
{\bfseries boldface}
{\bf boldface}
roman
sans serif
typewriter
\textrm{roman}
\textsf{sans serif}
\texttt{typewriter}
{\rmfamily roman}
{\sffamily sans serif}
{\ttfamily typewriter}
{\rm roman}
{\sf sans serif}
{\tt typewriter}
textup}
italic}
slant}
small caps}
{\it italic}
{\sl slant}
{\sc small caps}
\textit{}
Plain TEX
LATEX 2.09
LATEX
\begin{itsahpe}, \end{itshape}
italic
\itshape
34
4.7.
italic
% example8.tex
\documentclass{report}
\title{\bfseries Aesop Fables}
\author{Aesop\thanks{Thanks to the reader.}
\and Nobody\thanks{Thanks to nobody}}
\date{\today}
\begin{document}
\maketitle
\tableofcontents
\chapter{Aesop Fables}
\section{The \textsl{Ant} and the \textsl{Dove}}
\itshape
An antwent to the bank of a river to quench its thirst, and
being carried away by the rush of the stream, was on the
point of drowning.
\upshape
A \textsl{Dove} sitting on a tree overhanging the water plucked a
leaf and let it fall into the stream close to her. The \textbf{\textsl{Ant}}
climbed onto it and floated in safety to the bank.
\section{The {\it Dog}\/ in the Manger}
A \textbf{\textit{dog}} lay in a manger, and by his growling and snapping
prevented the oxen from eating the hay which had been
placed for them.
What a selfish Dog! said one of them to his companions;
he cannot eat the hay himself, and yet refuses to allow
those to eat who can.
\chapter{The \textsc{Eagle} and the Arrow}
An \textsc{eagle} sat on a lofty rock, watching the movements of a
Hare whom he sought to make his prey.
An archer, who saw the \textsc{Eagle} from a place of concealment,
took an accurate aim and wounded him mortally.
\end{document}
title page
Dove
2
slant
dog
slant
italic
ant
slant
italic
35
4.7.
eagle
small caps
Eagle
latex
example8.log
...
LaTeX Font Warning: Font shape OT1/cmr/bx/sc undefined
(Font)
using OT1/cmr/bx/n instead on input line 4.
...
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
...
LATEX
OT1
OT1/cmr/bx/sc
extended
Bold
small caps
n
bx
LATEX
{\it Dog}\/ in the...}
\/
TEX
italic correction
iatlic
slanted
LATEX
italic correction
\textit{}
dog
LATEX
{\it ...}
italic correction
:-)
http://edt1023.sayya.org/tex/latex123/example8.tex
http://edt1023.sayya.org/tex/latex123/example8.pdf
italic correction
36
{\itshape ...}3
4.7.
4.7.3
TEX/LATEX
10pt
64pt
LATEX
524.88pt
4
package
10pt
5
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
{\tiny tiny}
{\scriptsize scriptsize}
{\footnotesize footnotesize}
{\small small}
{\normalsize normalsize}
{\large large}
{\Large Large}
\LARGE
{\LARGE LARGE}
\huge
{\huge huge}
\Huge
{\Huge Huge}
Large
5pt
7pt
8pt
9pt
10pt
12pt
14.4pt
LARGE
17.28pt
tiny
scriptsize
footnotesize
small
normalsize
large
huge
Huge
20.74pt
24.88pt
\begin{small}
\end{small}
4.7.4
LATEX
2047pt
eps
TEX
pdf
12pt
10pt
37
4.8.
LATEX
package
type1cm package
6
Type 1
package
Type 1
pk
Computer Modern
Type 1
type1cm
TEX distribution
...
\usepackage{type1cm}
...
\fontsize{
}{
...
free
}\seclectfont
3.4
3.4.3
pt
\seclectfont
LATEX
\seclectfont
\fontsize{}{}
4.8
LATEX
4.8.1
\verb|
|
\verb+
6 A
LT
EX
+
13pt
10pt
LATEX
1.2
38
10pt
4.8.
4.8.2
verbatim
% example9.tex
\documentclass{article}
\begin{document}
The example of \verb|\verb{}| command and \texttt{verbatim} environment.
\section{\textbackslash{}\texttt{verb} command}
When you want to express you home directory, you can \verb|echo $HOME|
varient to display your home directory in your sh script.
\noindent
\verb*|This is
4 space here.|
\section{\texttt{verbatim} environment}
Here is a sh script to determine if on GNU/Linux system.
\begin{verbatim}
#!/bin/sh
Date=date %y%m%d
if uname = Linux
then
Mail=/var/spool/mail/edt1023
Target=/mnt/hd
else
Mail=/var/mail/edt1023
Target=/mnt/pub
fi
\end{verbatim}
\end{document}
verbatim
\verb*|This is
\verb*
example9
4 space here.|
\begin{verbatim*}
This is
4 space here.
\end{verbatim*}
39
4.9.
\verb|\verb|
\verb
\textbackslash
$\backslash$
LATEX2HTML
HTML
LATEX
LATEX
http://edt1023.sayya.org/tex/latex123/example9.tex
http://edt1023.sayya.org/tex/latex123/example9.pdf
4.9
CJK package
\documentclass{article}
\usepackage{CJK} %
CJK
\begin{document}
%
CJK
Big-5
\begin{CJK}{Bg5}{hwmm}
\section{CJK
}
CJK package
\section{
}
TEX distribution
CJK package
hwmm
%
%
%
%
%
%
\end{CJK}
\end{document}
bg5latex
latex
Big-5
40
4.9.
http://edt1023.sayya.org/tex/latex123/example10.tex
http://edt1023.sayya.org/tex/latex123/example10.pdf
CJK package
CJK package
http://edt1023.sayya.org/tex/mycjk/mycjk.html
http://edt1023.sayya.org/tex/mycjk/mycjk.pdf
41
CJK
Knuth
TEX
The TEXbook
glue
box
box
box
TEX
box
box
box
box
box
boxes
glue
TEX
box
glue
italic correction \linespread
glue
LATEX
5.1 LATEX
LATEX
LATEX
HTML
42
\parindent
5.2.
5.1.1
pt
bp
pc
mm
cm
in
TEX/LATEX
1/72.27 inch
Adobe
point
point
printer point
PostScript
1/72 inch
big
print point
5.1.2
M
x
em
ex
TEX
em
Knuth
em-dash
em
em-square
em-square
em-square
LATEX
M
em
\quad
The TEXbook
Computer Modern
em
Knuth
quad
5.2
body
:-)
body
43
5.2.
LATEX
footer
header
marginal note
5.2.1
!
!
#
$
!
#
#Header
$
!
Body
Margin
Notes
!" !
! 10!"
!
"
!
#
! 1!"
1
3
5
7
9
11
Footer
"
11
2
4
6
8
10
paperwidth
paperheight
44
5.2.
10pt
LATEX
letterpaper
LATEX
a4paper
Header
Footer
Body
\paperwidth
\paperheight
\textwidth
\textheight
\headheight
\headsep
\footskip
\topmargin
\marginparwidth
\marginparsep
\marginparpush
\oddsidemargin
\hoffset
\voffset
\hoffset
body
body
header
\voffset
LATEX
geometry package
2cm
preamble
\usepackage[margin=2cm]{geometry}
12pt
a4paper
40
margin
LATEX
45
5.3.
5.2.2
a4paper
a5paper
b5paper
21x29.7cm
14.8x21cm
17.6x25cm
letterpaper
legalpaper
executivepaper
8.5x11in
8.5x14in
7.25x10.5in
LATEX
%
\documentclass[12pt,a4paper]{report}
12pt
a4paper
10pt/letterpaper
5.3
~
\quad
em
LATEX
5.3.1
\hspace{
}
\hfill
\quad
\qquad
\thinspace
\enspace
\dotfill
\hrulefill
\centering
\raggedright
\raggedleft
\centerline{}
em
em
1/12
em
1/2
em
\hfill
\hfill
46
5.3.
\hspace{
\hspace*{3em}
\centerline{}
\thinspace
\,
\,Superman, he said.
Superman, he said.
grave accent
\@
5.3.2
\begin{center}...\end{center}
\begin{flushleft}...\end{flushleft}
\begin{flushright}...\end{flushright}
\begin{raggedright}...\end{raggedright}
\begin{raggedleft}...\end{raggedleft}
raggedright
raggedleft
47
5.3.
5.3.3
LATEX
quote, quotation, verse
quote
quotation
verse
verse
\\
quote
% example11.tex
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{Bg5}{hwmm}
\section{hspace}
\hspace*{2em}
\hspace{2em}
\hspace{2em}
\section{hfill}
\hfill{}
\section{quad}
\quad{}
\quad{}
\qquad{}
\section{dotfill}
\dotfill{}
\dotfill{}
\section{hrulefill}
\hrulefill{}
\section{center}
\begin{center}
verse
quotation
\\
\\
\\
\\
\\
\end{center}
\section{flushleft}
\begin{flushleft}
\end{flushleft}
\section{flushright}
48
5.3.
\begin{flushright}
\end{flushright}
\section{quote}
\begin{quote}
An antwent to the bank of a river to quench its thirst, and
being carried away by the rush of the stream, was on the
point of drowning.
A Dove sitting on a tree overhanging the water plucked a
leaf and let it fall into the stream close to her. The Ant
climbed onto it and floated in safety to the bank.
\end{quote}
\section{quotation}
\begin{quotation}
An antwent to the bank of a river to quench its thirst, and
being carried away by the rush of the stream, was on the
point of drowning.
A Dove sitting on a tree overhanging the water plucked a
leaf and let it fall into the stream close to her. The Ant
climbed onto it and floated in safety to the bank.
\end{quotation}
\section{verse}
%
\begin{verse}
An antwent to the bank of a river to quench its thirst, and
being carried away by the rush of the stream, was on the
point of drowning.
A Dove sitting on a tree overhanging the water plucked a
leaf and let it fall into the stream close to her. The Ant
climbed onto it and floated in safety to the bank.
\end{verse}
\section{centering}
\centering
\\ %
\raggedright
\raggedright
\section{centerline}
\centerline{
}
\section{raggedright}
\raggedright
\section{raggedleft}
\raggedleft
49
5.4.
\end{CJK}
\end{document}
http://edt1023.sayya.org/tex/latex123/example11.tex
http://edt1023.sayya.org/tex/latex123/example11.pdf
10pt
10pt
2em
5.4
\vspace{
}
\bigskip
\medskip
\smallskip
\vfill
\parskip
=
12pt 1112pt
6pt 57pt
3pt 24pt
\hfill
LATEX
4.3
title page
LATEX
titlepage
% example12.tex
50
5.4.
\documentclass[12pt,a4paper]{report}
\usepackage{CJK}
%
packages
\usepackage{graphicx}
\begin{document}
\begin{CJK}{Bg5}{hwmm}
\begin{titlepage}
%
titlepage
\vspace*{5ex}
\begin{flushright} %
\Huge\textbf{
\LaTeX}
\end{flushright}
\rule{\textwidth}{.256ex}
\begin{flushleft} %
Version 0.1 draft\\
\today
\end{flushleft}
%
\vspace{8ex}
%
8ex
\hspace{2em}\includegraphics[scale=.75]{cover2.1} %
\vspace{8ex}
%
\begin{flushright} %
By Edward G.J. Lee
\\
Email \texttt{edt1023@info.sayya.org}
\end{flushright}
\end{titlepage}
\end{CJK}
\end{document}
packages
titlepage
2em
report/book
article
titlepage
titlepage
\title, \author
\maketitle
http://edt1023.sayya.org/tex/latex123/example12.tex
http://edt1023.sayya.org/tex/latex123/example12.pdf
graphicx package
\includegraphics
75%
9
METAPOST
eps
51
5.5.
ps
mpost cover2.mp
cover2.1
eps
eps
http://edt1023.sayya.org/tex/latex123/cover2.mp
http://edt1023.sayya.org/tex/latex123/cover2.1
5.5
item label
5.5.1
itemize
\begin{itemize}
\item
\item
\begin{itemize}
\item
\item
\end{itemize}
\item
\item
\end{itemize}
52
5.5.
5.5.2
enumerate
enumerate
1.
2.
(a)
(b)
3.
4.
5.5.3
description
description
\begin{description}
\item[
]
\item[
]
\begin{description}
\item[
]
\item[
]
\end{description}
\item[
]
\item[
]
\end{description}
item
53
5.6.
5.6
5.6.1
\rule[
rule
)]{ }{
baseline
% example13.tex
\documentclass{article}
\parskip=3pt
\parindent=0pt
\begin{document}
This is a line.
%
\rule{3cm}{1pt}
\rule[1ex]{3cm}{1pt}
\rule[-1ex]{3cm}{1pt}
\rule{1pt}{3cm}
\rule{3cm}{0pt}TEST. %
\rule{2cm}{3cm}
1pt
3cm
TEST
3cm
3cm
1pt
3cm
2cm
54
5.6.
http://edt1023.sayya.org/tex/latex123/example13.tex
http://edt1023.sayya.org/tex/latex123/example13.pdf
5.6.2
underline
LATEX
\underline{
5.6.3
box
9
box
box
\frame{
\fbox{
\mbox{
box
TEX/LATEX
}
}
}
\framebox[
\makebox[
\fbox
][
][
]{
]{
}
}
\fbox
\mbox
\fbox
55
\mbox
5.6.
\width
\height
\depth
\totalheight
\fbox
\height
\depth
2\width
c
l
r
s
\fbox
center
flushleft
ushright
stretch
\fboxrule=
\fboxsep=
\frame{}
\raisebox{
)}[
\raisebox
][
]{
\rule
% example14.tex
\documentclass{article}
\parskip=3ex
\parindent=0pt
\begin{document}
\frame{This is frame.}
\mbox{This is mbox.}
\fbox{This is fbox.}
\framebox{This is a framebox with no argumant.}
\framebox[1.5\width]{This is a framebox.}
\framebox[1.5\width][l]{This is a framebox with \texttt{l}.}
56
5.6.
http://edt1023.sayya.org/tex/latex123/example14.tex
http://edt1023.sayya.org/tex/latex123/example14.pdf
5.6.4
box
LATEX
\parbox[
][
\begin{minipage}[
][
]{
][
}{
][
}
]{
\end{minipage}
t
b
c
top
bottom
center
\parbox
minipage
0pt
57
5.6.
t, b, c
58
6
LATEX
LATEX
document class
class
class
class
LATEX
LATEX
LATEX
macro
6.1 LATEX
LATEX
\documentclass[
]{
style
TEX
59
LATEX
LATEX
6.2.
6.2
10pt
4. leqno
5. titlepage, notitlepage
title page
article
report/book
article
title page
6. onecolumn, twocolumn
7. twoside, oneside
article/report
book
oneside
8. landscape
portait
9. draft
draft
60
titlepage
LATEX
6.3.
book
article
6.3
LATEX
article
report
book
letter
slides
minimal
LATEX
minimal class
class
61
LATEX
TEX/LATEX macro
7.1
3.4.3
$TEXMF/doc
$TEXMF\doc
22
=> Unix-like
=> DOS/Windows
TEX/LATEX
*.dvi
PostScript
pdf
Unix-like
texdoc
texdoc amsguide
texdoc -s ams
=>
=>
amsguide.dvi
ams
62
Windows
cygwin
7.2. LATEX
7.2 LATEX
LATEX
packages
7.2.1 alltt
alltt
verbatim
LATEX
LATEX
7.2.2 doc
LATEX
ltxdoc
doc
class
package
7.2.3 exscale
Computer Modern font
cmex10
10pt
cmex
large
Large
exscale
preamble
TEX/LATEX
cmex10
cmr5
10pt
cmr10
cmr5 cmr10
30pt
% test-fonts.tex
63
cmr12
7.2. LATEX
\font\largecmr=cmr12 at 30pt
\largecmr
This is cmr12 at 30pt.
\font\largecmr=cmr10 at 30pt
\largecmr
This is cmr10 at 30pt.
\font\largecmr=cmr5 at 30pt
\largecmr
This is cmr5 at 30pt.
\bye
TEX
LATEX
tex
pdftex
http://edt1023.sayya.org/tex/latex123/test-fonts.tex
http://edt1023.sayya.org/tex/latex123/test-fonts.pdf
Knuth
METAFONT
METAFONT
pk
cmr
TEX
20
Knuth
7.2.4 fontenc
4.7.1
package
fontenc
32
T1 font encoding
...
\usepackage[T1]{fontenc}
...
METAFONT
PDF
64
7.2. LATEX
cm-super Type1
pxfonts
teTEX 2.x
txfonts package
teTEX
...
\usepackage{txfonts}
\usepackage[T1]{fontenc}
...
txfonts
pxfonts
Times
Palatino
OT1
Type1
7.2.5 graphpap
picture
...
\usepackage{graphpap}
...
\graphpaper[n](x,y)(x1,y1)
...
10
(x,y)
\documentclass{article}
\usepackage{graphpap}
\begin{document}
\graphpaper(0,0)(360,360)
\end{document}
10
http://edt1023.sayya.org/tex/latex123/test-graphpap.tex
http://edt1023.sayya.org/tex/latex123/test-graphpap.pdf
65
(x1,y1)
7.2. LATEX
7.2.6 ifthen
TEX
package
ifthen package
\ifthenelse
...
\usepackage{ifthen}
...
\ifthenelse{\isodd{\thepage}}%
{\setlength{\leftmargin}{10pt}}%
{\setlength{\leftmargin}{0pt}}
...
leftmargin
10pt
0pt
7.2.7 inputenc
fontenc package
encoding
Latin-1
fontenc package
...
\usrpackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
...
\inputencoding{ascii} %
...
\inputencoding{latin2}
...
\inputencoding{latin1}
...
66
input
inputenc package
7.2. LATEX
7.2.8 latexsym
LATEX
LATEX 2
package
amsfonts
lasy*
amssymb package
latexsym
LATEX
package
symbols*
symbols.dvi
symbols-a4.ps[pdf]
symbols-letter.ps[pdf]
CTAN
ftp://cam.ctan.org/tex-archive/info/symbols/comprehensive/symbols-a4.pdf
7.2.9 makeidx
package
11.3
142
7.2.10 newlfont
LATEX
4.7.2
package
34
7.2.11 oldlfont
LATEX
package
7.2.12 showidx
package
11.3
\index
67
7.3. LATEX
7.2.13 syntonly
syntonly package
\syntaxonly
*.dvi
preamble
\syntaxonly
7.2.14 tracefnt
package
package
...
\usepackage[debugshow]{tracefnt}
...
*.log
7.3 LATEX
LATEX
relative software
LATEX
LATEX team
7.3.1 AMS-LATEX
LATEX
AMS-LATEX
LATEX
indexamstex@AMS-TEX
amsmath
AMS
10
AMS-TEX
LATEX
amscls
LATEX
125
68
7.3. LATEX
7.3.2 babel
babel
7.3.3 cyrillic
7.3.4 graphics
graphicx
graphics
graphicx
graphicx
graphics
graphicx
LATEX
9
93
7.3.5 psnfss
times, charter, mathptmx
Type1
Type1
free
txfonts
Type1
pxfonts
7.3.6 array
8.4
array, tabular
83
69
7.3. LATEX
7.3.7 calc
LATEX
counter
7.3.8 dcolumn
8.9
88
7.3.9 delarray
array
array
\left
array
delarray
\right
10
7.3.10 hhline
7.3.11 longtable
longtable
LATEX
8.10
7.3.12 tabularx
tabular
8.3
box
tabular
79
70
90
7.3. LATEX
7.3.13 afterpage
LATEX
floating environment
7.3.14 bm
bm
bold math(symbol)
\bm{}
7.3.15 enumerate
enumerate
enumerate
% example15.tex
\documentclass{article}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}[Example-1.]
\item This is a item 1.
\item This is a item 2.
\begin{enumerate}[(1)]
\item This is a item (1).
\item This is a item (2).
\end{enumerate}
\item This is a item 3.
\item This is a item 4.
\end{enumerate}
\end{document}
A, a, I, i, 1
5.5.2
http://edt1023.sayya.org/tex/latex123/example15.tex
http://edt1023.sayya.org/tex/latex123/example15.pdf
71
53
enumerate
7.3. LATEX
array
array
enumerate
7.3.16 fontsmpl
sample
package
package
sample
\fontsample
sample
$TEXMF/tex/latex/tools
latex fontsmpl.tex
cmr
dvips
dvipdfm[x]
fontsmpl.dvi
ps/pdf
OT1
T1
7.3.17 ftnright
LATEX
ftnright
two-column mode
72
7.3. LATEX
7.3.18 indentfirst
LATEX
indentfirst package
7.3.19 layout
package
package
\layout
5.2.1
44
7.3.20 multicol
LATEX
twocolumn
\onecolumn
\twocolumn
multicol
multicols
...
\usepackage{multicol}
...
\begin{multicols}{
}
...
...
\end{multicols}
multicol
multicols
package
73
multicol
7.3. LATEX
7.3.21 rawfonts
LATEX 2.09
\texrm
10pt
LATEX 2
7.3.22 somedefs
LATEX
package
7.3.23 showkeys
package
7.3.24 varioref
11
7.3.25 verbatim
LATEX
\verbatiminput{
verbatim
}
verbatim
7.3.26 xr
xr
eXternal References
11.2
140
74
7.4.
7.3.27 xspace
package
3.3.2
LATEX
\
xspace
\
16
{}
\xspace
{}
7.3.28 theorem
LATEX
10
theorem
125
7.4
LATEX
FAQ
http://www.tex.ac.uk/faq
Chun-Chieh Huang
news://tw.bbs.comp.tex
FAQ
news://comp.text.tex
http://tug.ctan.org/CTANfind.html
package
bbs/news
sh script
http://edt1023.sayya.org/tex/latex123/ltxins.sh
*.sty
*.tex
dvipdfm[x]
LATEX
75
7.4.
http://edt1023.sayya.org/tex/latex123/ltxpkg.sh
ltxpkg.sh package-name[.sty]
package
package(s)
bash
Unix-like
bash script
Mac OS X
Windows/cygwin
\input
.tex
package
macro
edt1023:~$ ltxpkg.sh colortbl
The position of this package is at:
/usr/share/texmf/tex/latex/carlisle/colortbl.sty
The preloaded package(s) of colortbl.sty is(are):
array,color
colortbl package
color
packages
array
package
packages
76
LATEX
GNU Emacs
LATEX
script
LATEX
LATEX
LATEX
TEX
8.1
DM
77
8.2. TABBING
HTML
PDF
http://edt1023.sayya.org/tex/latex123/test-tables.tex
http://edt1023.sayya.org/tex/latex123/test-tables.pdf
8.2 tabbing
LATEX
tabbing
LATEX
box LATEX
tabbing
box
box
\parbox
minipage
row
tabbing
Tab
\=
column
\>
\\
\\
\begin{tabbing}
column1 \= column2 \= column3 \\
item1
\> item2
\> item3
\\
itemA
\> itemB
\> itemC
\end{tabbing}
LATEX
template
\begin{tabbing}
xxxxxxxxxx\=xxxxxxxxxx\=xxxxxxxxxx \kill
column1 \> column2 \> column3 \\
item1
\> item2
\> item3
\\
itemA
\> itemB
\> itemC
78
tabbing
8.3. TABULAR
\end{tabbing}
10
\kill
x
\hspace{6em}
LATEX
tabbing
\
LATEX
tabular
tabbing
8.3 tabular
LATEX
tabbing
tabular
&
8.3.1 tabular
\begin{tabular}[t]{lll}
\hline
column1 & column2 & column3 \\
\hline
item1
& item2
& item3 \\
itemA
& itemB
& itemC \\
\hline
\end{tabular}
[t]
top
bottom
LATEX
center
tabular
top
79
8.3. TABULAR
bottom
center
tabbing
\hline
\hline\hline
\begin{tabular}{lll}
left
lll
right
l
center
{lll}
bar |
bar
{|l|l|l|}
tabular
tabular
tabbing
8.3.2 tabular
1. p{
}
paragraph
2. @{
}
0
3. \multicolumn{
}{
}{
}
lrc
4. \cline{a-b}
a-b
\cline{2-3}
5. \arrayrulewidth=
0.4pt
\arrayrulewidth=1.5pt
tabular
6. \tabcolsep=
6pt
\arrayrulewidth
80
8.3. TABULAR
7. \doublerulesep=
2pt
\arrayrulewidth
8. \arraystretch
LATEX
\renewcommand
\arraystretch
example16.tex
tabular
p{}
@{}
% example16.tex
\documentclass{article}
\usepackage{textcomp}
% for \textcelsius
\renewcommand{\arraystretch}{1.2} %
1.2
\arrayrulewidth=1pt
%
1pt
\tabcolsep=12pt
%
24pt
\begin{document}
\centering
\section*{SPECIFIC HEATS (20 \textcelsius\ AND 1 ATM)}
\begin{tabular}{@{\sf }lll@{}}
%
sans serif
\hline
& \multicolumn{2}{c}{\bf Specific Heats} \\ %
\cline{2-3}
%
& $c$ (J/kg$\cdot$K) & $C$ (J/mol$\cdot$K) \\
\hline
Aluminum
& 900 & 24.3 \\
Copper
& 385 & 24.4 \\
Gold
& 130 & 25.6 \\
Steel/Iron
& 450 & 25.0 \\
Lead
& 130 & 26.8 \\
Mercury
& 140 & 28.0 \\
Water
& 4190 & 75.4 \\
Ice ($-$10 \textcelsius) & 2100 & 38 \\
\hline
\end{tabular}
\end{document}
textcomp
LATEX
pk
latex example16.tex
81
cm-super Type1
8.3. TABULAR
Type1
txfonts
cm-super Type1
pxfonts
@{}
@{}
@{}
http://edt1023.sayya.org/tex/latex123/example16.tex
http://edt1023.sayya.org/tex/latex123/example16.pdf
@{}
p{}
% example17.tex
\documentclass{article}
\renewcommand{\arraystretch}{1.2} %
\begin{document}
\centering
\section*{Yi Syllables Area Character Blocks}
\begin{tabular}{@{}llp{6cm}@{}}
\hline
Start & End & Character Block Name \\
\hline
A000 & A48F & Yi Syllables.
A490
& A4CF
1.2
\hline
\end{tabular}
\end{document}
p{}
82
8.4. ARRAY
http://edt1023.sayya.org/tex/latex123/example17.tex
http://edt1023.sayya.org/tex/latex123/example17.pdf
8.4 array
array
tabular
tabular
1. m{
}
p{}
2. b{
}
p{}
3. >{
}
l,r,c,p,m,b
array package
>{
4. <{
}
@{}
}
>{
5. !{
@{
}
}
|
6. \extrarowheight
8.5 tabularx
tabularx
tabularx
tabular
\tabular*
83
LATEX
8.5. TABULARX
tabular
\tabular*
tabularx
lrc
p{}
array package1
% example18.tex
\documentclass{article}
\usepackage{tabularx}
\parindent=0pt
\renewcommand{\arraystretch}{1.2}
\begin{document}
\centering
\section*{\texttt{tabular*} environment}
\begin{tabular*}{8cm}{lll}
\hline
Start & End & Character Block Name \\
\hline
3400 & 4DB5 & CJK Unified Ideographs Extension A \\
4E00 & 9FFF & CJK Unified Ideographs \\
\hline
\end{tabular*}
\section*{\textsf{tabularx} package}
\begin{tabularx}{8cm}{llX} % 8cm
\hline
%
Start & End & Character Block Name \\
\hline
3400 & 4DB5 & CJK Unified Ideographs Extension A \\
4E00 & 9FFF & CJK Unified Ideographs \\
\hline
\end{tabularx}
\end{document}
tabularx package
\verb
tabularx
tabularx
tabularx
tabular
http://edt1023.sayya.org/tex/latex123/example18.tex
http://edt1023.sayya.org/tex/latex123/example18.pdf
1
7.4
75
ltxpkg.sh
84
packages
8.6.
8.6
BOOKTABS
booktabs
LATEX
TEX/LATEX
\arraryrulewidth
booktabs
tabular
\toprule[
\midrule[
\bottomrule[
\cmidrule
]
]
]
\cline
tabular
toprule
bottomrule
cmidrule
\cmidrule[
](
){
23
\cline
/
0.5em
l
(lr{0.7em}){2-3}
example16
http://edt1023.sayya.org/tex/latex123/example19.tex
http://edt1023.sayya.org/tex/latex123/example19.pdf
toprule
booktabs
bottomrule
tabular
arraystretch
85
midrule
cmidrule
8.7.
8.7
COLORTBL
colortbl
3.4.3.1
color package
example13
colortbl
8.7.1 color
graphics package
LATEX
color
preamble
\color{
}
\definecolor
\textcolor{
\pagecolor{
}{
}
\normalcolor{
}
\colorbox{
}{
\fcolorbox{
}{
}
}{
color
red, green, blue (RGB
(CMYK
), white
\definecolor{
gray
}{
}{
gray-scale
rgb cmyk
01
RGB
Unix-like
rgb.txt
example24.pdf
228, 196
256
bisque
rgb
\definecolor{bisque}{rgb}{.996,.891,.755}
2
256
16,777,216
gray
byte(8-bits)
86
256(28 )
255,
8.7.
\definecolor{mypink}{cmyk}{.1,.8,.4,.1}
bisque
COLORTBL
% cmyk
mypink
gray
\definecolor{mygray}{gray}{.6}
\textcolor[gray]{.3}{
\textcolor[rgb]{.2,.5,.7}{
}
}
mygray
mygray
gray
\usepackage[usenames,dvipsnames]{color}
\usepackage{colortbl}
Salmon, Orchid,
dvipsnam.def
BlueViolet
dvipsnames
colortbl
usenames
color
colortbl
array
8.7.2 colortbl
\columncolor
\rowcolor
\arrayrulecolor{
}
\doublerulesepcolor{
\columncolor
\columncolor[
\rowcolor
]{
}[
][
http://edt1023.sayya.org/tex/latex123/example20.tex
http://edt1023.sayya.org/tex/latex123/example20.pdf
87
8.8.
8.8
THREEPARTTABLE
threeparttable
LATEX
tabular
longtable package
threeparttable package
threeparttable package
2003/06/13 v3.0
ftp://ctan.unsw.edu.au/tex-archive/macros/latex/contrib/misc.zip
threeparttable.sty
$TEXMF/latex/misc
texhash
threeparttable
tabular
threeparttable
\tnote{
tabular
tablenotes
threeparttable
booktabs package
Donald Arseneau
http://edt1023.sayya.org/tex/latex123/example21.tex
http://edt1023.sayya.org/tex/latex123/example21.pdf
tablenotes
example21
footnotesize
8.9
dcolumn
LATEX
tabular
@{.}
dcolumn
dirty
dcolumn
D{
tabular
}{
lrc
}{
88
8.9.
DCOLUMN
tabular
\begin{tabular}{lllll}
\toprule
& headA & headB & headC & headD \\
\midrule
test1 & 7.879 & 921.661 & 1382.81 & 998.98 \\
test2 & 1.97
& 35.21
& 321.3
& 4791112.11 \\
test3 & 211.97 & 5.2
& 213.629 & 748261594.106 \\
\bottomrule
\end{tabular}
tabular
...
\usepackage{dcolumn}
...
\begin{tabular}{lD{.}{.}{3}D{.}{.}{3}D{.}{.}{3}D{.}{.}{3}}
...
3
\newcolumntype
...
\usepackage{dcolumn}
...
\newcolumntype{z}[1]{D{.}{.}{#1}} %
...
\begin{tabular}{lz{3}z{3}z{3}z{3}}
...
#1
z
1
D{.}{.}{3}
tabular
z{3}
z
3
http://edt1023.sayya.org/tex/latex123/example22.tex
http://edt1023.sayya.org/tex/latex123/example22.pdf
dcolumn
z
$
headA
example22
$headA$
89
8.10.
8.10
LONGTABLE
longtable
longtable
8.10.1
graphics package
lscape
release
graphics/graphicx package
\rotatebox
rotating package
package
graphics/graphicx
rotating package
sidewaystable
sidewaysfigure
graphicx
graphicx
rotatebox{90}{
rotating
}
sidewaystable
http://edt1023.sayya.org/tex/latex123/example23.tex
http://edt1023.sayya.org/tex/latex123/example23.pdf
8.10.2
tabbing
longtable package
tabular
LATEX
longtable
booktabs
tabluar
booktabs package
2003/03/28 v1.618
ftp://ctan.unsw.edu.au/tex-archive/macros/latex/contrib/booktabs.zip
rgb.txt
http://edt1023.sayya.org/tex/latex123/example24.tex
http://edt1023.sayya.org/tex/latex123/example24.pdf
90
8.11.
8.11
tabular
LATEX
box
LATEX
LATEX
LATEX
LATEX
3
8.11.1
LATEX
table
Table n:
\{caption}
caption
n
caption
LATEX
caption
caption
caption
topcapt package
...
\begin{table} %
\begin{table}[
]
\setlength{\abovecaptionskip}{0pt}
\setlength{\belowcaptionskip}{10pt}
\caption{
}
\begin{tabular}{
}
\end{tabular}
\end{table}
abovecaptionskip
belowcaptionskip
\begin{table*}...\end{table*}
3
caption
91
8.11.
8.11.2
LATEX
h(here)
t(top)
b(bottom)
p(page)
\suppressfloats[
!
]
p
[tbp]
\suppressfloats[
\suppressfloats
LATEX
92
TEX
ps/eps/pdf
TEX
jpeg/png
METAFONT/METAPOST
TEX
TEX 20
TEX/LATEX
9.1
eps/pdf
9.1.1
pixel
93
9.2.
jaggies
9.1.2
eps/pdf, svg
9.2
9.2.1
TEX/LATEX
CJK
LATEX
GUI
94
9.2.
1. LATEX
picture
LATEX
picture
epic
eepic package
picture
LATEX
LATEX
LATEX
LATEX
eepic
pdflatex
PostScript
epic package
picture
9.3
2. PSTricks
PSTricks package
PostScript
pdflatex/dvipdfm[x]
PDFTricks package
dvips
PDF device
9.4
3. METAPOST
TEX
METAFONT
TEX
METAPOST
TEX
object-oriented
METAPOST
macro
METAFONT
eps
TEX/LATEX
Knuth
METAFONT
eps
TAOCP
METAPOST
METAPOST
latex
METAFONT
METAPOST
pdflatex
9.5
METAFONT
Knuth
1
METAPOST
METAPOST
The METAFONTbook
eps
mps
95
eps
9.2.
9.2.2
free
1. gnuplot
XY
kile
XY Z
GUI
xfig
fig
LATEX
picture
METAPOST
LATEX
sample
http://www.gnuplot.info/
http://www.fnal.gov/docs/products/gnuplot/tutorial/
http://cips02.physik.uni-bonn.de/~baehren/tex/gnuplot.html
2. GNU plotutils
gnuplot
C++
xfig
2D
pstoedit
http://www.gnu.org/software/plotutils/
3. xfig
X Window System
gnuplot
MS Windows
eps
LATEX picture/epic
LATEX/gnuplot
http://www.xfig.org/
xfig
Java
96
jfig
CorelDraw
fig
9.2.
http://tech-www.informatik.uni-hamburg.de/applets/javafig/
4. tgif
xfig
eps/pdf
gnuplot
tgif
LATEX
gif
tgif
http://bourbon.cs.umd.edu/tgif
5. grace
ACE/gr
grace
of data
xmgr2
Motif
GNU GPL
Window System
GUI
Motif
WYSIWYG
X
2D
xmgr
LessTif
http://plasma-gate.weizmann.ac.il/Grace/
6. GNU Dia
X Window System
Gtk+
Visio
Windows
METAPOST
eps/svg
LATEX PSTricks
xfig
http://www.lysator.liu.se/~alla/dia/dia.html
7. Ipe
X Window System
Windows
Qt
TEX/LATEX
eps
TEX/LATEX
Ipe
XML
Ipe
pdf/eps
eps/pdf
pdf
http://ipe.compgeom.org/
2
Widget
ACE/gr
Motif
Motif
Motif
xmgr
97
XView
xvgr
XView
9.2.
8. skeneil(sketch)
sketch
Python script
svg
http://sketch.sourceforge.net/index.html
Windows
Photoshop
http://www.gimp.org/
10. MetaGraf
GUI
METAPOST
Java
POST
METAJava
http://w3.mecanica.upm.es/metapost/metagraf.php
11. OpenOce.org
OpenOce.org Draw(oodraw
)
http://www.openoffice.org/
12. KOce
Kivio
Karbon
Krita
KChart
http://www.koffice.org/
9.2.3
dvips
eps
PostScript
pdflatex
pdf/jpeg/png
pdf/jpeg/png
dvipdfm[x]
PostScript
eps
pdf
METAPOST
98
9.3. PICTURE
1. ImageMagick
convert
wrap
http://www.imagemagick.org/
2. netpbm
http://netpbm.sourceforge.net/
3. pstoedit
eps/pdf
fig
xfig
METAPOST
eps/pdf
http://www.pstoedit.net/pstoedit/
4. ps2eps
eps
ps
BoundingBox
ps
Roland Bless
perl
Windows
ps2eps.bat
http://www.ipv6.tm.uka.de/~bless/ps2eps
Ghostscript
ps2epsi
BoundingBox
9.3 picture
LATEX
LATEX
epic package
99
ps2eps
perl
GhostScript
9.3. PICTURE
LATEX
picture
9.3.1
picture
picture
...
\usepackage{epic}
...
\begin{document}
...
\begin{picture}( ,
)(
latex
\end{picture}
...
\end{document}
pt
( ,
( ,
(0, 0)
(
)
(0, 0)
picture
...
\unitlenght=1mm
%
\begin{picture}(50, 50) %
...
picture
picture
mm
mm
picture
9.3.2 picture
picture
x
y
100
9.3. PICTURE
1. \put(
){
}
picture
LATEX
2. \line(
){
}
LATEX
(a)
6
(b)
(b)
+6
25
\qbezier
3. \vector(
){
}
4
\line
\line
+4
x
x
4. \circle{
}
\put
\circle*{
}
x
x
y
5. \oval{ , }[
]
t
bl
6. \qbezier[
]{
}{
}{
quadratic Bezier
101
9.3. PICTURE
control point
http://www.ursoswald.ch/metapost/tutorial/BezierDoc/BezierDoc.pdf
7. \thicklines
\thinklines
8. \thinklines
9. \linethickness{
10. \framebox( ,
)[
]{
}
t, b, l, r, s
11. \dashbox{
}( ,
)[
]{
9.3.3
\put(
){
}{
\multiput
\multiput(
)(
% example25.tex
\documentclass{article}
\usepackage{epic}
\parindent=0pt
\begin{document}
\unitlength=1mm
\begin{picture}(80, 60)
\multiput(5, 0)(5, 0){15}{\line(0, 1){60}} %
\multiput(0, 5)(0, 5){11}{\line(1, 0){80}} %
\thicklines
\put(0, 0){\vector(0, 1){60}} %
y
102
15
11
5mm
5mm
9.3. PICTURE
%
%
%
%
%
y
x
multiput
\multiput(5, 0)(5, 0){15}{\line(0, 1){60}}
(5, 0)
(5, 0)
0). . . (75, 0)
x
0
15
x
y
\line
\put
picture
http://edt1023.sayya.org/tex/latex123/example25.tex
http://edt1023.sayya.org/tex/latex123/example25.pdf
\shortstack
\shortstack[
]{
l, r, c
\shortstack
example25
...
\put(-7, 20){\shortstack{
\put(30, -6){
}
...
\\[-2pt]
\\[-2pt]
103
\\[-2pt]
\\[-2pt] }}
9.3. PICTURE
CJK
bg5latex
http://edt1023.sayya.org/tex/latex123/example26.tex
http://edt1023.sayya.org/tex/latex123/example26.pdf
example26
...
\put(-7, 20){\rotatebox{90}{
\put(30, -6){
$x$ $axis$}
...
$y$ $axis$}}
http://edt1023.sayya.org/tex/latex123/example27.tex
http://edt1023.sayya.org/tex/latex123/example27.pdf
9.6.4
\rotatebox
122
picture
9.3.4 epic
epic
picture
1. \multiputlist(
)(
)[tbrl]{
2 }
1,
\multiput
box
tbrl
2. \matrixput(
)(
1){
1}(
\multiput
104
2){
2}{
9.4. PSTRICKS
3. \grid( ,
)(
)[
PDFTRICKS
]
\multiput
\grid
(0, 0)
4. \picsquare{
5. \dottedline[
]{
6. \dashline[
}(
]{
2) (
1)(
}[dash
](
dash
dash
1)(
dash
dash
n)
2) (
dash
n)
100
dash
7. \drawline[
](
2) (
1)(
n)
\dashline
dash
8. \putfile{
}{
}
XY
\put
epic
Sunil Podar
Environment of LATEX
http://www.ntg.nl/doc/podar/picman.pdf
9.4 PSTricks
PSTricks
PDFTricks
PostScript
dvips
picture
latex/dvips/ps2pdf
pdflatex/dvipdfm[x]
graphicx
105
9.4. PSTRICKS
PDFTRICKS
pdf
copy&paste&search
TEX
PDFLATEX
PDFTricks
pdflatex
shell
PSTricks
Unix-like
latex/dvipdfm[x]
PSTricks
9.4.1 PSTricks
PSTricks
pstricks
pst-node
ps-tree
pst-grad
pst-gr3d
pst-poly
3D
pstricks
1cm
pspicture
1pt
picture
...
\usepackage{pstricks}
...
\begin{document}
...
\begin{pspicture}(
)(
\end{pspicture}
...
pstricks
pstricks
LATEX
pstcol
David Carlisle
color
color
pstricks
pstricks
pstcol
pstcol
pstcol
color
...
\usepackage[usenames,dvipsnames]{pstcol}
...
PSTricks
Users Group)
PSTricks
http://sarovar.org/projects/pstricks/
http://www.tug.org.in/tutorials.html
106
TUGIndia(Indian TEX
9.4. PSTRICKS
PDFTRICKS
9.4.2 PDFTricks
CTAN
make
Unix-like
pdftricks.sty
$TEXMF/usr/share/texmf/tex/latex/pstricks
$TEXMF/usr/share/texmf/tex/latex/pdftricks
texhash
mktexlsr
pst2pdf
Unix-like
PDFTricks
Un*x
PSTricks
psinputs
pdfdisplay
pspicture
pdflatex
\documentclass{article}
\usepackage{pdftricks}
\begin{psinputs}
\usepackage[usenames,dvipsnames]{pstcol}
pstricks
psinputs
\end{psinputs}
...
\begin{document}
...
\begin{pdfdisplay}
\begin{pspicture}
pstricks
\end{pspicture}
\end{pdfdisplay}
...
\end{document}
pdflatex
pdflatex
TEX
-shell-escape
pdflatex
Windows
PSTricks PDFTricks
picture
http://edt1023.sayya.org/tex/latex123/test-pstricks.pdf
http://edt1023.sayya.org/tex/latex123/test-pdftricks.pdf
http://edt1023.sayya.org/tex/latex123/test-pstricks.tex
http://edt1023.sayya.org/tex/latex123/test-pdftricks.tex
http://edt1023.sayya.org/tex/latex123/gnuplot-label.dem
107
gnuplot
9.5. METAPOST
tar ball
latex/dvips/ps2pdf
pdflatex
-shell-escape
[gnuplot gnuplot-label.dem]
pdflatex -shell-escape test-pdftricks.tex
LATEX
Urs Oswald
http://www.ursoswald.ch/LaTeXGraphics/overview/overview.html
http://www.ursoswald.ch/LaTeXGraphics/overview/latexgraphics.pdf
picture
PSTricks
9.5 METAPOST
METAPOST
picture
picture
9.5.1
METAPOST
.mp
METAPOST
METAPOST
9.5.6
1.
mpost
some.mp
1
mpost some.mp
epstopdf some.1
%
%
some.1
some.pdf
some.1
108
some.log
9.5. METAPOST
2.
mptopdf
pdf
pdflatex
mpost
mpost
pdf
mptopdf
mptopdf some.mp
some.1
some-1.pdf
some.1
eps
some-1.pdf
mptopdf
gv/gsview
mpost
some.1
some.1
gv/gview
METAPOST
LATEX
3.
eps
mpost
gv/gsview
%
%
mproof.dvi
mproof.dvi
mproof.ps
ps/pdf
dvips/dvipdfm[x]
9.5.2 METAPOST
METAPOST
METAPOST
big point(bp)
TEX
printer point(pt)
%
TEX
beginfig(n);
METAPOST
endfig;
bye;
%
beginfig(n)
PostScript
;
;
mpost
end
eps
mpost
beginfig. . . endfig
METAPOST
109
TEX/LATEX
9.5. METAPOST
beginfig endfig
bye/end
9.5.3 METAPOST
METAPOST
1. numeric
4096
numeric a, b, c, d; %
a := 9;
b := 3*a**2;
c := a++b;
d := c+-+b;
show a, b, c, d;
%
bye
3*a**2
(3a)2
4096
a,b,c,d
a++b
a2 + b 2
c+-+b
mpost
a2 b 2
edt1023:~$ mpost
This is MetaPost, Version 0.641 (Web2C 7.4.5)
**\relax
* =>
...
numeric
numeric
METAPOST
2. pair
pair
3
METAPOST
assignment
:=
:=
110
METAPOST
9.5. METAPOST
beginfig(1);
u := 1mm;
%
pair a, b, c, d; %
pair
a := (0, 0); b := (30u, 0); c := (30u, 30u); d := (0, 30u);
draw a--b--c--d--a;
endfig;
bye
30mm
pair a[];
%
pair a[][]; %
3. path
pair
path
4. color
rgb
(0, 0, 0)
(1, 1, 1)
:
rgb
black
white
red
green
blue
(0,
(1,
(1,
(0,
(0,
0,
1,
0,
1,
0,
0)
1)
0)
0)
1)
LATEX
METAPOST
rgb
withcolor .6red;
withcolor .5white;
color A;
%
A := (.3,.8,.2); %
withcolor A;
%
A
A
color
A
5. string
"
METAPOST
btex
etex
METAPOST
tex
decimal()
111
9.5. METAPOST
u := 1cm;
for i=0 upto 10:
label.top(decimal(i/10), ((i+1/2)*u,1u));
endfor;
label.top()
6. boolean
7. picture
picture
METAPOST
8. pen
9. transform
9.5.4 METAPOST
picture command
METAPOST
label command
draw fill
addto command
label dotlabel
clip command
1.
draw-pair
draw
pair
hyphen
cycle
pair a, b, c;
a := (0, 0); b := (1cm, 0); c := (0, 1cm);
draw a--b--c--cycle withpen pencircle scaled 1bp
withcolor .8white dashed withdots;
112
--
9.5. METAPOST
1bp
0.5bp
draw
pair a, b, c;
a := (0, 0); b := (1cm, 0); c := (0, 1cm);
pickup pencircle scaled 1bp;
%
draw a--b--c--cycle withcolor .8white dashed withdots;
2.
draw
drawoptions()
draw
drawoptions()
pair a, b, c;
a := (0, 0); b := (1cm, 0); c := (0, 1cm);
drawoptions(withpen pencircle scaled 1pt dashed withdots withcolor .8white);
draw a--b--c--cycle;
3.
draw..
hyphen
4.
..
pair
drawarrow, drawdblarrrow
draw
drawarrow
drawdblarrow
5.
dashed evenly
dashed withdots
dashpattern()
pair a, b, c;
picture dptn;
a := (0, 0); b := (1cm, 0); c := (0, 1cm);
pickup pencircle scaled 1bp;
%
dptn := dashpattern(on 6bp off 2bp on 2bp off 2bp); %
draw a--b--c--cycle withcolor .8white dashed dptn;
dashpattern
on
off
evenly
:= dashpattern(on 3 off 3);
withdots := dashpattern(off 2.5 on 0 off 2.5);
113
dash
9.5. METAPOST
evenly
picture
withdots
6.
fill
withcolor
fill
pair
cycle
draw
filldraw
draw
fill
7.
draw
fullcircle
fullcircle
quartercircle
halfcircle
1cm
(x, y)
a, b
with...
8.
unitsquare
unitsquare
draw unitsquare scaled 1cm; %
(0, 0)
draw unitsquare scaled 1cm rotated 30;
%
draw unitsquare xscaled 2cm yscaled 1cm; %
2cm
shift(x, y)
9.
label, dotlabel
top
lft
bot
ulft
rt
llft
114
urt
lrt
1cm
30
1cm
9.5. METAPOST
label.bot("O(0,0)", (0,0));
%
O(0,0)
dotlabel.bot("O(0,0)", (0,0)); %
label
label.bot(btex $O(0,0)$ etex, (0,0));
% O(0,0)
dotlabel.bot(btex $O(0,0)$ etex, (0,0));
"
METAPOST
btex. . . etex
TEX
rgb
for
loop4
% test-mpcolor.mp
beginfig(1);
defaultscale := 12pt/fontsize(defaultfont); %
12
u := 1cm;
path sqr;
sqr := unitsquare scaled u;
for i=0 upto 10:
% for loop
label.top(decimal(i/10), ((i+1/2)*u,1u));
fill sqr shifted (i*u, 0) withcolor i*0.1red;
fill sqr shifted (i*u, -1.2u) withcolor i*0.1green;
fill sqr shifted (i*u, -2.4u) withcolor i*0.1blue;
fill sqr shifted (i*u, -3.6u) withcolor i*0.1white;
endfor;
label.lft("r", (0,.6u));
label.lft("g", (0,-.6u));
label.lft("b", (0,-2u));
label.lft("gray", (0,-3u));
endfig;
bye
mptopdf
http://edt1023.sayya.org/tex/latex123/test-mpcolor.mp
http://edt1023.sayya.org/tex/latex123/test-mpcolor-1.pdf
9.5.5
LATEX
TEX
METAPOST
TEX
LATEX
tex
CJK
latex
4
\TeX\
METAPOST
for loop
115
9.5. METAPOST
tex
latex
TEX/LATEX
1.
btex. . . etex
TEX
"
TEX
2. LATEX
LATEX
tex
METAPOST
LATEX
verbatimtex. . . etex
verbatimtex
%&latex
%
latex
\documentclass{article}
\usepackage{some,packages}
\begin{document}
etex
...
verbatimtex
%
\end{document} %
etex
tex
btex. . . etex
LATEX
mpost
latex
9.5.6
METAPOST
METAPOST
Big-5
[7]
b5mp.pl
Big-5
clatex
LATEX
CJK
mpost
perl
http://edt1023.sayya.org/tex/latex123/b5mp.pl
mpost
fontname
.mp
aming
116
9.5. METAPOST
your.1 (
b5mp.pl
LATEX
your.1
gv
eps
gsview
epstopdf
=>
=>
mproof.dvi
mproof.ps
dvipdfm[x] mproof.dvi
=>
mproof.pdf
CJK
LATEX
mptopdf
% test-yi.mp
beginfig(1)
u:=3cm;
path p;
p=(0,1u)..(1u,0)...(0,-1u);
fill p{dir(157)}..(0,0){dir(23)}..{dir(157)}cycle;
draw p..(-1u,0)..cycle;
fill (0,-.6u)..(0.1u,-.5u)..(0,-.4u)..(-.1u,-.5u)..cycle withcolor white;
fill (0,.6u)..(.1u,.5u)..(0,.4u)..(-.1u,.5u)..cycle;
label.bot(btex \Large
etex,(0,-1.2u));
endfig;
beginfig(2)
a=.7in; b=0.5in;
z0=(0,0); z1=(a,0); z2=(0,b);
z0=.5[z1,z3]=.5[z2,z4];
draw z1..z2..z3..z4..cycle;
drawarrow z0..z1;
drawarrow z0..z2;
label.top(btex \small
$x$ etex, .5[z0,z1]);
label.lft(btex \small
$y$ etex, .5[z0,z2]);
label.bot(btex \Large
etex,(0,-.7u));
endfig;
end;
b5mp.pl
b5mp.pl akai test-yi %
akai
tex mproof test-yi.1 test-yi.2 %
dvips mproof.dvi
%
dvipdfmx mproof.dvi
%
test-yi.1
mproof.dvi
mproof.ps
mproof.pdf
117
mpost
test-yi.2
9.5. METAPOST
http://edt1023.sayya.org/tex/latex123/test-yi.mp
http://edt1023.sayya.org/tex/latex123/mproof.pdf
LATEX
% example28.tex
\documentclass{article}
\usepackage{graphicx,CJK,mflogo}
\parindent=0pt
\ifx\pdfoutput\undefined
\DeclareGraphicsRule{*}{eps}{*}{}
\else
\DeclareGraphicsRule{*}{mps}{*}{}
\fi
\begin{document}
\begin{CJK}{Bg5}{hwmm}
\MP\
\LaTeX\
{\tt b5mp.pl}
\MP\
{\tt latex}
\vspace{10ex}
\begin{figure}[h]
\centering
\includegraphics{test-yi.1}
\caption{
}
\end{figure}
\vspace{10ex}
\begin{figure}[h]
\centering
\includegraphics{test-yi.2}
\caption{
}
\end{figure}
\end{CJK}
\end{document}
http://edt1023.sayya.org/tex/latex123/example28.tex
http://edt1023.sayya.org/tex/latex123/example28.pdf
118
9.6.
9.5.7
METAPOST
METAPOST
Knuth
The METAFONTbook
mpman.ps
METAPOST
John D. Hobby
METAPOST
Andre Heck
METAPOST
by Doing
Learning METAPOST
examples.zip
CTAN
metapost.html
http://remote.science.uva.nl/~heck/Courses/mptut.pdf
http://www.ursoswald.ch/metapost/tutorial.pdf
http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html
ftp://ctan.unsw.edu.au/tex-archive/info/metapost/examples.zip
http://www.topology.org/tex/conc/mp/mp.zip
mp.zip
Alan U. Kennington
systematic framework
METAPOST
9.6
graphicx package
graphics package
pack-
graphicx
age
graphicx
LATEX
graphicx
METAPOST
picture
PSTricks
9.6.1
graphicx
package
\includegraphics
...
\usepackage{graphicx}
...
\begin{document}
119
9.6.
...
\begin{figure}
\includegraphics[
...
\caption{
\label{
\end{figure}
...
%
]{
%
} %
caption
graphicx
METAPOST
some-graphic.1
pdflatex
mps
METAPOST
METAPOST
\documentclass{article}
\usepackage{graphicx}
\ifx\pdfoutput\undefined
\DeclareGraphicsRule{*}{eps}{*}{}
\else
\DeclareGraphicsRule{*}{mps}{*}{}
\fi
\begin{document}
...
\includegraphics{mpost-image.1}
...
\end{document}
ifpdf
pdflatex
mps
*.1
eps
latex
*.mps
latex/pdflatex
graphicx
graphicx
jpeg/png
eps
latex/dvips
latex/pdflatex
eps/pdf
BoundingBox
dvipdfm
ebb
BoundingBox
120
convert
9.6.
9.6.2 includegraphics
\includegraphics
graphicx
graphics
1. bb
bounding box
bb=98 98
(98, 98)
468 430
(468, 430)
(0, 0)
bp
pdflatex
trim
clip
clip
\includegraphics*
eps/ps
BoundingBox
gv
2. clip
3. trim
bb
pdflatex
\includegraphics[trim=7 7 7 7, clip]{some}
some
7bp
4. angle
5. orgin
121
gsview
9.6.
6. width
7. height
8. totalheight
height
depth
9. scale
9.6.3
\graphicspath{{
}{
}{
\graphicspath{{images/}} %
\graphicspath{{:images:}} % Mac
LATEX
}...}
TEX
TEXINPUTS
unix-like
sh shell
TEX
images
\includegraphics{}
9.6.4
\rotatebox
122
9.6.
\rotatebox[
]{
}{
angle
\includegraphics
1. origin
lrctbB
baseline
top r
center
right c
reference
point
2. x, y
origin
3. units
units=-360
dvi viewer
*.dvi
ps
dvips
pdf
pdflatex
9.6.5
1. \scalebox{
}[
2. \reflectbox{
]{
\scalebox{-1}[1]{
3. \resizebox{
\resizebox*{
}{
}{
}{
}
}
}{
}
!
depth
\resizebox*{}{}{}
height
totalheight
height
3.3.1
123
14
totalheight
9.6.
LATEX
124
10
LATEX
PDF
LATEX
HTML
LATEX
AMS-LATEX
AMSFonts
TEX
The LATEX Companion
ch8.pdf CTAN
amsldoc.dvi
http://www.ctan.org/tex-archive/info/companion-rev/ch8.pdf
10.1
math mode
LATEX
\mbox{}
\textmr{}
LATEX
125
10
10.1.
10.1.1
1. $
MATH MODE
$
$
Knuth
escape
:-)
\$
2. \begin{math}
3. \(
\end{math}
\)
\begin{math}
\end{math}
f(x,y)=3x+4y
f(x, y) = 3x + 4y
$f(x,y)=3x+4y$
$f(x, y) = 3x+ 4y$
sin(2x)=-sin x cos x
$\sin (2x) = -\sin x \cos x$
f(x,y) = 3(x+y)y / (2xy-7)
$f(x,y) = 3(x+y)y / (2xy-7)$
f(x,y)=3x+4y
f(x, y) = 3x + 4y
sin(2x)=-sin x cos x
f(x,y) = 3(x+y)y / (2xy-7)
%
%
%
%
%
%
f (x, y) = 3x + 4y
f (x, y) = 3x + 4y
sin(2x) = sin x cos x
f (x, y) = 3(x + y)y/(2xy 7)
10.1.3
126
10
10.1.
10.1.2
MATH MODE
1. \begin{displaymath}
2. \[
\end{displaymath}
\]
3. \begin{equation}
\end{equation}
equation*
TEX
$$
LATEX
LATEX
10.1.3
1.
127
10
10.1.
g(x)=\sqrt{9-x^2},
\]
...
MATH MODE
:-)
2.
ligature
3.
log
\arccos
\arcsin
\arctan
\arg
\sinh
\cos
\cosh
\cot
\coth
\sup
\csc
\deg
\det
\dim
\tan
\exp
\gcd
\hom
\inf
\tanh
\ker
\lg
\lim
\liminf
\limsup
\ln
\log
\max
\min
\Pr
\sec
\sin
128
32
10
10.2.
4.
LATEX
LATEX
line break
page break
10.2
7.2.8
symbols-a4.pdf
package
10.3
symbols-a4.pdf
10.3.1
fraction
$f(x,y)=3(x+y)y/(2xy-7)$
$f(x,y)=\frac{3(x+y)y}{(2xy-7)}$
\frac{
129
}{
10
10.3.
\[
f(x,y)=\frac{3(x+y)y}{(2xy-7)}
\]
\begin{equation} %
f(x,y)=\frac{3(x+y)y}{(2xy-7)}
\end{equation}
f (x, y) =
f (x, y) =
3(x + y)y
(2xy 7)
3(x + y)y
(2xy 7)
\[
\frac{\frac{a}{x-y}+\frac{b}{x+y}}{\frac{x-y}{x+y}+\frac{a-b}{a+b}}
\]
a
xy
xy
x+y
+
+
b
x+y
ab
a+b
\[
\frac{\frac{\displaystyle a}{\displaystyle x-y}+
\frac{\displaystyle b}{\displaystyle x+y}}
{\frac{\displaystyle x-y}{\displaystyle x+y}+
\frac{\displaystyle a-b}{\displaystyle a+b}}
\]
a
b
xy + x+y
xy ab
x+y + a+b
\displaystyle
\textstyle
\scriptstyle
\scriptscriptstyle
130
(10.1)
10
10.4.
ARRAY
10.3.2
$(a+b)^2=a^2+2ab+b^2$
$\cos 2x=\cos^2x-\sin^2x$
$(y^m)^n=y^{mn}$
$^a_bY^c_d$
$e^{t \cos\theta}$
$\lim_{n \to \infty}\sum_{i=1}^n{\frac{1}{n}}$
$y_1=1/3(x_1+\omega x_2+\omega^2x_3)$
\to
(a + b)2 = a2 + 2ab + b2
cos 2x = cos2 x sin2 x
(y m )n = y mn
aY c
b d
et cos
P
limn ni=1 n1
y1 = 1/3(x1 + x2 + 2 x3 )
\rightarrow
\leftarrow
\gets
\[
\lim_{n \to \infty}\sum_{i=1}^n{\frac{1}{n}}\sin\frac{k}{n}
\]
n
X
1
k
sin
n
n
n
lim
i=1
10.3.3
$\sqrt{x^2+y^2}$
$\sqrt[5]{a+\sqrt{b}}$
10.4
p
x2 + y 2
p
5
a+ b
array
8.3
tabular
&
131
\\
10
10.4.
delimiter
LATEX
\left
ARRAY
\right
symbols-a4.pdf
\[
A = \left(
%
\left
\begin{array}{clr}
t_{11} & t_{12} & t_{13} \\
t_{21} & t_{22} & t_{23} \\
t_{31} & t_{32} & t_{33}
\end{arrary}\right)
\]
1
t11 t12 t13
B
C
A = @ t21 t22 t23 A
t31 t32 t33
lcr
\right.
\[
g(x,y) = \left\{\begin{array}{ll}
f(x,y), & \mbox{if $x<y$} \\
f(y,x), & \mbox{if $x>y$} \\
0,
& \mbox{otherwise.}
\end{array} \right.
\]
AMS-LATEX
matrix
pmatrix
vmatrix
%
%
8
>
< f (x, y), if x < y
g(x, y) =
f (y, x), if x > y
>
:
0,
otherwise.
matrix
( )
| |
\left
bmatrix
Bmatrix
Vmatrix
[ ]
{ }
|| ||
\right
132
\mbox
10
10.4.
...
\usepackage{amsmath}
...
\[
A =
\begin{pmatrix}
t_{11} & t_{12} & t_{13} \\
t_{21} & t_{22} & t_{23} \\
t_{31} & t_{32} & t_{33}
\end{pmatrix}
\]
ARRAY
amsmath
1
t11 t12 t13
B
C
A = @t21 t22 t23 A
t31 t32 t33
matrix
\left
\right
10.4.1
LATEX
eqnarray
LATEX
align
align
&
AMS-LATEX
align
&
&
&
align
\notag
align*
\tag{
subequations
...
\usepackage{amsmath}
...
\begin{subequations}
\begin{align}
x & \equiv 2 \pmod 3 \\
x & \equiv 3 \pmod 5 \\
x & \equiv 2 \pmod 7
amsmath package
%
%
%
%
%
133
10
10.5.
\end{align}
\end{subequations}
x 2 (mod 3)
(10.2a)
x 3 (mod 5)
(10.2b)
x 2 (mod 7)
(10.2c)
10.5
LATEX
\newtheorem
amsthm package
LATEX
10.5.1
LATEX
\newtheorem
LATEX
LATEX
\newtheorem{
}{
}[
chapter
chapter
...
\newtheorem{defi}{Definition} %
preamble
...
\begin{defi}
Let $f$ be continuous on the half-open interval $[a, b)$ and suppose
$\lim_{x\rightarrow b^-}|f(x)|=\infty$. Then,
\[
\int_a^bf(x)dx=\lim_{t\rightarrow b^-}\int_a^tf(x)dx
\]
provided this limit exists and is finite, in which case we say the
integral converges. Otherwise, we say it diverges.
\end{defi}
134
10
10.5.
Definition 1. Let f be continuous on the half-open interval [a, b) and suppose limxb |f (x)| =
. Then,
Z b
Z t
f (x)dx = lim
f (x)dx
tb
provided this limit exists and is finite, in which case we say the integral converges. Otherwise, we say it diverges.
amsthm package
proof
10.5.2 amsthm
LATEX
amsthm
...
\usepackage{CJK}
%
CJK
\usepackage{amsmath,amsthm,amssymb} %
AMS
\theoremstyle{remark}
%
\newtheorem{cdefi}{\bf
}
%
...
\begin{CJK}{Bg5}{hwmm}
\begin{cdefi}
$f:[a,b]\rightarrow\mathbb{R}$
\[
L(s)=\int^b_a\sqrt{1+(f(x))^2}dx
\]
$f$
$(a,f(a))$
$(b,f(b))$
\end{cdefi}
\end{CJK}
remark style
$(f)^2$
$s$
1. f : [a, b] R (f ! )2
L(s) =
! b"
1 + (f ! (x))2 dx
style
plain
remark
plain style
135
italic
10
10.6.
amssymb package
amsthm
\theoremstyle
style
plain definition
theorem
LATEX
theorem.dvi
10.6
10.6.1
\mathrm
\mathtt
\mathbf
\mathsf
\mathit
\mathcal
sans serif
italic
ABCabc
ABCabc
ABCabc
ABCabc
ABCabc
ABC
symbols-a4.pdf
10.6.2
\quad
\,
\;
em
1/6 quad
5/18 quad
\qquad
\!
\:
136
em
1/6 quad
2/9 quad
remark
10
10.6.
\, \quad
\qquad
...
\begin{cdefi}
$f:[a,b]\rightarrow{\mathbb R}$
\[
L(s)=\int^b_a\!\sqrt{1+(f(x))^2}\,dx
\]
$f$
$(a,f(a))$
$(b,f(b))$
\end{cdefi}
...
$(f)^2$
$s$
1. f : [a, b] R (f ! )2
L(s) =
! b"
1 + (f ! (x))2 dx
137
11
crop marks
11.1
Contents
LATEX
4.4
LATEX
minitoc
LATEX
titletoc
\tablofcontents
\listoffigures
\listoftables
\caption
11.1.1
Contents List of Figueres
List of Tables
138
11
11.1.
CONTENTS
LATEX
\renewcommand
Contents
report class
/usr/share/texmf/tex/latex/base/report.cls
C:\texmf\tex\latex\base\report.cls
% Unix-like
% DOS/Windows
Contents
\newcommand\contentsname{Contents}
\newcommand\listfigurename{List of Figures}
\newcommand\listtablename{List of Tables}
contentsname listfigurename
listtablename
\renewcommand\contentsname{ ~ ~}
\renewcommand\listfigurename{ ~ ~ }
\renewcommand\listtablename{ ~ ~ }
CJK
CJK
preamble
11.1.2
caption
counter
tocdepth
report class
report.cls
\setcounter{tocdepth}{2}
3.4.4
subsection
preamble
\setcounter
139
11
11.2.
CROSS REFERENCES
11.1.3
\caption
\addcontentsline
\addcontentsline{toc}{
}{
\addcontentsline{lof}{figure}{
\addcontentsline{lot}{table}{
11.2
}
}
}
Cross References
LATEX
TEX/LATEX
hyperef
LATEX
PDF/HTML
LATEX
11.2.1
LATEX
\label{
}
\ref{
}
\pageref{
}
%
%
%
\label
\label
140
11
11.2.
CROSS REFERENCES
...
\section{\LaTeX\
}
\label{sec:struct}
...
\begin{figure}
\includesgrapics{fontstruct}
\caption{
}
\label{fig:struct}
\end{figure}
...
\ref{sec:struct}
\pageref{sec:struct}
\ref{fig:struct}
\pageref{fig:struct}
...
struct
fontstruct
sec: fig:
1.
2.
3.
\label
11.2.2
\caption
hyperlink
PDF/HTML
*.dvi *.ps
LATEX
hyperref
TEX
ftp://ftp.tug.org/pub/tex/hyperref/
LATEX
hyperref.cfg
preamble
TEX/LATEX
141
11
11.3.
INDEX
http://www.study-area.org/tips/latex/chpdf.html
http://www.study-area.org/tips/latex/chpdf.pdf
hyperref
11.3
index
makeidx
LATEX
makeindex
printindex
\index{
11.3.1
...
\usepackage{makeidx}
\makeindex
...
\index{
}
...
\printindex
%
\addcontentsline{toc}{chapter}{
...
latex your.tex
makeindex your.idx
latex your.tex
11.3.2
key
| @
"
142
escape
11
11.3.
abc\index{abc}
xyz\index{abc!xyz}
abc\index{abc|textit}
abc\index{abc@\textbf{abc}
\abc\index{abc@\abc}
xyz
INDEX
abc
italic
abc
abc
abc
makeindex.dvi
manpages.dvi
\index{}
\index{}
\index{abc@\textbf{abc}
\index{abc@{\bf abc}
\verb|abc|
|
hyperref
hyperref
abc\index{abc|textit}
|hyperpage
|textit
*.idx
abc\index{abc|textit}
latex
\indexentry{abc|textit}{143}
makeindex
\item abc, \textit{143}
% *.idx
% *.ind
*.idx
*.ind
*.ind
*.ind
latex
LATEX
makeindex
*.ind
theindex
143
11
11.4.
BIBLIOGRAPHY
latex
makeindex
style
-s
11.3.3
Index
preamble
CJK
\renewcommand\indexname{
11.4
~ }
Bibliography
LATEX
thebibliography
BibTEX
11.4.1 thebibliography
thebibliography
article
Referrences
report
Bibliography
thebibliography
\begin{thebibliography}{99}
\bibitem[
]{
}
\bibitem[
]{
}
...
\edn{thebibliography}
\bibitem
144
book
11
11.4.
BIBLIOGRAPHY
{99}
\cite{
\begin{thebibliography}{KDE} %
\bibitem{KDEt} Knuth, D.E., \textit{The \TeX{}book},
Reading, Massachusetts: Addison-Wesley, 1989.
\bibitem[KDE]{KDEm} Knuth, D.E., \textit{The \MF{}book},
Reading, Massachusetts: Addison-Wesley, 1986.
...
\end{thebibliography}
hyperref
\cite{KDEt}
\cite[1989]{KDEt}
\cite{KDEm}
\cite[1986]{KDEm}
\cite{KDEt,KDEm}
[1]
[1, 1989]
[KDE]
[KDE, 1986]
[1, KDE]
Xpdf
11.4.2
\renewcommand\refname{
\renewcommand\bibname{
~ ~
~ ~
~ }
~ }
% article
% report/book
145
11
11.4.
BIBLIOGRAPHY
11.4.3 BibTEX
bibtex
BibTEX
bibtex
latex
latex
*.bib
\bibliogrphy
your.bib
...
\begin{document}
\bibliogrphiystyle{plain}
...
\bibliography{your.bib}
...
\end{document}
style
% *.bib
latex example
bibtex example
latex example
11.4.3.1 *.bib
*.bib
@book
@article
@book{ KDEt,
author
= "Knuth, Donald E.",
year
= "1989",
title
= "The {\TeX}book",
publisher
= "Addison-Wesley",
address
= "Reading, Massachusetts",
volumn
= " ",
edition
= " ",
month
= " ",
series
= " ",
note
= " ",
}
@article{ somekey,
146
bibtex
11
11.4.
author
year
title
journal
volumn
number
pages
month
note
=
=
=
=
=
=
=
=
=
BIBLIOGRAPHY
"Someone",
"2004",
"The {\TeX} Journal",
"SayYa-Publisher",
" ",
" ",
" ",
" ",
" ",
Knuth, Donald E.
Donald E. Knuth
bibtex
LATEX
and
%
" "
*.bst
\cite
*.bib
\nocite{*}
bibtex
CJK
*.cbib
bg5conv
*.bib
some.bib
11.4.3.2
BibTEX
plain.bst
plain
unsrt
abbrv
alpha
147
plain
11
11.5.
btxdoc.dvi
APPENDIX
btxhak.dvi
Unciode
cwTEX
cwbibtex
11.5
[5]
cw.bst
Appendix
\appendix
Chapter
\chapter
\section
A.1 B.2
11.5.1
Appendix
\renewcommand\appendixname{ ~
Appendix
article
appendixname
11.6
LATEX
\input
\include
preamble
148
11
11.6.
latex123.tex
\documentclass[12pt,a4paper]{report}
...
preamble
...
\begin{document}
\begin{CJK}{Bg5}{hwmm}
...
%begin{latexonly}
\input{story.cjk}
\input{preparation.cjk}
\input{syntax.cjk}
\input{start.cjk}
\input{space.cjk}
\input{class.cjk}
\input{package.cjk}
\input{table.cjk}
\input{graphic.cjk}
\input{math.cjk}
\input{abook.cjk}
\input{theend.cjk}
\input{fdl.cjk}
%end{latexonly}
\begin{htmlonly}
\input{story}
\input{preparation}
\input{syntax}
\input{start}
\input{space}
\input{class}
\input{package}
\input{table}
\input{graphic}
\input{math}
\input{abook}
\input{theend}
\input{fdl}
\end{htmlonly}
...
\end{CJK}
\end{document}
bg5latex
LATEX
latex2html
\input{}
*.tex CJK package
149
11
11.7.
\CJKinput
CROP MARKS
\CJKinclude
11.6.1 input
include
\input
\include
\include
preamble
11.7
*.tex
\input
\include
\includeonly{}
crop marks
crop package
LATEX
crop
150
12
LATEX
bbs/news
:
1.
LATEX macro
TEX/LATEX
2.
TEX/LATEX
ChiTEX
cwTEX
PUTEX
TEX/LATEX
TEX/LATEX
3.
:-)
151
12
4.
TEX/LATEX
5.
LATEX
6.
7. Unicode
LATEX
8.
LATEX
http://www.miwie.org/presentations/presentations.html
9.
XML/SGML/HTML
XML/SGML
10.
seaching
Internet
TEX
11. GUI
GUI
152
12
TTF
TTF
GNU GPL
GNU FDL
PDF
kenduest
HTML
ctshieh
HTML/PDF
http://edt1023.sayya.org/tex/latex123/index.html
http://edt1023.sayya.org/tex/latex123/latex123.pdf
http://edt1023.sayya.org/tex/latex123/latex123-v1.0-src.tar.gz
http://MathNet.math.tku.edu.tw/~edt1023/tex/latex123/index.html
http://MathNet.math.tku.edu.tw/~edt1023/tex/latex123/latex123.pdf
http://MathNet.math.tku.edu.tw/~edt1023/tex/latex123/latex123-v1.0-src.tar.
gz
153
13
GNU
0. PREAMBLE
The purpose of this License is to make a manual, textbook, or other functional and useful
document free in the sense of freedom: to assure everyone the eective freedom to copy
and redistribute it, with or without modifying it, either commercially or noncommercially.
Secondarily, this License preserves for the author and publisher a way to get credit for their
work, while not being considered responsible for modifications made by others.
This License is a kind of copyleft, which means that derivative works of the document
must themselves be free in the same sense. It complements the GNU General Public
License, which is a copyleft license designed for free software.
We have designed this License in order to use it for manuals for free software, because free
software needs free documentation: a free program should come with manuals providing
the same freedoms that the software does. But this License is not limited to software
manuals; it can be used for any textual work, regardless of subject matter or whether it
is published as a printed book. We recommend this License principally for works whose
purpose is instruction or reference.
154
13
GNU
13
GNU
formats include proprietary formats that can be read and edited only by proprietary word
processors, SGML or XML for which the DTD and/or processing tools are not generally
available, and the machine-generated HTML, PostScript or PDF produced by some word
processors for output purposes only.
The Title Page means, for a printed book, the title page itself, plus such following pages
as are needed to hold, legibly, the material this License requires to appear in the title page.
For works in formats which do not have any title page as such, Title Page means the
text near the most prominent appearance of the works title, preceding the beginning of
the body of the text.
A section Entitled XYZ means a named subunit of the Document whose title either
is precisely XYZ or contains XYZ in parentheses following text that translates XYZ in
another language. (Here XYZ stands for a specific section name mentioned below, such
as Acknowledgements, Dedications, Endorsements, or History.) To Preserve the
Title of such a section when you modify the Document means that it remains a section
Entitled XYZ according to this definition.
The Document may include Warranty Disclaimers next to the notice which states that
this License applies to the Document. These Warranty Disclaimers are considered to be
included by reference in this License, but only as regards disclaiming warranties: any other
implication that these Warranty Disclaimers may have is void and has no eect on the
meaning of this License.
2. VERBATIM COPYING
You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying
this License applies to the Document are reproduced in all copies, and that you add no
other conditions whatsoever to those of this License. You may not use technical measures
to obstruct or control the reading or further copying of the copies you make or distribute.
However, you may accept compensation in exchange for copies. If you distribute a large
enough number of copies you must also follow the conditions in section 3.
You may also lend copies, under the same conditions stated above, and you may publicly
display copies.
3. COPYING IN QUANTITY
If you publish printed copies (or copies in media that commonly have printed covers) of the
Document, numbering more than 100, and the Documents license notice requires Cover
Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover
Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both
covers must also clearly and legibly identify you as the publisher of these copies. The front
156
13
GNU
cover must present the full title with all words of the title equally prominent and visible.
You may add other material on the covers in addition. Copying with changes limited to
the covers, as long as they preserve the title of the Document and satisfy these conditions,
can be treated as verbatim copying in other respects.
If the required texts for either cover are too voluminous to fit legibly, you should put the
first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto
adjacent pages.
If you publish or distribute Opaque copies of the Document numbering more than 100, you
must either include a machine-readable Transparent copy along with each Opaque copy,
or state in or with each Opaque copy a computer-network location from which the general
network-using public has access to download using public-standard network protocols a
complete Transparent copy of the Document, free of added material. If you use the latter
option, you must take reasonably prudent steps, when you begin distribution of Opaque
copies in quantity, to ensure that this Transparent copy will remain thus accessible at the
stated location until at least one year after the last time you distribute an Opaque copy
(directly or through your agents or retailers) of that edition to the public.
It is requested, but not required, that you contact the authors of the Document well before
redistributing any large number of copies, to give them a chance to provide you with an
updated version of the Document.
4. MODIFICATIONS
You may copy and distribute a Modified Version of the Document under the conditions
of sections 2 and 3 above, provided that you release the Modified Version under precisely
this License, with the Modified Version filling the role of the Document, thus licensing
distribution and modification of the Modified Version to whoever possesses a copy of it. In
addition, you must do these things in the Modified Version:
A. Use in the Title Page (and on the covers, if any) a title distinct. from that of the
Document, and from those of previous versions (which should, if there were any, be
listed in the History section of the Document). You may use the same title as a
previous version if the original publisher of that version gives permission.
B. List on the Title Page, as authors, one or more persons or entities responsible for
authorship of the modifications in the Modified Version, together with at least five
of the principal authors of the Document (all of its principal authors, if it has fewer
than five), unless they release you from this requirement.
C. State on the Title page the name of the publisher of the Modified Version, as the
publisher.
D. Preserve all the copyright notices of the Document.
157
13
GNU
E. Add an appropriate copyright notice for your modifications adjacent to the other
copyright notices.
F. Include, immediately after the copyright notices, a license notice giving the public
permission to use the Modified Version under the terms of this License, in the form
shown in the Addendum below.
G. Preserve in that license notice the full lists of Invariant Sections and required Cover
Texts given in the Documents license notice.
H. Include an unaltered copy of this License.
I. Preserve the section Entitled History, Preserve its Title, and add to it an item
stating at least the title, year, new authors, and publisher of the Modified Version as
given on the Title Page. If there is no section Entitled History in the Document,
create one stating the title, year, authors, and publisher of the Document as given
on its Title Page, then add an item describing the Modified Version as stated in the
previous sentence.
J. Preserve the network location, if any, given in the Document for public access to
a Transparent copy of the Document, and likewise the network locations given in
the Document for previous versions it was based on. These may be placed in the
History section. You may omit a network location for a work that was published at
least four years before the Document itself, or if the original publisher of the version
it refers to gives permission.
K. For any section Entitled Acknowledgements or Dedications, Preserve the Title
of the section, and preserve in the section all the substance and tone of each of the
contributor acknowledgements and/or dedications given therein.
L. Preserve all the Invariant Sections of the Document, unaltered in their text and in
their titles. Section numbers or the equivalent are not considered part of the section
titles.
M. Delete any section Entitled Endorsements. Such a section may not be included in
the Modified Version.
N. Do not retitle any existing section to be Entitled Endorsements or to conflict in
title with any Invariant Section.
O. Preserve any Warranty Disclaimers.
If the Modified Version includes new front-matter sections or appendices that qualify as
Secondary Sections and contain no material copied from the Document, you may at your
option designate some or all of these sections as invariant. To do this, add their titles to
the list of Invariant Sections in the Modified Versions license notice. These titles must be
distinct from any other section titles.
158
13
GNU
You may add a section Entitled Endorsements, provided it contains nothing but endorsements of your Modified Version by various partiesfor example, statements of peer review
or that the text has been approved by an organization as the authoritative definition of a
standard.
You may add a passage of up to five words as a Front-Cover Text, and a passage of up
to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified
Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added
by (or through arrangements made by) any one entity. If the Document already includes
a cover text for the same cover, previously added by you or by arrangement made by the
same entity you are acting on behalf of, you may not add another; but you may replace
the old one, on explicit permission from the previous publisher that added the old one.
The author(s) and publisher(s) of the Document do not by this License give permission to
use their names for publicity for or to assert or imply endorsement of any Modified Version.
5. COMBINING DOCUMENTS
You may combine the Document with other documents released under this License, under
the terms defined in section 4 above for modified versions, provided that you include in the
combination all of the Invariant Sections of all of the original documents, unmodified, and
list them all as Invariant Sections of your combined work in its license notice, and that you
preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and multiple identical
Invariant Sections may be replaced with a single copy. If there are multiple Invariant
Sections with the same name but dierent contents, make the title of each such section
unique by adding at the end of it, in parentheses, the name of the original author or
publisher of that section if known, or else a unique number. Make the same adjustment
to the section titles in the list of Invariant Sections in the license notice of the combined
work.
In the combination, you must combine any sections Entitled History in the various original documents, forming one section Entitled History; likewise combine any sections
Entitled Acknowledgements, and any sections Entitled Dedications. You must delete
all sections Entitled Endorsements.
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other documents released under
this License, and replace the individual copies of this License in the various documents with
a single copy that is included in the collection, provided that you follow the rules of this
License for verbatim copying of each of the documents in all other respects.
159
13
GNU
You may extract a single document from such a collection, and distribute it individually
under this License, provided you insert a copy of this License into the extracted document,
and follow this License in all other respects regarding verbatim copying of that document.
8. TRANSLATION
Translation is considered a kind of modification, so you may distribute translations of the
Document under the terms of section 4. Replacing Invariant Sections with translations
requires special permission from their copyright holders, but you may include translations
of some or all Invariant Sections in addition to the original versions of these Invariant
Sections. You may include a translation of this License, and all the license notices in
the Document, and any Warranty Disclaimers, provided that you also include the original
English version of this License and the original versions of those notices and disclaimers.
In case of a disagreement between the translation and the original version of this License
or a notice or disclaimer, the original version will prevail.
If a section in the Document is Entitled Acknowledgements, Dedications, or History,
the requirement (section 4) to Preserve its Title (section 1) will typically require changing
the actual title.
9. TERMINATION
You may not copy, modify, sublicense, or distribute the Document except as expressly
provided for under this License. Any other attempt to copy, modify, sublicense or distribute
the Document is void, and will automatically terminate your rights under this License.
160
13
GNU
However, parties who have received copies, or rights, from you under this License will not
have their licenses terminated so long as such parties remain in full compliance.
If you have Invariant Sections, Front-Cover Texts and Back-Cover Texts, replace the
with. . . Texts. line with this:
with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being
LIST, and with the Back-Cover Texts being LIST.
If you have Invariant Sections without Cover Texts, or some other combination of the three,
merge those two alternatives to suit the situation.
If your document contains nontrivial examples of program code, we recommend releasing
these examples in parallel under your choice of free software license, such as the GNU
General Public License, to permit their use in free software.
161
[1] Knuth, Donald E., The TEXbook, Reading, Massachusetts: Addison-Wesley, 1989.
11.4.1
[KDE] Knuth, Donald E., The METAFONTbook, Reading, Massachusetts: Addison-Wesley,
1986. 11.4.1
[2] Clark, Malcolm, TEX by Topic, Reading, Massachusetts: Addison-Wesley, 1992.
[3] Abrahams, Paul W., Berry, Karl and Hargreaves, Kathryn A., TEX for the Impatient, Reading, Massachusetts: Addison-Wesley, 1990.
[4] Goossens, Michel, Mittelbach, Frank, and Samarin, Alexander, The LATEX Companion, Reading, Massachusetts: Addison-Wesley, 1993.
[5]
cwTEX
[6]
LATEX
[7]
2002
11.4.3.2
1995
Linux
1995
[8]
9.5.6
1999
[9]
1980
162
c 2004
Copyright
2004
163
PDF
Copyright
FDL
%, 17, 40
\&, 79
\=, 78
\>, 78
\\, 26, 48, 78
\, 79
artcile, 30
report, 30
\maketitle, 28
, 21
, 16
FAQ, 75
body , 43
, 50
, 16
fraction , 129
delimiter , 132
, 13, 16
, 48
, 17
underline , 55
, 21
, 59
, 116
, 131
, 17
, 65
, 3, 23
, 23, 38, 62, 69
, 17
, 33, 63
, 24, 138
, 74, 140
, 43
, 32, 33
, 32
,
,
,
,
,
,
34, 37
33
33
33
32
32
, 15
, 15
, 15
, 33
, 16
, 32
, 86
,2
,2
, 15, 26
, 71
enumerate , 53
, 64
, 19
, 20
two-column mode , 72
, 134
right-hand page , 61
, 43
, 43
, 43, 45
, 50
, 73
, 43
rule , 54
, 16
164
, 54, 77
ligature , 128
, 23
, 24, 27
, 24
, 18
, 90
, 88
, 77
, 88
, 70
, 57
, 48
, 43
, 14
, 43
crop marks , 138, 150
, 13, 30
, 17
itemize , 52
item label , 52
, 51
, 23
, 33
, 30, 88
, 93
, 119
, 94
, 93
, 93
, 94
,5
, 14, 16
, 14
, 14
, 15
, 64
, 125
, 129
, 89
math mode , 125
, 9, 12, 17
, 54
, 15
, 16
, 21
math inline mode , 126
, 68, 136
, 70
footer , 44
header , 44
, 38
, 38
math display mode , 127
, 20
131
array , 131
, 133
, 20
12, 67, 142
, 142
, 144
, 44
, 71, 91
,1
,1
, 14
, 12, 144
14, 54
, 26
description , 53
33
, 66
, 52, 79
15
, 24
165
babel, 69
backslash, 13
baseline, 14, 54
bg5latex, 40
\bibitem, 144
Bibliography, 144
Bibliography, 144
BibTEX, 144, 146
bibtex, 12, 146
big point, 43
Big-5, 19, 116
\bigskip, 50
bm, 71
book, 24, 51, 60, 61
booktabs, 85, 90
BoundingBox, 120
box, 42, 55, 70, 78, 91
, 21
, 26
point , 43
, 17
, 16
, 33
, 30, 44
, 22
, 59
~, 46
a4paper, 45
abstract, 29
Adobe Acrobat Reader, 145
Adobe Times, 33
afterpage, 71
align, 133
alltt, 63
alltt, 63
American Mathematical Society, 4, 68
AMS, 4, 68
AMS-LATEX, 68, 125, 132
amscls, 68
amsfonts, 67
amsmath, 68
amssymb, 67
amsthm, 134, 135
apostrophe, 17
\arraryrulewidth, 85
array, 69, 70, 83
\arrayrulecolor, 87
\arrayrulewidth, 80
\arraystretch, 81
article, 22
article, 25, 51, 60, 61
AUCTEX, 10
\author, 51
calc, 70
cap height, 15
caption, 139
\caption, 91
center, 47
\centering, 47
\centerline{}, 47
Chun-Chieh Huang, 75
\cite, 145
CJK, 8, 40, 116, 139, 149
CJK, 147
\cline, 80
cm-super, 65, 81
cmex, 63
CMYK
, 86
color, 23, 86
colortbl, 86
\columncolor, 87
Computer Modern font, 63
Computer Modern Roman, 33
Contents, 138
b5mp.pl, 116
166
counter, 70
crop, 150
Cross References, 140
CTAN, 5, 67
CWEB, 2
cygwin, 8, 62
cyrillic, 69
\extrarowheight, 83
FAQ, 75
\fbox, 55
\fboxrule, 56
\fboxsep, 56
fleqn, 60
floating environment, 71
flushleft, 47
flushright, 47
font, 32
font encoding, 33
font family, 33
font series, 33
font shape, 32, 33
font size, 34
fontenc, 64, 66
\fontsize, 38
fontsmpl, 72
footnote, 30
footnotesize, 30
\footskip, 45
formatter, 5
fpTEX, 7
\frac, 129
\frame, 55
\framebox, 55
Free Software, 2
Free Software Foundation, 2
FreeBSD, 7
ftnright, 72
dash, 20
date, 28
dcolumn, 70, 88
delarray, 70
depth, 15
ditto marks, 17
doc, 63
document class, 59
\documentclass, 59
Donald Arseneau, 88
Donald E. Knuth, 1
\dotfill, 47
\doublerulesep, 81
\doublerulesepcolor, 87
draft, 60
dvipdfm[x], 13, 72
dvips, 72
dvipsnam.def, 87
em, 43, 46, 50
em-dash, 20, 43
em-square, 14, 43
en-dash, 20
\enspace, 47
enumerate, 71
enumerate, 71
environment, 21
epic, 104
eps
, 51
eqnarray, 133
exscale, 63
geometry, 45
GIMP, 98
glue, 42
glyph, 14
GNU Dia, 97
GNU Emacs, 10, 77
GNU plotutils, 96
167
GNU/Linux, 2, 7
gnuplot, 96
grace, 97
graphics, 69, 86, 90
graphicx, 51, 69, 90, 119
graphpap, 65
grave accent, 47
gray-scale, 86
gs, 19
gview, 19
\headheight, 45
\headsep, 45
height, 15
\hfill, 47
hhline, 70
\hoffset, 45
\hrulefill, 47
\hspace, 47
HTML, 19
hyperref, 141, 143
hyphen, 20
Mac OS X, 8
macro, 3, 23, 59, 62, 76
\makebox, 55
makeidx, 67, 142
makeindex, 12, 142
\maketitle, 51
margin, 45
marginal note, 30, 44
\marginpar, 31
\marginparpush, 45
\marginparsep, 45
\marginparwidth, 45
markup, 12
mathptmx, 69
matrix, 132
\mbox, 55
mean line, 15
\smallskip, 50
ifthen, 66
\ifthenelse, 66
ImageMagick, 99
\includegraphics, 51, 119
indent, 16
indentfirst, 73
Index, 144
index, 142
\index, 142
\index, 67
inputenc, 66
Ipe, 97
italic, 33
italic correction, 36, 42
kile, 11
\kill, 79
168
METAFONT, 64
MetaGraf, 98
METAPOST, 51, 95, 108, 116
MiKTEX, 7
minimal, 61
minipage, 57, 78
minitoc, 138
mpost, 108
mptopdf, 109
multicol, 73
multicols, 73
\multicolumn, 80
parindent, 42
\parskip, 50
pdflatex, 13
pdftex, 64
PDFTricks, 107
Peter Flynn, 4
picture, 65, 99
Plain TEX, 4, 34
portait, 60
PostScript, 13, 43, 62
preamble, 22, 28, 45, 63, 86, 141, 144
printer point, 43
printindex, 142
ps , 52
ps2eps, 99
ps2pdf, 13
psnfss, 69
pstoedit, 99
PSTricks, 95, 106
pxfonts, 65, 82
NEdit, 10
netpbm, 99
newlfont, 67
\newline, 26
\newtheorem, 134
noindent, 16
\noindent, 27
notitlepage, 60
\qquad, 47
Qt/KDE, 11
\quad, 43, 47
quotation, 48
quote, 48
\oddsidemargin, 45
oldlfont, 67
onecolumn, 60
\onecolumn, 73
oneside, 60
openany, 61
OpenOce.org, 98
openright, 61
OT1, 33, 72
raggedleft, 47
\raggedleft, 47
raggedright, 47
\raggedright, 47
raisebox, 56
rawfonts, 74
reference point, 14
Referrences, 144
report, 24, 25, 51, 60, 61
RGB
, 86
Richard M. Stallman, 2
roman, 33
package, 23
paperheight, 44
\paperheight, 45
paperwidth, 44
\paperwidth, 45
\parbox, 78
parbox, 57
\parindent, 27
169
\rotatebox, 90
rotating, 90
\rowcolor, 87
\textbackslash, 40
textcomp, 81
\textheight, 45
\textwidth, 45
tgif, 97
thanks, 28
The Art of Computer Programming, 3
The TEXbook, 42
thebibliography, 144
theindex, 143
theorem, 75
\theoremstyle, 136
\thinspace, 47
threeparttable, 88
tie, 18
\title, 51
title page, 28, 35, 50
titlepage, 51
titlepage, 50, 51, 60
titletoc, 138
\tnote, 88
topcapt, 91
\topmargin, 45
totalheight, 15
tracefnt, 68
TUG, 9
twocolumn, 60
\twocolumn, 73
twoside, 60
txfonts, 65, 82
Type1
, 69
type1cm, 38
typewriter, 33
secnumdepth, 24
seventeen, 8
showidx, 67
showkeys, 74
sidewaysfigure, 90
sidewaystable, 90
Silvio Levy, 2
skeneil(sketch), 98
slant, 33
slides, 61
small caps, 33
somedefs, 74
summary, 30
\suppressfloats, 92
\syntaxonly, 68
syntonly, 68
T1, 33, 64, 72
tabbing, 78, 90
\tabcolsep, 80
Table of Contents, 29
tablenotes, 88
\tableofcontents, 29
tabluar, 90
tabular, 79
tabular, 70, 83
tabularx, 70, 83
TAOCP, 1, 3
teTEX, 7
teTEX, 65
tex, 64
TEX Live CD, 7
texdoc, 62
texhash, 88
TEXmacs, 5
UltraEdit, 10
\underline, 55
Unicode, 19
Unix-like, 62
170
varioref, 74
\verb, 38, 84
verbatim, 74
verbatim, 63
\verbatiminput, 74
verse, 48
\vfill, 50
Vim, 10
vim-latex suite, 10
\voffset, 45
\vspace*, 50
\vspace, 50
WEB, 2
width, 15
Windows, 62
WinEdt, 10
WYSIWYG, 5
x-height, 15
XEmacs, 10
xfig, 96
XML, 5
Xpdf, 145
xr, 74
xspace, 75
171