Академический Документы
Профессиональный Документы
Культура Документы
. . *
LATEX
cba
2008, 2012, 2013
* e-mail: E.M.Baldin@inp.nsk.su
LATEX --
2008 ISBN 978-5-9775-0230-6. -
,
Creative Commons Attribution-ShareAlike 3.0 Unported (CC-
BY-SA 3.0). ,
.
LATEX.
, 1300
LATEX 750 , , -
. -
, , , -
, .
, LATEX -
.
LATEX -
.
-
LATEX. , ,
.
The book Computer Typesetting Using LATEX was published by the BHV-
Petersburg (Russia) publishing house in 2008 under ISBN 978-5-9775-0230-6. Under
the contract with the publishing house, I have now regained exclusive rights to the
content and decided to publish it under a Creative Commons Attribution-ShareAlike
3.0 Unported License (CC-BY-SA 3.0). Please contact me if you require a different
type of copyright license for your purposes.
This book is a guide to using the LATEX document preparation system. It describes
the complete fundamentals of the typesetting and layout processes and covers at least
1300 LATEX commands and about 750 packages, styles, and classes that can be used
in the typesetting of any documents. It also deals with creating presentations, table
layouts, inserting graphics, bibliography and index, and many other tasks. Specific
examples demonstrate that publishing systems using LATEX can handle projects of
any scope and complexity. A major part of the book is devoted to the typesetting of
mathematical text, which is the key differentiator of LATEX compared to other word
processors.
The book was written completely and exclusively by means of LATEX tools. As the
author of both the content and the typesetting, I will greatly appreciate any comments
and useful advice on improving the quality of the electronic version of the book.
1. LATEX, 11
2. LATEX 21
3. 29
4. 45
5. 57
6. 69
7. 79
8. LATEX 97
9. 107
10. 121
11. 149
12. - 163
13. 185
14. 207
15. 221
16. 235
1. LATEX, 11
1.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.1.1. . . . . . . . . . . . . . . . . . . . . . 11
1.1.2. . . . . . . . . . . . . . . . . . . . . 12
1.1.3. TEX . . . . . . . . . . . . . . . . . . . . 13
1.1.4. LATEX . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.2. LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.3.1. . . . . . . . . . . . 16
1.3.2. . . . . . . . . . . . . . . . . . . . . . . 16
1.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.4.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.4.2. . . . . . . . . . . . . . . . . . . . . 18
1.4.3. LATEX . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2. LATEX 21
2.1. . . . . . . . . . . . . . . . . . . . . . . . . 23
2.2. LATEX- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3. 29
3.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.2.1. LATEX- . . . . . . . . . . . . . . . . . . . . . 31
3.2.2. . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.2.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3.2.4. . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.3.1. . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3.3.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.4.1. . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.4.2. . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.4.3. . . . . . . . . . . . . . . . . . . . . . . 42
5
4. 45
4.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
4.2. . . . . . . . . . . . . . . . . . . . . . . . . . 47
4.3. . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.3.1. . . . . . . . . . . . . . . . 49
4.3.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4.3.3. . . . . . . . . . . . . . . . . . . . . 50
4.3.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
4.3.5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4.3.6. . . . . . . . . . . . . . . . . . . . . . . 52
4.3.7. . . . . . . . . . . . . . . . . . . . . . 52
4.3.8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.3.9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
5. 57
5.1. Encapsulated PostScript . . . . . . . . . . . . . . . . . . . . . . . . . 57
5.2. EPS . . . . . . . . . . . . . . . . . . . . . . . 59
5.3. graphicx . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
5.3.1. . . . . . . . . . . . . . . . . . . . 61
5.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
5.4.1. . . . . . . . . . . . . . 63
5.4.2. float . . . . . . . . . . . . . . . 64
5.4.3. . . . . . . . . . . . . . . . . . . . . . . 65
5.4.4. . . . . . . . . . . . . . . . . . . . . . . . 66
6. 69
6.1. . . . . . . . . . . . . 69
6.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
6.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
6.3.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
6.3.2. calc . . . . . . . . . . . . . . . . . . . . . . . . 75
6.3.3. . . . . . . . . . . . . . . . . . 76
7. 79
7.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
7.1.1. . . . . . . . . . . . . . . . . . . . . . . 81
7.1.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.2.1. . . . . . . . . . . . . . . . . . . . . . . . . . 83
7.2.2. . . . . . . . . . . . . . . . . . . . . . . . . . 86
7.2.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
7.3. . . . . . . . . . . . . . . . . . . . . . . . . . . 88
6
7.3.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
7.3.2. . . . . . . . . . . . . . . . . . . . . 89
7.3.3. . . . . . . . . . . . . . . . . . . 89
7.3.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
7.3.5. . . . . . . . . . . . . . . . . . . . . . . . . . . 90
7.3.6. . . . . . . . . . . . . . . . . . . . . . 91
7.3.7. . . . . . . . . . . . . . . . . . . . . 91
7.4. . . . . . . . . . . . . . . . . . . . . . . . . 91
8. LATEX 97
8.1. ? . . . . . . . . . . . . . . . . . . . . . . . 97
8.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
8.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
8.3.1. . . . . . . . . . . . . . . . 99
8.3.2. . . . . . . . . . . . . . . . . . . . . . . . . . . 100
8.3.3. . . . . . . . . . . . . . . . . . . . . 101
8.3.4. . . . . . . . . . . . . . . . . . . . . . . . . . . 102
8.3.5. . . . . . . . . . . . . . . . . . . . . . . . . . . 102
8.3.6. . . . . . . . . . . . . . . . . . . . . . . . 103
8.3.7. . . . . . . . . . . 104
8.3.8. . . . . . . . . . . . . . . . . . . . . . . . 104
8.3.9. . . . . . . . . . . . . . . . . . . . . . 105
8.3.10. . . . . . . . . . . . . . . . . . . . . . . . . . . 106
9. 107
9.1. slides . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.2. PDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
9.2.1. . . . . . . . . . . . . . . . . . . . . . . . . 109
9.2.2. . . . . . . . . . . . . . . . . . . . . . . . . . . 110
9.2.3. . . . . . . . . . . . . . . . . . . . . . . . . . 110
9.3. beamer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
10. 121
10.1. . . . . . . . . . . . . . . . . . 121
10.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
10.2.1. . . . . . . . . . . . . . . . . . . . . . . . 125
10.2.2. . . . . . . . . . . . . . . . . . . . . . . 125
10.2.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
10.3. . . . . . . . . . . . . . . . . . . . . . . . . . . 126
10.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
10.4.1. . . . . . . . . . . . . . . . . . . . . . . . . . 127
10.4.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
10.4.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
7
10.4.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
10.5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
10.6. , . . . . . . . . . . . . . . . . . . . . . 137
10.6.1. . . . . . . . . . . . . . . . . . . . . . . . . . 137
10.6.2. . . . . . . . . . . . . . . . . . . . . 138
10.6.3. . . . . . . . . . . . . . . . . . . . . 140
10.6.4. . . . . . . . . . . . . . . . . . . . . . . . . 141
10.6.5. WWW- . . . . . . . . . . . . . . . . . . . . . . . . . 141
10.7. . . . . . . . . . . . . . . . . . . . . . 143
10.7.1. FiXme . . . . . . . . . . . . . . . . . . . . 143
10.7.2. lineno . . . . . . . . . . . . . . . . . . . . 143
10.7.3. . . . . . . . . . . . . . . . . . . . . . . . . . . 144
10.7.4. . . . . . . . . . . . . . . . . . . . . . . . 145
11. 149
11.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
11.2. tabbing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
11.3. tabular array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
11.3.1. . . . . . . . . . . . . . . . . . . . . . . . 154
11.3.2. . . . . . . . . . . . . . 155
11.3.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
11.3.4. . . . . . . . . . . . . . . . . . . . . . . . 157
11.3.5. . . . . . . . . . . . . . . . . . . . . . . . . . 158
11.3.6. tabular . . . . . . . . . . . . . . . . . . . . . . . . . . . 158
11.4. . . . . . . . . . . . . . . . . . . . . . . . . 159
11.5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
11.6. ? . . . . . . . . . . . . . . . . . . . . . . . . . . 162
12. - 163
12.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
12.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166
12.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168
12.4. BibTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . 170
12.5. . . . . . . . . . . . . . . . . . . . . . . . . . 174
12.6. xindy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
12.7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
13. 185
13.1. . . . . . . . . . . . . . . . . . . . . . . . . 185
13.1.1. . . . . . . . . . . . . . . . . . . . . . . . . . . 185
13.1.2. . . . . . . . . . . . . . . . . . . . . . . . . . 186
13.1.3. . . . . . . . . . . . . . . . . . . . . . . . . 187
13.1.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 188
8
13.1.5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189
13.1.6. . . . . . . . . . . . . . . . . . 190
13.1.7. . . . . . . . . . . . . . . . . . . . . . . . 190
13.1.8. . . . . . . . . . . . . . . . . . . . . . . . 191
13.1.9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
13.1.10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
13.1.11. . . . . . . . . . . . . . . . . 195
13.2. . . . . . . . . . . . . . . . . . . . . . . . 195
13.3. , . . . . . . . . . . . . . . . . . . . . 197
13.4. . . . . . . . . . . . . . . . . . . . . . . . . . . 199
13.5. . . . . . . . . . . . . . . . . . . . . . . . . 200
13.6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 204
13.7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 205
14. 207
14.1. . . . . . . . . . . . . . . . . . . . . . . . . . . 207
14.2. LCD- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 211
14.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212
14.4. . . . . . . . . . . . . . . . . . . . . . . . 214
14.5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
14.6. LATEX . . . . . . . . . . . . . . . . . . 218
15. 221
15.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 221
15.1.1. . . . . . . . . . . . . . . . . . . . . . . . . . 222
15.1.2. . . . . . . . . . . . . . . . . . . . . 223
15.1.3. . . . . . . . . . . . . . . . . . . . . . . . 226
15.1.4. . . . . . . . . . . . . . . . . . . . . . . 228
15.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 229
15.2.1. . . . . . . . . . . . . . . . . . . . . . . 229
15.2.2. . . . . . . . . . . . . . . . . . . . . . . 229
15.2.3. . . . . . . . . . . . . . . . . . . . . . 231
15.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233
16. 235
16.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 235
16.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
16.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
17.1.4. . . . . . . . . . . . . . . . . . . . . . . . . . 249
17.1.5. . . . . . . . . . . . . . . . . . . . . . . 249
17.1.6. . . . . . . . . . . . . . . . . . . 249
17.1.7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
17.1.8. . . . . . . . . . . . . . . . . . . . 250
17.1.9. . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
17.1.10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
17.1.11. . . . . . . . . . . . . . . . . . . . . . . . . . 251
17.1.12. . . . . . . . . . . . . . . . . . . . . . . 251
17.1.13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
17.1.14. . . . . . . . . . . . . . . . . . . . . 252
17.1.15. . . . . . . . . . . . . . . . . . . . . . . . . 252
17.1.16. WWW- . . . . . . . . . . . . . . . . . . . . . . . . . 252
17.1.17. PDF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
17.1.18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
17.1.19. . . . . . . . . . . . . . . . . . 253
17.1.20. . . . . . . . . . . . . . . . . . . . . . . 253
17.1.21. . . . . . . . . . . . . . . . . . . . . . . . . . . 254
17.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
17.2.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
17.2.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
17.2.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
17.2.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
17.2.5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 259
17.3. . . . . . . . . . . . . . . . . . . . . . . . . . . 259
17.4. . . . . . . . . . . . . . . . . . . . . . . . 259
17.4.1. , . . . . . . . . . . . . . . . . . . . . 260
17.4.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
17.4.3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260
17.5. . . . . . . . . . . . . . . . . . . . . . . . . 261
17.5.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
17.5.2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 261
17.5.3. , . . . . . . . . . . . . . . . . . 261
17.5.4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
17.5.5. . . . . . . . . . . . . . . . . . . . . . . . 262
17.6. . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
17.6.1. . . . . . . . . . . . . . . . . . 262
17.6.2. . . . . . . . . . . . . . . . . . . . 262
17.6.3. . . . . . . . . . . . . . . . . 263
17.6.4. . . . . . . . . . . . . . . . 263
17.7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
17.7.1. . . . . . . . . . . . . . . . . . . . . 264
17.7.2. . . . . . . . . . . . . . . . . . . . . . . . . 264
10
- ,
;
, .
.
.
, .
// . LATEX -
, -
, ,
.
1.1.
, , .
, . , -
, -
.
1.1.1.
, . -
, -
. ,
, , . . .
12 1. LATEX,
1.1.2.
, .
, , , .
, ,
, .
1 http://www-cs-faculty.stanford.edu/~knuth/ -
.
1.1. 13
-
. , .
.
1.1.3. TEX
TEX . TEX
(box) (glue). , -
-, -,
- . , -
/ .
, -
, , -
, .
,
, , -
. ,
. -
.
. . TEX, .
. , -
, . TEX . -
(x), ().
. TEX-
TEX-.
1.1.4. LATEX
, TEX . -
,
TEX TEX -
. , , TEX
, , -
TEX .
, 80- XX -
LATEX TEX. LATEX
TEX, .
, . -
,
, -
. LATEX, TEX
, .
14 1. LATEX,
1.2. LATEX
LATEX . LATEX ,
, ,
.
LATEX ,
CTAN The Comprehensive TeX Archive Network.
http://www.ctan.org.
CTAN . CTAN ,
TEX , . , -
CTAN:
ftp://ftp.dante.de/tex-archive/
ftp://ftp.tex.ac.uk/tex-archive/
ftp://ctan.tug.org/tex-archive/
CTAN , , :
ftp://ftp.chg.ru/pub/TeX/CTAN/
ftp://ftp.nsu.ru/mirrors/ftp.dante.de/tex-archive/
CTAN , -
TEX-. ,
perl-, CPAN (The Comprehensive
Perl Archive Network). R-2 ,
CRAN (The Comprehensive R Archive Network), Python- -
PyPI (Python Package Index), - Ruby-
RubyGems Java- CJAN JSAN.
TEX-, TEX User Groups (http://www.tug.org/), -
TEX Live (http://www.tug.org/texlive/).
TEX Live , -
CD. GNU/Linux -
teTeX. TEX Live 1996 . -
2003 TEX Live CD
DVD. - -
. -
. ,
.
TEX Live . -
, -
(http://www.gnu.org/philosophy/free-sw.html) Debian
2 R .
1.3. 15
(http://www.debian.org/social_contract#guidelines).
, , FSF.
, ,
TEX Live 2007. -
, .
MS Windows -
MiKTEX (http://www.miktex.org/), Mac OS X
MacTEX (http://www.tug.org/mactex/).
Unix- -
TEX Live, .
1.3.
: TEX!
LATEX, Linux Format (http://www.linuxformat.
ru) 20062007 .
http://www.inp.nsk.su/~baldin/LaTeX/.
LATEX -
- 2008 ISBN 978-5-9775-0230-6. -
, -
Creative Commons Attribution-ShareAlike
3.0 Unported (CC-BY-SA 3.0) CTAN: http://ctan.org/tex-archive/info/
russian/Computer_Typesetting_Using_LaTeX.
,
Google Code GPL v.3
or later ( License): https://code.google.com/p/ctex-ru/
https://ctex-ru.googlecode.com/ ( ctex-ru).
-
:
-
git. ,
Pro Git http://git-scm.com/book/ru.
e-mail: E.M.Baldin@inp.nsk.su E.M.Baldin@gmail.com. -
, -
!
16 1. LATEX,
1.3.1.
, ,
, : babel.
, ,
, : lshort.pdf. - CTAN,
{CTAN}.
, , :
\ b e g i n { e q u a t i o n }
\ i n t \ l i m i t s _{\ i n f t y }^{\ i n f t y }
e^{x ^2/2\ sigma ^2}dx=\ s q r t {2\ p i }\ sigma
\ end { e q u a t i o n }
, . -
.
, ,
, , :
\begin{equation*}
\int\limits_{-\infty}^{\infty} 2
/2 2
= 2
e^{-x^2/2\sigma^2}dx=\sqrt{2\pi}\sigma
\end{equation*}
1.3.2.
,
LATEX. , -
, -
, , .
, , ,
( ) TEX Live -
247. ,
, X.
-
, , :
,
TEX Live.
1.4. 17
LATEX, , -
. -
.
, -
, .
,
.
1.4.
LATEX .
. , TEX,
. , LATEX
.
LATEX . -
, ,
, , .
LATEX , -
.
-
.
-
, . -, -
LATEX . -
CTAN (http://www.ctan.org) TUG (http://www.tug.org).
1.4.1.
. . TEX [1] TEX.
LATEX , , . TEX ,
, -
. LATEX. -
.
.
. . METAFONT [2] , TEX, -
METAFONT. -
MetaPost,
.
. . [3] . . , -
TEX METAFONT.
, TEX , -
.
18 1. LATEX,
,
.
1.4.2.
. LATEX [4] .
, .
.
. , . . LATEX
LATEX 2 [5]
LATEX. -
LATEX .
. , .
. , . . LATEX -
[6] LATEX,
MetaPost PostScript. -
, TEX
.
. : , -
PostScript MetaPost. - ,
.
. , . LATEX Web--
[7] LATEX WWW.
LATEX. , -
, . , PDF
. XML .
LATEX 2 . LATEX 2 94 -
1999 .
: http://xtalk.msk.su/tex/.
. -
. : .
.
1.4.3. LATEX
. . LATEX 3- [8]
. . . -
, ,
. , , ,
: http://www.mccme.ru/free-books/.
. . , . . LATEX - 3- [9]
. , ,
, . -
1.4. 19
, .
: http://www.tutor.nsu.ru/books/tex/.
. . LATEX [10] -
.
.
2
LATEX
-
.
.
, LATEX -
. , -
. . -
.
: , !!! -
1 helloworld.tex, -
:
%
\ documentclass { a r t i c l e }
% ,
%
\ u s e p a c k a g e [ warn ] { mathtext }
% TEX
\ u s e p a c k a g e [ T2A] { f o n t e n c }
%
% cp 1251 u t f 8
\ u s e p a c k a g e [ k o i 8r ] { i n p u t e n c }
%
\ usepackage [ english , r u s s i a n ] { babel }
1 , emacs
,.
22 2. LATEX
%
\ usepackage { i n d e n t f i r s t }
%
\ b e g i n { document }
\LARGE , ! ! !
\ end { document }
, %, . ,
\begin{document}, . -
.
.
tex-.
:
> l at ex helloworld . tex
This i s pdfeTeXk , V e r s i o n 3 . 1 4 1 5 9 2 1 . 3 0 . 3 2 . 2 (Web2C 7 . 5 . 5 )
%&l i n e p a r s i n g e n a b l e d .
e n t e r i n g extended mode
( . / helloworld . tex
LaTeX2e <2003/12/01>
...
( . / h e l l o w o r l d . aux ) [ 1 ] ( . / h e l l o w o r l d . aux ) )
Output w r i t t e n on h e l l o w o r l d . d v i ( 1 page , 240 b y t e s ) .
T r a n s c r i p t w r i t t e n on h e l l o w o r l d . l o g .
>
LATEX helloworld.dvi. :
xdvi2 dviout3 :
> xdvi h e l l o w o r l d . dvi
dvi- PostScript4 gv (
Unix) ghostview ( Windows),
PostScript- ( , ), :
> dvips helloworld . dvi
> gv h e l l o w o r l d . ps
> l p r h e l l o w o r l d . ps
2 xdvi Unix- .
.
3 dviout T X Live dvi MS Windows.
E
4 PostScript ,
, !!!
. 2.1. , !!! LATEX
, LATEX-, , -
, , , -
///.
2.1.
, , -
LATEX .
latex ,
:
> latex
This i s pdfeTeXk , V e r s i o n 3 . 1 4 1 5 9 2 1 . 3 0 . 3 2 . 2 (Web2C 7 . 5 . 5 )
%&l i n e p a r s i n g e n a b l e d .
LATEX , .
^C (Ctrl+C).
latex,
, LATEX ,
, :
! Undefined c o n t r o l s e q u e n c e .
l . 11 \ e r r o r i n b o d y
?
5 PDF Portable Document Format. , PostScript, Adobe
Systems. .
24 2. LATEX
(?) h, ,
.
? h
? x
, x
. -
.
, (?).
: . -
.
LATEX -
, -
. ,
LATEX, -
.
2.2. LATEX-
LATEX .
, .
LATEX-.
tex. -
, , dvi. Dvi device independent
( ) , -
,
. , dvi- ,
dvi-.
xdvi dvi- -
. . -
, -
. dvi- dvips.
dvips PostScript, -
( PostScript ),
Ghostscript. dvi-
2.2. LATEX- 25
.eps .tex
.bbl (.fmt)
. 2.2. LATEX-
, :
I. .
fmt . , , LATEX
. -
.
TEX :
> texconfig init
LATEX-. latex
pdflatex, pdf-,
png6 pdf.
, .
, .
3
,
!
.
, -
. .
3.1.
LATEX .
, , -
, . -
, , ,
. -
.
. . LATEX -
.
: \, $, %, _, {, }, &, #, .
. :
: <<\t e x t b a c k s l a s h >>, <<\$>>, <<\%>>, <<\_>>1 , <<\{>>,
<<\}>>, <<\&>>, <<\#>>, <<\^{}>> <<\~{}>>.
. :
1 underscore -
_ .
30 3.
.
: { }. .
, -
, .
. LATEX \ (backslash
) , -
. , -
. .
, :
\command{}. , LATEX ( \LaTeX) -
, \LaTeX{}.
. LATEX :
(param1 param2),
(param3 param4).
LATEX . , -
\textbf{} .
LATEX , -
-
. : \chapter,
\section, \subsection .
LATEX
.
. -
, -
\protect. , :
\ s u b s e c t i o n { \ p r o t e c t \ f o o t n o t e { }}
. LATEX -
.
, , .
:
%
\bfseries
%
\ t h i s p a g e s t y l e {empty}
3.2. 31
. , -
\begin{} \end{}, .
:
\ begin { center }
\ end { c e n t e r }
, ,
.
3.2.
. -
-
, .
3.2.1. LATEX-
tex- : , ,
. :
%
% , , a r t i c l e book
\ d o c u m e n t c l a s s [ a 4 paper , 1 2 pt , o n e s i d e ] { s c r a r t c l }
%
\ u s e p a c k a g e [ k o i 8r ] { i n p u t e n c }
%
\ usepackage [ english , r u s s i a n ] { babel }
\ usepackage { i n d e n t f i r s t }
\ usepackage { misccorr }
%
\ u s e p a c k a g e {. . . }
...
%
\newcommand{\mycommand}{. . . }
\renewcommand{\ oldcommand }{. . . }
...
%
...
%
\ b e g i n { document }
%
\ end { document }
32 3.
\documentclass
. \usepackage
.
,
inputenc , , koi8-r2 , cp8663 ,
cp12514 utf85 (Unicode).
babel, ,
. -
, (\No),
(\S) .
,
, indentfirst. ,
, babel -
. misccorr
babel.
. , , -
LATEX .
TEX Live -
, .
language.dat
(fmt-).
, , MiKTeX
MiKTeX Options6 , GNU/Linux -
texconfig7 . -
HYPHENATION, latex. -
8 language.dat. :
2 koi8-r 8- UNIX- -
. RFC 1489.
3 cp866 8- , -
DOS OS/2.
4 cp1251 Windows-1251 8-
Microsoft Windows.
5 UTF-8 (Unicode Transformation Format) ,
.
6 Languages.
.
texconfig .
, , :
texconfig init.
8 $EDITOR.
, vi. vi, -
:q
vi.
3.2. 33
e n g l i s h hyphen . t e x
r u s s i a n ruhyphen . t e x
. -
babel. , ,
. -
, -
:
r u s e n g ruenhyph . t e x
=r u s s i a n
=e n g l i s h
, LATEX
.
.
3.2.2.
\documentclass[]{} -
, .
, -
. , ,
article. -
.
report, book.
, -
.
, - -
.
. , -
revtex4. -
eskdx ( ),
CTAN TEX Live. , -
LATEX-, -
KOMA-Script: scrartcl, scrreprt scrbook article, report
book .
. ,
, -
. ,
( )
, .
.
34 3.
-
, , :
\ d o c u m e n t c l a s s [ a 4 paper , 1 2 pt , o n e s i d e ] { s c r b o o k }
a4paper ( ,
, a5paper), 12pt ( -
10pt 11pt), oneside (
).
, -
. . . ncc
. CTAN,
TEX Live.
3.2.3.
(sty) -
, - .
\usepackage[]{}.
,
. LATEX -
. TEX Live
sty-. , -
,
. .
. LATEX, -
. lh,
Computer Modern. -
, -
, . 2001
METAFONT- Type1.
,
pdf- .
LATEX -
inputenc. -
.
: koi8-r, cp866, cp1251 utf8.
, . , - , -
, LATEX
T2A-9 .
t2filter. .
9 cp1251,
.
3.3. 35
:
> locate t 2 f i l t e r . c
{TEXMF}/ texmfd i s t / doc / g e n e r i c / t 2 / e t c / t 2 f i l t e r . c
> cd {TEXMF}/ texmfd i s t / doc / g e n e r i c / t 2 / e t c /
> g c c Wall O2 s o ~/ b i n / t 2 f i l t e r t 2 f i l t e r . c
> l a t e x { } . t e x | t 2 f i l t e r
3.2.4.
, document, .
- , ,
, \end{document}.
3.3.
.
.
3.3.1.
// , .
.
. , % , -
.
,
.
comment verbatim.
. LATEX
. .
.
:
.
.
36 3.
. ,
:
\ par
. -
\par:
\ par
. -
. ,
\emph, :
\emph{!:} \textbf{ }, !: ,
\textit{}, \textsc{}, , ,
\textsl{ } . .
:
\bfseries , \itshape , \scshape \slshape
.
, -
, :
\textbf{\textit{ }}\par
\textbf{\textmd{\textit{ }}}
\textmd , , -
, \textbf.
\emph :
{\itshape \emph{}}
.
.
\normalsize. 3.1
.
-
Roman. (Sans
Serif) c \textsf (Typewriter) -
\texttt.
3.3. 37
\tiny
\scriptsize
\footnotesize
\small
\normalsize
\large
\Large
\LARGE
\huge
\Huge
3.1.
. -
enumerate, itemize. -
.
:
\begin{enumerate}
\item : :
\begin{inparaenum}
1) : ) , ) ,
\item , \item , \item .
) .
\end{inparaenum}
\item . \par 2) .
: :
\begin{itemize} ,
\item ,
.
\item .
\end{itemize}
\end{enumerate}
\item,
.
inparaenum
inparaitem paralist ( . 133).
3.3.2.
. . -
, , , ,.
38 3.
, , , , , , , -
.
, LATEX , .
. LATEX
. -
:
,
;
\, ;
\ .
,
, -
"=
--
, ,
, ,
: .\,.~ "---
: . .
<<>> \@.
. :
: .\,. ( ..),
. . ( ..), . , . 1
.~, .~1 ~.\,.\
. . . .
~.\,.
LATEX , ,
.
.
, \
~. ,
( ), .
\@.
, , -
\/
: {\LARGE {\itshape }}
{\LARGE {\itshape }\/}. : .
, -
. ,
,
.
, . , TEX, -
- (hyphen), (en-dash), (em-
dash) .
3.3. 39
, ,
, - .
babel russian
, :
( , ) ,
(1015, 2001 2006) ,
( \LaTeX{} " ) ,
( $ ab=c $ ) .
"~, , "~ .
,
, "~
"~ .
", . \ , .
.
":
" .
, -
, .
. , LATEX . -
, , .
, ,
, .
\,
: \\ , \TeX\\ .
\ t e x t b f { b a b e l }
"=, ,
"= .
.
-
\hyphenation{ =}. -
, . -
, ,
.
40 3.
\hyphenation -
, .
\mbox{ }.
. \ldots. -
, ~ (
).
. 1.5
2 . ,
.
\ t e x t b f { } \ t e x t b f { }
,
" \ t e x t b f { } : \ t e x t b f { \ } , \ t e x t b f { \ } "
\ t e x t b f { } \ , \ t e x t b f { } \
: \ t e x t b f { } \ , \ t e x t b f { } \ .
. babel, , -
, : ( )
( ):
,
.
3.4.
LATEX . , , -
, 20 , -
,
, .
3.4.1.
, -
. -
titlepage. -
, ,
3.4. 41
.
. , -
:
\ t i t l e {\LaTeX , Unix }
\ a u t h o r { . \ ,. ~ \ thanks { em a i l : E .M. Baldin@inp . nsk . su }}
\ d a t e {2002}
\ maketitle
% a r t i c l e
\ begin { abstract }
\LaTeX , Unix .
\ end { a b s t r a c t }
\maketitle , -
(\title), (\author)
(\date). \thanks -
. ,
, \and
.
( article) -
, abstract.
( book) -
titlepage,
. , ,
.
3.4.2.
-
\tableofcontents,
. .
, -
. , -
, -
, , .
:
\ s u b s e c t i o n { }
\ l a b e l { sec : base : sec }
. . .
.
\part{} \chapter{}.
42 3.
, article (scrartcl) report,
book (scrbook).
:
\ s e c t i o n { }
\ label { section }
\ s u b s e c t i o n { }
\ label { subsection }
\ s u b s u b s e c t i o n [ ] { - , }
\ label { subsubsection }
\paragraph {}
\ l a b e l { paragraph }
\subparagraph {}
\ l a b e l { subparagraph }
,
-
.
-
. , ,
,
*, , \section*{}.
3.4.3.
, LATEX TEX -
TEX,
.
, \label{}.
, -
. -
(:) (-).
\label{sec:base: ref }. :
<< >> -
~\ref{sec:base:ref} 3.4.3 -
~\pageref{sec:base:ref}. 42.
3.4. 43
, ( \ref) -
( \pageref) LATEX . -
.
, , , -
. \label
.
\caption, \item.
4
. . .
.
TEX , LATEX
. TEX-
, LATEX ,
.
.
, -
. . .
-
.
.
LATEX , TEX-.
(
: http://ru.wikipedia.org ).
TEX -
(The American
Mathematical Society AMS), -
TEX,
-TEX. 1987 -TEX
LATEX amsmath.
amsmath LATEX , -
. -
amsmath.
46 4.
, :
\ u s e p a c k a g e {amsmath}
, -
, , .
.
4.1.
.
.
LATEX , -
. , ,
= 2 .
.
1 $$
- \(\). -
, ,
, . ($) -
, - , $ 2
-.
, ,
equation. -
, . :
\begin{equation}
\label{eq:math:ex1}
2
\int\limits_{-\infty}^{\infty} /2
= 2 (4.1)
e^{-x^2/2}dx=\sqrt{2\pi}
\end{equation}
, -
\eqref{eq:math:1}3 .
1 : \begin{math}
\end{math}. -
.
2 LAT X, -
E
/.
. ,
, \protect.
, ,
.
3 \label.
4.2. 47
, -
equation*4 .
.
amsmath fleqn,
\mathindent. nccmath -
\fleqn[], fleqn. -
nccmath \ceqn.
-
. LATEX
. -
:
\displaystyle , ,
\textstyle ,
\scriptstyle ,
\scriptscriptstyle .
.
:
\begin{equation*}
\frac{1}{1+ 1
\frac{1}{1+ 1
1+ 1
\frac{1}{1+ 1+
1+ 1
2
\frac{1}{2}}}}
\end{equation*}
\begin{equation*}
\frac{1}{\displaystyle 1+ 1
\frac{1}{\displaystyle 1+ 1
1+
\frac{1}{\displaystyle 1+ 1
1+
\frac{\displaystyle 1} 1
1+
{\displaystyle 2}}}} 2
\end{equation*}
,
. LATEX, , , .
4.2.
, , -
. -
,
.
4 equation . -
. (*)
.
48 4.
mathtext ( t2)
. warn,
-
.
mathtext babel / fontenc:
\ u s e p a c k a g e [ warn ] { mathtext }
\[
v_{}=\frac{S_{}-S_{}}
=
{\delta t}
\]
-
\[\] equation*.
-
. ,
:
amstext, amsmath, -
\text, .
:
\[v_{}=
\frac{\text{ }-
=
\text{ }}
{\text{ }}\]
, -
\text . -
\text .
4.3.
, . -
,
, - -
. .
4.3. 49
4.3.1.
. -
, ,
. , -
(,
123, 456, 789) . ,
:
\(3.14159\)\par 3.14159
\(3,14159\) 3, 14159
. , -
. ,
, , -
:
\(3.14159\)\par 3.14159
\(3{,}14159\) 3,14159
ncccomma nctools. -
,
, , . ,
, = 1, 2, . . . ,
.
4.3.2.
, .
:
\[A_{\text{ }}\quad
B^{\text{ }}\quad
C_n^k\]
, ,
.
: \(a^2+b^2=c^2\), 2 + 2 = 2 .
50 4.
4.3.3.
. . -
amsfonts, :
\begin{itemize} ABCD ,
\item\(ABCD\) "--- ,
ABCD ,
\item\(\mathbf{ABCD}\) "--- ,
\item\(\mathbb{ABCD}\) "--- , ABCD ,
\item\(\mathcal{ABCD}\) "--- , ABCD ,
\item\(\mathfrak{ABCD}\) "--- ,
ABCD ,
\item\(\mathscr{ABCD}\) "--- mathrsfs.
\end{itemize} A BC D mathrsfs.
, -
.
( \mathfrak).
. , ,
:
\alpha \beta \gamma \delta \epsilon
\zeta \eta \theta \iota \kappa
\lambda \mu \nu \xi o
\pi \rho \sigma \tau \upsilon
\phi \chi \psi \omega \Gamma
\Delta \Theta \Lambda \Xi \Pi
\Sigma \Upsilon \Phi \Psi \Omega
LATEX ,
.
amssymb:
% \kappa, \epsilon \phi
\renewcommand{\ kappa }{\ varkappa }
\renewcommand{\ e p s i l o n }{\ v a r e p s i l o n }
\renewcommand{\ p h i }{\ v a r p h i }
LATEX . TEX Live
LATEX (The Comprehensive LaTeX Sym-
4.3. 51
\hat{a} \bar{a} \vec{a} \dot{a}
\ tilde {a} \pm \mp \times
\cdot \div \lor \land
\neg \forall \exists \in
6 \le > \ge \ll \gg
= \neq \equiv \sim \simeq
\approx \propto \parallel \perp
\angle
^ \sphericalangle
\triangle \infty
\ell \sum \prod \varnothing
(6 >)
:
% \le \ge
\renewcommand{\ l e }{\ l e q s l a n t }
\renewcommand{\ ge }{\ g e q s l a n t }
4.3.4.
:
\ s q r t [ ] { }
. .
\[
\overline{
\underline{\Large
2
3
\sqrt[3]{a}+\sqrt[2]{b}+\sqrt[99]{g} + + 99
}
}
\]
, -
.
, , ,
, .
52 4.
\mathstrut5 . -
,
:
\[\Large
\sqrt[3]{\mathstrut a}+
3
2
99
\sqrt[2]{\mathstrut b}+ + +
\sqrt[99]{\mathstrut g}
\]
4.3.5.
\frac6 :
\[
=
=\frac{}{}
\]
LATEX, ,
.
4.3.6.
, -
2 + + = 0:
\[
2 4
x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} 1,2 =
2
\]
,.
4.3.7.
- -
. , ,
, . -
, , .
5 strut .
6 fraction .
4.3. 53
= -
.
.
. \frac{d F(x)}{dx}. -
\partial:
, . -
\int:
\[
\frac{d}{dx}\int F(x) dx=F(x) () = ()
\]
, ,
, -
. , , wasysym -
integrals. , .
,
.
,
. :
\[
\int_0^{\infty}\quad
\int\limits_0^{\infty}\quad
\sum_{i=1}^n\quad 0 =1
=1
0
\sum\nolimits_{i=1}^n\quad
\]
.
\limits. ,
\sum .
\nolimits.
54 4.
4.3.8.
,
. -
,
. babel
, -
.
: \cos, \arccos, \sin, \arcsin, \tg, \arctg, \ctg, \arcctg, \sh, \ch,
\th, \cth, \exp, \ln, \log, \lim, \min \max.
.
\begin{equation*}
\begin{split} log2 10 = ln 10/ ln 2 3.32
&\log_2 10=\ln10/\ln2\simeq3.32 \\ sin
lim =1
&\lim_{x\to0}\frac{\sin x}{x}=1\\ 0
&(a+b)^n=\sum_{k=1}^n C^k_n a^kb^{n-k}
\end{split} ( + ) =
=1
\end{equation*}
, \log () \lim
() . -
\DeclareMathOperator:
%
\ DeclareMathOperator {\ l o g l i k e }{ l o g l i k e }
\ DeclareMathOperator {\ liml i k e }{ liml i k e }
( ) ( ).
4.3.9.
-
. .
, , -
:
((
((
\[ ( \big( \Big( \bigg( \Bigg( \] (
-
l ( \left),
r ( \right) m:
4.4. 55
\[ \Biggl|\int\Biggl| \Biggm|\int\Biggm|
\Biggr|\int\Biggr|\]
, -
, . \left \right
.
\[\left(
\left[
\left\langle
\left\{
\left\uparrow
\left\lceil
\left|
{ } 4 3 2
\left\lfloor 8 7 6 5
\text{-}^{10} 10 9
-
\right\rfloor^9
\right|^8
\right\rceil^7
\right\downarrow^6
\right\}^5
\right\rangle^4
\right]^3
\right)^2\]
4.4.
,
, , -
. :
a + b =
= c
-
. 7 ,
:
%
\newcommand{\hm} [ 1 ] { # 1 \ nobreak \ d i s c r e t i o n a r y {}%
{\ hbox {$\ mathsurround=0pt #1$}}{}}
\hm, -
, : \(a + b \hm{=} c\).
7 fido7.ru.tex.
56 4.
.
.
-
(=, >, <, 6, >, =, ); ,
; . -
- ,
.
. -
, 13.
5
, TEX -
.
, . . . .
TEX ,
- .
. -
.
LATEX Encapsulated PostScript.
PostScript, -
. LATEX -
,
:
%! PSAdobe2 . 0 EPSF2 . 0
%%C r e a t o r : d v i p s ( k ) 5 . 95b Copyright 2005 R a d i c a l Eye S o f t w a r e
%%T i t l e : p i c t u r e . d v i
%%BoundingBox : 127 464 430 667
%%DocumentFonts : SFRM1200 SFRM0800
%%EndComments
PostScript1 . -
BoundingBox . -
, -
.
(bp=1/72 in), 0.351 . -
.
PostScript- EPS,
, , BoundingBox.
ps2eps -
. , -
Ghostscript -
PostScript:
> g s q dSAFER dNOPAUSE dBATCH sDEVICE=bbox
bbox.
-q, -dNOPAUSE -dBATCH
. -dSAFER , Ghostscript
2 .
EPS- -
. -
, PostScript, -
.
- PostScript,
.
, / -
epstool .
1 . -
PostScript-
.
.
2 , ,
read-only. , Ghostscript
.
5.2. EPS 59
EPS -
pstoedit , , . ,
- PostScript- -
.
, .
5.2. EPS
LATEX
EPS. . -, ,
, .
, convert ImageMagick,
.
-
: latexdvipsps2pdf pdflatex, -
PNG3 JPEG4 ,
PDF5 . , -
. ,
. pdflatex .
JPEG -
jpeg2ps, CTAN-
{CTAN}/nonfree/support/jpeg2ps. JPEG-,
eps-. JPEG -
PostSript-. , -
PostScript Level 2. ,
,
.
sam2p
bmeps. CTAN graphics/sam2p
support/bmeps . sam2p , -
,
bmeps PNG JPEG. -
eps- .
.
bmeps ,
eps-, sam2p .
3 Portable Network Graphics ,
.
4 Joint Picture Experts Group , -
.
5 Portable Document Format ,
Adobe System.
60 5.
CTAN {CTAN}graphics/a2ping
perl- a2ping.pl. -
sam2p Ghostscript, - -
PostScript .
5.3. graphicx
graphicx6 , \includegraphics:
\includegraphics[width=\textwidth]{title.eps}
\textwidth . \includegraphics -
. -
=, .
keyval. -
.
bb BoundingBox LATEX-, eps-
. -
,
, : [bb=127 464 430 667]. bb -
,
: [bbllx=127,bblly=464,bbrx=430,bbry=667].
BoundingBox
viewport - -
BoundingBox, -
, trim -
, , .
clip BoundingBox. -
, -
.
false. clip -
true.
.
angle .
6 graphicx graphics .
, .
5.3. graphicx 61
origin , .
origin -
: l, b, r t , ,
. . -
, : lt, rt, rb lb. c
.
width .
height .
scale .
keepaspectratio . -
.
A L TEX
\includegraphics[trim=110 0 105 100,clip,
width=0.49\textwidth]{title.eps}
\hspace{0.5cm}
\includegraphics[viewport=0 0 100 200,clip,
width=0.49\textwidth,
height=3cm,keepaspectratio, LATEX
angle=180,origin=c]{title.eps}
\includegraphics .
.
5.3.1.
graphicx
. , -
png-:
\ D e c l a r e G r a p h i c s R u l e { . png }{ e p s } { . bb } { bmeps p3 c #1}
, -
. png-.
, LATEX.
, eps
Encapsulated PostScript, , dvips -
. ,
BoundingBox, bb
:
%%BoundingBox : 0 0 848 979
62 5.
png- , -
, :
> bmeps b . png . bb
, -
.
. #1 . -
dvi-.
,
. , dvi-
xdvi -allowshell.
,
. PostScript dvips
-R0. - -
eps--
.
eps -
:
\ D e c l a r e G r a p h i c s R u l e {}{ e p s }{}{}
MetaPost,
. , ,
BoundingBox , .
5.4.
.
-
. \includegraphics , -
.
, LATEX :
(float7 ). , -
.
figure:
\ b e g i n { f i g u r e } [ ht ]
\ c e n t e r i n g %
\ i n c l u d e g r a p h i c s {}
\ c a p t i o n {}\ l a b e l { f i g : metka }
\ end { f i g u r e }
7 , , -
float.
floatraw.
5.4. 63
figure -
:
h ,
t ,
b ,
p , -
.
figure . -
h, t b, LATEX
-
.
LATEX -
, -
. , , ,
: [b!].
5.4.1.
, -
. ,
.
clearpage
LATEX , -
. - -
- . \clearpage.
, -
, .
, -
. , afterpage,
:
\ a f t e r p a g e {\ c l e a r p a g e }
\afterpage -
.
suppressfloats
\suppressfloats -
. -
t b
.
64 5.
placeins
placeins -
. \FloatBarrier.
, , -
.
. -
(section) [section]
:
\ usepackage [ s e c t i o n ] { p l a c e i n s }
endfloat
-
, . endfloat
. .
5.4.2. float
-
. , , -
\parbox minipage:
\ parbox [ ] { }{}
\ b e g i n { minipage } [ ] { }
\ end { minipage }
,
-
. -
( [c] ),
([t]) ([b]).
:
\ b e g i n { f i g u r e } [ ht ] \ c e n t e r i n g
\ parbox [ b ] { 0 . 4 9 \ t e x t w i d t h }{\ c e n t e r i n g
\ i n c l u d e g r a p h i c s {-1}
\ c a p t i o n {-1}\ l a b e l { f i g : metka 1}}
\ h f i l \ h f i l%
\ b e g i n { minipage } [ b ] { 0 . 4 9 \ t e x t w i d t h }
\ centering
\ i n c l u d e g r a p h i c s {-2}
5.4. 65
\ c a p t i o n {-2}\ l a b e l { f i g : metka2}
\ end { minipage }
\ end { f i g u r e }
\parbox minipage -
.
.
-
.
subfig . -
.
miniplot , subfig, .
figsize
.
dpfloat ,
. .
5.4.3.
-
-
,
LATEX
.
,
, -
-
.
. 1.
-
-
floatflt wrapfig. -
, floatflt - . 5.1. .
,
CTAN. .
floatingfigure wrapfigure .
\ b e g i n { f l o a t i n g f i g u r e } [ ] { }
...
\ end { f l o a t i n g f i g u r e }
floatingfigure
:
rflt ,
lflt ,
vflt ( ).
66 5.
wrapfigure :
\ b e g i n { w r a p f i g u r e } [ ]
{}{}
...
\ end { w r a p f i g u r e }
floatingfigure wrapfigure
. :
r ,
l ,
i ,
o .
,
, ,
.
, . -
. ,
, , .
nccfloats ncctools, . . :
\ s i d e f i g ( ) ( )
{\ i n c l u d e g r a p h i c s {}}{}
\sidefig ,
. .
. nccfloats.pdf.
5.4.4.
\caption,
.
. ,
. .
.
\protect. \caption
,
,
.
,
\caption . -
caption ccaption.
caption.pdf ccaption.pdf .
5.4. 67
\usepackage[russian]{babel}
., -
.
. -
, , :
\ usepackage { ccaption }
% : .
\ c a p t i o n d e l i m { . } % !
,
, , .
. mcaption margincap:
\ b e g i n { f i g u r e } [ ht ]
\ b e g i n { margincap }{}
\ i n c l u d e g r a p h i c s {}
\ end { margincap }
\ end { f i g u r e }
,
. mcaption.pdf.
6
- ,
. ,
. ,
. 100% .
LATEX -
, , . -
.
.
6.1.
LATEX .
, . 60
\textwidth , , .
-
\newlength. -
. ,
- -
\setlength:
\newlength{\MyLength}
\MyLength
\setlength{\MyLength}{1cm plus 2.5fill minus 5mm}
74.69145pt plus 2.5fill minus
\addtolength{\MyLength}{5em}
14.22636pt.
\lstinline!\MyLength! \the\MyLength.
70 6.
LATEX -
. -
plus, minus. -
TEX
.
\setlength . -
\addtolength ,
. \the -
.
LATEX - .
, -
. ,
(in) 2.54 72.27 (1 pt 0.35 mm).
(cm) -
(mm). LATEX -
(bp), (dd), (pc) (cc) -
, .
LATEX (sp),
1/65536 .
-
: 1ex x, 1em
M. -
, -
,
. , ,
\quad, \hspace{1em}.
\setlength{\MyLength}{1ex}
x \the\MyLength\par x 3.87405pt
\Large \setlength{\MyLength}{1ex} x 6.19771pt
x \the\MyLength
fill . TEX -
, -
: fil, fill filll, fil fill filll.
.
,
\settowidth:
\settowidth{\MyLength}{ }
\addtolength{\MyLength}{1em}
\centering
\framebox[1.2\MyLength]{ }\par
\framebox[1.2\MyLength]{ }
6.2. 71
\settoheight -
, \settodepth .
.
FAQ LATEX:
\ makeatletter1
\newcommand{\ maxwidth }{%
\ i f d i m \Gin@nat@width>\ l i n e w i d t h
\ linewidth
\ else
\Gin@nat@width
\fi
}
\ makeatother
\maxwidth ,
:
\ i n c l u d e g r a p h i c s [ width=\maxwidth ] { }
:
( BoundingBox) .
,
, ,
.
6.2.
, , , -
(counter). LATEX -
:
\newcounter{MyCount}
\setcounter{MyCount}{5}
MyCount 5,
MyCount \arabic{MyCount},
e, .
~\alph{MyCount}, \Asbuk{MyCount}.\par
1555 MDLV.
\addtocounter{MyCount}{1550}
\arabic{MyCount} \Roman{MyCount}.
\newcounter -
. , -
,
1 \makeatletter/\makeatother
LATEX-. @
, .
72 6.
. -
\setnewcounter, -
\addtocounter.
, - -
, -
. -
.
, \arabic{}.
\Roman \roman
. -
: \alph , \asbuk \Asbuk
.
,
( page), ( part, chapter,
section, subsection, subsubsection . .), (footnote),
( figure table) (equation).
\the . .
, , -
, , \the-,
, ,
:
,
:
\newcounter{Main}\addtocounter{Main}{10}
\newcounter{Dep}[Main]\addtocounter{Dep}{10}
: 10.10
: \theMain.\theDep\par
: 11.0
\stepcounter{Main}
: \theMain.\theDep
, -
. -
Dep Main. ,
(Main) -
\stepcounter, (Dep) .
(section).
chngcntr ltxmisc
. \counterwithin{Dep}{Main} -
Dep Main. -
\counterwithout{Dep}{Main}.
chngcntr.sty.
6.3. . . . 73
\refstepcounter{} \stepcounter ,
, \refstepcounter , -
\ref, , \the-:
% " "
\ newcounter { Problem } [ s e c t i o n ]
\renewcommand{\ theProblem }{\ t h e s e c t i o n . \ a r a b i c { Problem }}
\ newenvironment { Problem } [ 0 ] {%
\ par \ r e f s t e p c o u n t e r { Problem }%
\ theProblem \ , }%
{\ par }%
Problem . Problem
. \theProblem -
, .
Problem \refstepcounter{}.
:
\begin{Problem}\label{ex:1}
\end{Problem} 6.2.1
\begin{Problem}\label{ex:2} 6.2.2
6.2.1 6.2.2.
\end{Problem}
~\ref{ex:1} ~\ref{ex:2}.
6.3. . . .
. . . , . , ,
.
:
\newcommand{\ e e }{\ ensuremath { e^{+}e ^{}}\xspace}
,
. \ensuremath
:
\(J/\psi\to\ee\) / + -
\ee{}"=. + -.
\xspace xspace
, ,
.
74 6.
,
:
\newcommand{ } [ N ] [ . . ] { }
\renewcommand{ } [ N ] [ . . ] { }
\ providecommand { } [ N ] [ . . ] { }
\newcommand . ,
. \renewcommand
. \providecommand
, , ,
.
-
. /,
(1) -
(9). 4.4
(\(a + b \hm{=} c\)):
\newcommand{\hm} [ 1 ] { # 1 \ nobreak \ d i s c r e t i o n a r y {}%
{\ hbox {$\ mathsurround=0pt #1$}}{}}
(#) -
.
, , #1.
(*) \newcommand -
\hm :
\par. .
-
:
\newcommand{\exmpl}[1][]%
{<< #1>>}
.
\exmpl{} \exmpl[].
\newenvironment:
\newenvironment{outlined}%
{\hrule\smallskip\begin{center}}%
{\end{center}\smallskip\hrule}
.
\begin{outlined}
.
\end{outlined}
\newcommand:
\ newenvironment { } [ N ] [ . . ]%
{, }%
{, }
6.3. . . . 75
width
q
, height
reference depth
width = 238.50941pt height = 14.39926pt depth = 4.03355pt
, \newcommand, -
. ,
, . -
-
\renewenvironment.
6.3.1.
LATEX TEX, -, -
, TeX [1] .
,
. , LATEX ,
LATEX--.
6.3.2. calc
calc tools
. calc
:
\theMyCount.\par
1555.
\setcounter{MyCount}{\value{MyCount}-1000}
555.
\theMyCount.
calc \widthof{},
\heightof{} \depthof{} , , -
.
76 6.
calc, -
,
(4mm*2 , 2*4mm ). -
. \real
, :
\ r a t i o {}{}
calc.pdf.
6.3.3.
xifthen, -
ifthen. -
-:
\newcommand{\RusCnt}[1]{%
\ifthenelse{\equal{#1}{1}}{}{}%
\ifthenelse{\equal{#1}{2}}{}{}% , , .
\ifthenelse{\equal{#1}{3}}{}{}%
\ifthenelse{\cnttest{#1}>{3}}{}{}}
\RusCnt{1}, \RusCnt{2}, \RusCnt{3} \RusCnt{4}.
\ifthenelse ,
, ,
.
1, 2 3
\equal .
, \ifthenelse -
\cnttest{}{}. -
calc.
.
, ifthen.
(\value{} )
=, > <.
\isodd{ } ?
\isundefinedcommand{ } ?
\equal{ 1}{ 2} ?
\boolean{ } ?
\lengthtest{ 1 = 2} ? -
> <.
6.3. . . . 77
\( \) -
, \AND , \OR
\NOT .
xifthen .
\isnamedefined{ } ?
\isempty ?
\isequivalentto{ 1}{ 2} ?
\cnttest{ 1}{ 2} calc--
.
\dimtest{ 1}{ 2} calc--
.
. -
xifthen.pdf.
ifthen \whiledo:
\def\Source{ , , }
\whiledo{\not\equal{\Source}{}}
{ \GetTokens{TokenOne}{TokenTwo}{\Source}%
\fbox{\TokenOne}%
\let\Source\TokenTwo}
,
, , .
\GetTokens tokenizer,
. -
. -
, , .
tokenizer.pdf.
7
- ,
.
.
.
. , , , ,
.
,
.
() , ,
, , -
. ,
,
.
, -
. , LATEX
, -
. , ,
, , .
7.1.
. 7.1 \layout
. .
80 7.
4 5
2
6
10
9
8
11
1 + \hoffset 2 + \voffset
3 \oddsidemargin = 17pt 4 \topmargin = -25pt
5 \headheight = 17pt 6 \headsep = 20pt
7 \textheight = 595pt 8 \textwidth = 418pt
9 \marginparsep = 12pt 10 \marginparwidth = 59pt
11 \footskip = 47pt \marginparpush = 6pt ( )
\hoffset = 0pt \voffset = 0pt
\paperwidth = 597pt \paperheight = 845pt
. ,
( ). -
. ,
.
, -
. . 7.1
( 1 ).
2
. -
. \hoffset \voffset (
),
.
, .
\texthight
7 \textwidth
. \columnwidth. -
8
\linewidth ,
.
\oddsidemargin 3 .
-
.
\oddsidemargin, \evensidemargin.
\topmargin 4
, \headheight ,
5 -
\headsep .
6
\footskip -
.
\marginparwidth
10
\marginparsep .
9 -
: \marginparpush.
7.1.1.
\paperwidth \paperheight.
LATEX (article, book, report letter) -
, letter. -
,
A4 (210 297 ).
a4paper :
\ d o c u m e n t c l a s s [ a 4 paper , 1 2 pt , o n e s i d e ] { s c r b o o k }
82 7.
A5 ( -
A4) a5paper.
7.1.2.
- -
.
(, slides).
-
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
- -
- -
-
,
landscape lscape. , -
, 90
. pdflatex
, ( ),
pdftex
- pdflscape.
, ,
portland,
, -
. \portrait
\landscape . -
. -
, .
- 180 1 , -
rotpages.
1 , , -
.
7.2. 83
\rotboxpages \endrotboxpages, -
. ,
. rotpages-doc.pdf
7.2.
, TEX -
, , LATEX:
article, book, report letter. ,
, -
. -
. , scrartcl, scrbook, scrreprt scrlettr
KOMA-Script, , ,
A4. . .
ncclatex ( ) ncc,
TEX.
7.2.1.
, , -
. - ,
. , -
, .
-
, : geometry, vmargin typearea.
: !
geometry
geometry ,
:
keyval, -
5. ,
calc.
. -
geometry.pdf
.
, . -
84 7.
. , -
, . ,
.
vmargin
vmargin . -
:
\ s e t p a p e r s i z e [ ] { }
-
: A0, A1, . . . , A9, B0, B1, . . . , B9, C0, . . . , C9, USletter, USlegal
USexecutive. landscape
( ) portrait ( ).
-
custom :
\ s e t p a p e r s i z e { custom }{}{}
,
:
%
\ s e t m a r g i n s { }{ }%
{ }{ }%
{}{}%
{}{}%
%
\ s e t m a r g n o h f { }{ }%
{ }{ }%
%
\ setmarg { }{ }%
{ }{ }%
vmargin : \setmarginsrb,
\setmargnohfrb, \setmargrb. -
,
.
vmargin.pdf.
typearea
typearea KOMA-Script -
, (scrartcl, scrbook . .),
7.2. 85
. -
, (Jan
Tschichold).
typearea , geometry,
:
\ u s e p a c k a g e [BCOR8 . 2 5mm] { t y p e a r e a }
pagesize typearea,
, dvi-
( dvips, xdvi ) -
. , ,
.
, 5773-90, , -
(, A1, A2,
A3, A4 ). \paperwidth
\paperheight . -
typearea \areaset,
, .
KOMA-Script (scrguien.pdf)
Construction of the Page Layout with typearea.
.
typogrid
, , -
typogrid, -
. ,
draft, final -
.
86 7.
, -
, columns=. 12.
7.2.2.
, .
.
.
:
\ p a g e s t y l e { }
,
\thispagestyle{ }.
:
empty - .
plain .
headings ,
.
,
. fancyhdr, 12.2 166,
.
7.2.3.
- A5 -
PostScript A4,
psutils, , :
psbook ,
, psnup -2 -
. PostScipt . -
, , , ,
, pstops.
pdf-, , Adobe Reader kpdf , -
. pdf-
pdfpages, pdf--
pdf-.
7.2. 87
twoup
twoup -
. booklet, -
, psbook.
twoup
booklet twoup:
\ d o c u m e n t c l a s s [ a 4 paper , 1 2 pt ] { s c r b o o k }
\ usepackage [ p r i n t ] { booklet }
\ u s e p a c k a g e {twoup}
print .
dvips, ,
:
> d v i p s T 2 9 . 6 cm , 2 1 . 0 cm dvi-
pgfpages
pgfpages pgf , -
-
. pgfpages TEX
, -
TEX. pgfpages ,
.
, :
%
\ usepackage { pgfpages }
\ p g f p a g e s u s e l a y o u t {2 on 1 } [ a 4 paper , l a n d s c a p e ,%
b o r d e r s h r i n k =5mm]
\ b e g i n { document }
\ clearpage
\ end { document }
\pgfpagesuselayout
(2 on 1). :
a4paper A4,
landscape ,
border shrink=5mm 5 .
pgf (pgfmanual.pdf)
Page Management.
88 7.
-
,
, - -
.
. 7.5. -
. 7.4. (
xdvi -
[11])
draft
7.3.
, , -
.
LATEX . , -
. ,
, , , -
. 7.4.
7.3.1.
TEX (Undefull)
(Overfull), log- , -
:
draft:
\ d o c u m e n t c l a s s [ d r a f t , a 4 paper , 1 2 pt , o n e s i d e ] { s c r b o o k }
. -
7.5 .
, LATEX , -
- . ,
, 3.
\linebreak \\. \linebreak
\\ .
7.3. 89
, -
,
.
Note microtype () -
.
pdflatex, -
TEX.
T2A, . -
. microtype.pdf.
7.3.2.
-
. \hspace.
. *-
\hspace*, ,
, .
:
\quad 1em. \qquad -
\quad, \endspace \quad.
\hfill . \hfill
, . \hfil.
\hrulefill , \hfill, .
\dotfill, .
7.3.3.
.
\noindent. -
\indent.
LATEX
: center ( ), flushleft (
) flushright ( ).
.
\begin{center} .
.
\end{center} .
\flushleft .
\flushright . .
-
. ,
90 7.
, , -
: \centering ( ), \raggedright2 ( )
\raggedleft ( ).
-
. ragged2e \RaggedRight,
:
\begin{minipage}[t]{0.48\textwidth}
\raggedright -
-
\end{minipage}\rule[-1.8cm]{0.4pt}{2cm}
\begin{minipage}[t]{0.48\textwidth} .
\RaggedRight
.
\end{minipage}
, \RaggedRight, -
.
7.3.4.
. -
-
\newpage \pagebreak. \newpage ,
\pagebreak -
.
/ -
- , :
\newcommand{\ l o n g p a g e }{\ e n l a r g e t h i s p a g e {\ b a s e l i n e s k i p }}
\newcommand{\ s h o r t p a g e }{\ e n l a r g e t h i s p a g e {\ b a s e l i n e s k i p }}
\longpage ,
\shortpage, , . \baselineskip -
.
7.3.5.
. -
, ,
2 \raggedright \flushleft .
7.4. 91
, . -
.
:
\ c l u b p e n a l t y =10000
\ widowpenalty =10000
7.3.6.
\hspace{}
\vspace{}. \vspace*{}
, ,
.
:
\bigskip , \baselineskip. -
\medskip \bigskip \smallskip 1/4 \bigskip.
\vfill . \vfill
, . \vfil.
7.3.7.
: ,
.
setspace.
\doublespacing, .
setspace \onehalfspacing \singlespacing
. -
spacing:
\begin{spacing}{2.5}
<<
.
>>.
\end{spacing}
spacing ,
.
7.4.
twocolumn:
\ d o c u m e n t c l a s s [ a 4 paper , 1 2 pt , twocolumn ] { s c r a r t c l }
92 7.
. 7.6 . -
\twocolumn[].
, , -
, . -
\onecolumn,
. -
.
.
, ,
. 7.6, -
. balance preprint .
. 7.7.
\balance.
,
. 7.7. ftnright
tools. ,
. ftnright.pdf
fixltx2e , -
.
( ,
) , -
. .
sttools
sttools , -
. ,
, .
flushend ,
\raggedend -
\flushend.
cuted strip, -
, .
strip . 7.8. -
,
.
presfull.pdf.
multicol
multicol tools -
7.4. 93
. . - . . ,
, , ,
, . , . . ,
86- 1 86- -
? ,
.
. - . 1
, , . - , , ?
. .
. , -
. - . . -
! . ! .
, , , . ,
. . . -
- - .
, : , : ,
? ? .
: . : . 1. -
,
,
,
1
-
. ,
1 1
. . . . ,
, . , ,
, . ! , . .
86- , 86- - , -
. -
- . - , -
. , : - 1
, , ? , , - ?
: . - .
-
. . -
! .
, - , . ,
, . - . -
- . .
. , - . , , : - ,
- - ? - .
, . : . -
,
1 - .
? . 1. -
1
1 1
.
.
multicols:
\begin{multicols}{3}
[\section*{}]
\RaggedRight
. .
- . -
, , . . -
. 86- .
86- "--- ,
,
.
\end{multicols}
, -
, , \RaggedRight
( 7.3.3 . 89).
multicols
. , -
.
,
.
- -
, multicol
\columnbreak.
multicols -
. , ,
t b.
, . -
.
multicol.pdf.
parallel
parallel . -
Parallel:
\ begin { P a r a l l e l }{0.4\ textwidth }{0.5\ textwidth }
\ P a r a l l e l L T e x t { F i r s t they i g n o r e you , then they l a u g h a t you ,
then they f i g h t you , then you win . }
\ P a r a l l e l R T e x t { ,
, . . }
\ end { P a r a l l e l }
7.4. 95
:
First they ignore you, then they ,
laugh at you, then they fight you, , -
then you win. . .
, -
. \ParallelLText , -
\ParallelRText, , .
parallel.pdf
8
LATEX
LATEX
, ,
.
.
, . -
.
. ,
.
8.1. ?
\documentclass.
:
\ d o c u m e n t c l a s s [ a 4 paper , 1 2 pt ] { s c r a r t c l }
,
.
cls. TEX Live 2007 208
. ,
.
. .
. , -
. -
.
98 8. LATEX
, -
TEX-
.
(2007 )
papertex (. 8.1 Ignacio Llopis),
LATEX 1 , , LATEX
.
8.2.
, LATEX -
(6) : article (), book
my papertex edition http://nachollopis.com
paper TeX
(), report (), proc (), letter
XI Februarii MMVII k 10:19h
article.
rhoncus malesuada, metus eros adipiscing dui, vel eleifend nibh velit
ut felis. Pellentesque elementum massa at nisi dapibus mollis. Etiam
This is the caption of the main image on cursus. Mauris gravida nibh ut sapien. Vestibulum pretium, felis et.
the front page.
SECTION A
\section () .
MAIN INDEX
Second heading. Fusce porttitor erat ali-
quam felis. Integer scelerisque enim at au- Index item 1. Cras molestie
gue. dui sed lectus. In purus
vitae, nunc. -
Second subheading. Facilisis sit amet, elementum nec, interdum
10:23 h Second text. Lorem ip- dui, vel eleifend nibh velit ut felis.
justo, lacinia sit amet. p. ??
( abstract).
sum dolor sit amet, consectetuer adip- Pellentesque elementum massa at nisi
iscing elit. In vitae augue. Mor- dapibus mollis. Etiam cursus. Mauris
bi fermentum, felis accumsan rhon- gravida nibh ut sapien. Vestibulum
cus malesuada, metus eros adipiscing pretium, felis et.
arcu a tincidunt ornare, sem
augue mattis erat. p. ??
SECTION B
, -
amet, condimentum non, viverra eu, augue. tempor enim. p. ??
-
elementum blandit sem. Cras sit amet justo. Cur-
abitur diam arcu, elementum commodo, tincidunt
vel, dapibus id, lectus. In egestas nibh nec leo.
Pellentesque ut nisi sed purus rhoncus vehicula.
TeX
, .
Donec commodo magna.
paper
EDITORS
WEATHER FORECAST Ignacio Llopis
lloptor@gmail.com
report -
TODAY TOMORROW FRIDAY
13 k 9 C 15 k 11 C 12 k 6 C http://nachollopis.com
book. ,
. 8.1. papertex , -
.
proc article,
. letter.
-
. .
slides .
-
, ,
.
minimal,
. minimal -
1 -
, .
8.3. 99
.
, , -
LATEX ,
.
, . , -
, . -
. , .
,
. , -
-
.
-
, , .
:
10pt, 11pt, 12pt . ,
.
a4paper .
, LATEX -
letter.
draft .
, -
.
oneside/twoside -
.
twocolumn .
8.3.
, , -
, .
8.3.1.
. -
- ,
extsizes (extarticle, extbook, extletter, extproc, extreport), -
-
10-12pt2 . , -
2 10pt, 11pt 12pt extsizes 8pt, 9pt, 14pt, 17pt
20pt. .
100 8. LATEX
.
(amsart, amsbook, amsproc), -
.
ntgclass3 -
, , .
KOMA-Script
-
KOMA-Script. . ,
( ), -
, , LATEX--
. scrartcl, scrbook,
scrlttr2, scrreprt.
KOMA-Script
9pt, 14pt 17pt. ,
, KOMA-Script . -
. -
, KOMA-Script -
.
The KOMA-Script bundle (scrguien.pdf) -
.
-
.
. 4 LATEX [10].
ncc
: article ( -
), preprint (), book () report (). -
: ncclatex.pdf.
8.3.2.
letter LATEX, ,
. -
. , , . . . -
, . LATEX
letter.
3 ntgclass (artikel1, artikel2 artikel3),
8.3.3.
-
,
. , -
1 4
, - 1.1 eskdx . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 . . . . . . . . . . . . . . . . . . . . . . .
4
4
. - 2 5
, 2.1 . . . . . . . . . . . . . . . . . . . . .
2.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5
6
5
. 2.2.1 . . . . . . . . . . . . . . . . . .
2.2.2 eskdtext . . . . . . . . . . . . . . . . . . . .
6
8
- 2.2.3 eskdgraph . . . . . . . . . . . . . . . . . . .
2.2.4 eskdtab . . . . . . . . . . . . . . . . . . . . . 10
9
eskdx, 2.3 . . . . . . . . . . . . . . . . . . . . . . . 11
2.4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
-
2.5 . . . 14
2.6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
, -
2.7 , . . . . . . . . . . . . . 18
2.8 . . . . . . . . . . . . . . . . . . . . . 18
-
2.9 . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.10 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.11 . . . . . . . . . . . . . . . . . 19
2.12 . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
. -
2.13 , , , .. . . . . . . . . . 20
3 21
: eskdtext - 3.1 . . . . . . . . . . . . . . . . . . . . . 21
3.2 . . . . . . . . . . . . . . . . . . . . . . . . . . 22
, eskdbtab - 3.3 . . . . . . . . . . . . . . . . . . . . . 23
3.4 . . . . . . . . . . . . . . . . 24
eskdgraph ,
. - . .
. . .
.
.
eskdx.pdf - .
eskdx v0.97
. .
2 32
. .
-
: http://lostclus.linux.kiev.ua/eskdx/. . 8.2. eskdx
CTAN- {CTAN}/macros/latex/contrib/eskdx/.
eskdx .
. eskd
5 , .
102 8. LATEX
( x). eskd.cls
pscyr6 .
, .
? isov2.cls iso -
. isoman.pdf
ISO. -
ISO 10303 iso10303.
8.3.4.
,
book. ,
, -
.
book
octavo. scrbook KOMA-Script -
book. .
-
.
memoir (memman.pdf)
, . , -
, ,
. -
.
- , . -
.
.
(memmanadd.pdf),
.
,
,
sffms .
8.3.5.
, , .
scrreprt KOMA-Script, -
report.
6 pscyr .
, .
LATEX. -
.
: ftp://ftp.vsu.ru/pub/tex/font-packs/pscyr/.
8.3. 103
. 8.3. prosper
8.3.6.
,
. ,
. seminar
sides .
.
LATEX , - .
prosper (. 8.3) seminar -
, ,
, pdf. ppr-prv
prosper.
texpower powersem, -
slides, texpower.
prosper .
104 8. LATEX
, beamer. -
beamer
(Till Tantau) . -
.
.
200 .
LyX (http://www.lyx.org) WYSIWYM -
, .
, -
powerdot, LyX.
talk, ,
.
.
-
a0poster,
. , -
, LATEX . ,
sciposter .
8.3.7.
LATEX-
. - . , -
, /, -
, : http://www.maik.ru/pub/tex/.
LATEX.
, asaetr American Society for Agricultural Engineers
(ASAE). Maple Technical Newsletter mtn.
jpsj2 .
sibjnm.
-
Elsevier elsart. nature pdf-
Nature. -
revtex4.
, , -
, combine.
8.3.8.
curriculum vitae -
. ,
.
8.3. 105
-
,
- johndoe
europecv. Any intelligent fool can make things bigger, more complex,
and more violent. It takes a touch of genius and a lot of
courage to move in the opposite direction.
vita - Education
. - 20032006 Master of Design, Valparezzo School of Design.
1st year: 79% 2nd year: 84% 3rd year: (graduation expected in June 2006)
Master thesis
title On the design of modern curriculum vits
IT- -
supervisors Pr P. Picasso and Pr G. Klimt
description Study of the complex design of a curriculum vit, also known as rsum. In my opinion,
a good design needs to be show the personality of its author. Some people will thus prefer a
.
more classic style, and others will be more audacious. . .
Experience
-
19992001 IMO preselected, SBPMef, Wpion.
Advanced mathematical training, as Belgian preselected candidate for the International Math-
ematical Olympiads, selected by the Belgian mathematical society. See
-
imo.math.ca/belgium.html.
Languages
. French
Dutch
Native
Near-native Primary education degree obtained in a Dutch college
(Sint-Jozefscollege te Sint-Pieters-Woluwe).
morderncv - English Very good Many journeys in English speaking countries, including the United
States,
the United Kingdom and Kenya.
-
12 somestreet, 3456 somecity T +12 (3)456 78 90 B jdoe@design.org www.ctan.org
,
. . 8.4. moderncv
, -
, . -
, .
currvita .
8.3.9.
, -
.
. ,
ucthesis -
(UC Berkeley).
disser. TEX Live,
{CTAN}/macros/latex/contrib/disser -
CTAN-. , - -
.
-
.
106 8. LATEX
8.3.10.
. -
, CD (cd), -
(qcm), (assignment),
(ConcProg), (courseoutline coursepaper), -
(labbook), (stage), (pecha . 8.5),
(flashcards) .
-
, -
.
This is the short excerpt from the Brahma Story, taken from the Documentation of the cTibTEX package:
.y
l,
ig,nx, xm,z
e,d
g,px, cxn,
es,x,i
g,d
g,
e. rxb,d
,db
l,
os,px, bzx,bx, dx,. bg
o,m
ed,px,i
g,g
o. d
es,
page 2
im,bdxg,c
ig,lxs,bx, x,
ig,b-
es,t
e. in,px
r,xd,nxs,bx, x,d
e,
id,d
e,
im,bdxg,d
ei,
im,d
,s
o,bx, dx,. d
e,nx,
im,
bdxg,n
i,zxn,zx,
e. d
g,px, cxn,
is,bx, x,d
e,
im,
i,nx,d
,btx,bx, dx,. bx, x,
o,gxn,d
,s
o,nxs,
or,r
o..
im,
bdxg,d
e,zxn,d
eo,zs,nxs,lxs,px, dx,. d
e,nx, bx, x,mx, m
o,nxs,d
es,d
g,px, cxn,lx, x,gx, r
e,
es,xs,px, dx,. d
es,xs,
. 8.5. - pecha
9
:
, ;
, , ;
, .
? . -
? .
, , -
.
, -
. ,
.
.
.
.
, -
. .
(\frametitle).
2040 80.
block, theorem, proof example. -
.
.
108 9.
9.1. slides
LATEX,
-
. . -
T -
C ,
-
(C) (C)
T = T C + T (1 C ), (1) slides.
(C)
T T , C -
( J/),
(C)
T , C
. -
( J/ + (X)).
(T ) (T )
-
C = C T + C (1 T ). (2)
1
, -
-
. 9.1. slides .
. landscape
. slide.
\ d o c u m e n t c l a s s [ a 4 paper , l a n d s c a p e ] { s l i d e s }
...
\ b e g i n { document }
\ begin { s l i d e }
\ begin { center }
\ Large
\ end { c e n t e r }
...
\ end { s l i d e }
\end { document }
9.2. PDF
PDF (Portable Document Format) -
Adobe Systems
1993 . 2006 1.7.
2007 PDF 1.7 ISO 32000. PDF-
,
9.2. PDF 109
(, ). PDF
, -
JavaScript. 1.6 -
3D ,
, , .
PDF
, :
.
.
. PDF.
. -
.
9.2.1.
, PostScript- -
. ghostscript, ps2pdf ,
PDF:
> p s 2 p d f .ps .pdf
PDF tex-
pdflatex. latex , -
PDF. pdflatex
, pdf (),
png/jpeg (). pdflatex eps-, -
, MetaPost.
- pdf PostScript, -
pdftops xpdf .
> p d f t o p s [ e p s ] pdf-
EPS,
-eps.
PDF Type1.
.
, ,
. : ,
, -
. , ,
.
110 9.
-
,
Computer Modern ( cm-super).
-
Type3. cm-super ( TEX Live )
.
9.2.2.
Adobe Reader Ghostscript. - , -
. Adobe Reader Adobe
Systems. PDF
. , ,
.
Adobe Reader,
, ,
. -
pdfopen pdfclose ( -
TEX Live):
> p d f c l o s e f i l e .pdf
# .pdf
> pdfopen f i l e .pdf
Ghostscript .
Ghostscript PDF , -
. :
. () .
xpdf (http://www.foolabs.com/xpdf/) PDF
, X Window. 3.02, xpdf -
PDF 1.7. xpdf
, , kpdf .
r. .
9.2.3.
, PDF.
: ,
.
.
hyperref . -
, manual.pdf.
movie15. : pdflatex, -
Adobe Reader MS Windows MacOS.
9.3. beamer 111
, -
, . -
movie15.pdf.
PDF .
, Mac OS MS Windows, .
, -
,
.
9.3. beamer
, , -
. .
beamer ,
slides,
. , ,
, , LATEX.
(Till Tantau)
.
beamer ,
(beameruserguide.pdf)
http://sourceforge.net/projects/latex-beamer. TEX Live
beamer .
beamer pdflatex,
latex + dvips + ps2pdf . , :
beamer hyperref .
,
(, unicode=true ),
.
UTF-8,
beamer:
\ d o c u m e n t c l a s s [ u t f 8 ] { beamer }
\ usepackage [ u t f 8]{ inputenc }
-
. beamer frame.
112 9.
% ( )
\ usetheme { Madrid }
%
\ u s e o u t e r t h e m e { shadow } J/e + e Br(J/ e + e )
\ t i t l e {}
\ d a t e { } ..
\ a u t h o r {}
\ b e g i n { document }
%
\ b e g i n { frame }
\ titlepage
\ end { frame }
.. J/e + e Br(J/ e + e )
frame t, -
.
. ,
beamer section.
frame. -
, , , ,
.
\tableofcontents. , ,
pausesections.
% (J/ e + e ) Br(J/ e + e )
\ usetheme { M o n t p e l l i e r }
% ( .)
%
\ u s e c o l o r t h e m e { dove } +
d e e
=
1 n 9 2e + e 3
1 + (1 + cos2 )Imf
d M 2 4 M 4
3 e + e 11 (1 + cos2 )2
1 + (1 + cos2 )
%
2 M 12 (1 cos )
Ref +
\ s e c t i o n {} +
2
1+
13 (3 + cos2 )2 o
,
4 12 (1 cos )2
\ s u b s e c t i o n {}
\ b e g i n { frame } !1
M
\ f r a m e t i t l e {} f = 2
i
, =
4
ln
W
1
.
W + M me 2
... 2
\ end { frame }
\frametitle.
\framesubtitle.
dove,
. ,
9.3. beamer 113
, , .
.
.
, -
.
\pause:
\ begin { itemize }
\ item . . .
%
\ pause
\ item . . .
\ end { i t e m i z e }
. 9.2 , -
. ,
,
.
(, 1.7%
), , -
. , -
\alert. \alert \emph. -
, \alert
.
\beamerbutton{} .
114 9.
beamer beamer
theorem, proof, block enumerate theorem, proof, block enumerate
() ()
A = B A = B
. .
1 A=C 1 A=C
2 B=C
. 9.3. 1 . 9.4. 2
beamer beamer
theorem, proof, block enumerate theorem, proof, block enumerate
() ()
A = B A = B
. .
3 A=B 3 A=B
. 9.5. 3 . 9.6. 4
beamer -
< > /.
, . -
beamer \color<34>
3 4 . -
. : -3,5-9,12,17- ,
: 3, 5 9, 12, 17 .
beamer .
:
%
\ newtheorem {MyTheorem}{ }
\ b e g i n { frame }
%
\ f r a m e t i t l e { \ t e x t b f { beamer }}
9.3. beamer 115
%
\ f r a m e s u b t i t l e { theorem , p r o o f , b l o c k enumerate }
%
\ b e g i n {MyTheorem } [ ]
% 3 4
\ c o l o r <34>[rgb ] { 1 , 0 , 0 } { \ (A=B\ ) }
\ end {MyTheorem}
%
\ begin { proof }
\ b e g i n { enumerate }
% 2
\ item<2> \ (A=C\ )
% 2
\ item <2> \ (B=C\ )
% 3 4
\ item <3,4> \ (A=B\ ) \ q e d h e r e
\ end { enumerate }
\ end { p r o o f }
% ( 4 , )
\ uncover <4>{ \ beamerbutton { }}
% ( 1 3 )
\ b e g i n { b l o c k }<1,3>{ }
\ end { b l o c k }
\ end { frame }
. 9.39.6 , -
.
beamer ,
. :
\color{} ;
\includegraphics ;
\item ,
itemize enumerate;
proof. , .
2 QED
(quod erat demonstrandum ). \qedhere
QED , . QED
, , , .
116 9.
beamer , -
:
\alert{} ;
\only \visible -
;
\invisible \only;
\uncover , \only,
, ;
\alt<>{}{ } -
;
block . theorem.
. \label.
, \hyperlink :
\ l a b e l { metka }
\ h y p e r l i n k { metka }{}
LATEX--
, , \beamerbutton. -
:
\ h y p e r t a r g e t < >{}{}
,
.
verbatim lstlistings. -
, frame fragile.
, , :
\ b e g i n { frame } [ f r a g i l e ]
%
\newcommand{\un }{\ uncover }
\newcommand{\ a l }{\ a l e r t }
\ f r a m e t i t l e {An Algorithm For F i n d i n g Primes Numbers . }
9.3. beamer 117
}
return 0; return 0;
} }
. 9.7. ( Hannover, , )
\ begin { semiverbatim }
\un<1>{\a l <0>{ i n t main ( v o i d ) } }
\un<1>{\a l <0>{\{}}
\un<1>{\a l <1>{ \ a l <4>{s t d : : } v e c t o r <bool >i s_prime ( 1 0 0 , t r u e ) ; } }
\un<1>{\a l <1>{ f o r ( i n t i = 2 ; i < 1 0 0 ; i ++)}}
\un<2>{\a l <2>{ i f ( i s_prime [ i ] ) } }
\un<2>{\a l <0>{ \{}}
\un<3>{\a l <3>{ \ a l <4>{s t d : : } c o u t << i << " " ; } }
\un<3>{\a l <3>{ f o r ( i n t j = i ; j < 1 0 0 ; } }
\un<3>{\a l <3>{ i s_prime [ j ] = f a l s e , j+=i ) ; } }
\un<2>{\a l <0>{ \}}}
\un<1>{\a l <0>{ r e t u r n 0 ; } }
\un<1>{\a l <0>{\}}}
\ end { s e m i v e r b a t i m }
\ v i s i b l e <4>{Note t h e u s e o f \ a l e r t {\ t e x t t t { s t d : : } } . }
\ end { frame }
118 9.
beamer .
. -
\usetheme. -
, .
beamer 2007 : AnnArbor,
Antibes, Bergen, Berkeley, Berlin, Boadilla, CambridgeUS, Copenhagen, Darm-
stadt, Dresden, Frankfurt, Goettingen, Hannover, Ilmenau, JuanLesPins, Lue-
beck, Madrid, Malmoe, Marburg, Montpellier, PaloAlto, Pittsburgh, Rochester,
Singapore, Szeged Warsaw.
. -
\usecolortheme. : alba-
tross, beaver, beetle, crane, dolphin, dove, fly, lily, orchid, rose, seagull, seahorse,
sidebartab, structure, whale wolverine.
. -
\usefonttheme. -
: professionalfonts, serif, structurebold, structureitalicserif structuresmall-
capsserif.
, ,
, . -
\useinnertheme. : circles,
inmargin, rectangles, rounded.
,
. \useoutertheme. -
: infolines, miniframes, shadow, sidebar, smo-
othbars, smoothtree, split tree.
. , ,
.
128 98 . -
.
Adobe Reader
Page Scaling ( ) Fit
to Printable Area ( -
). pgfpages pgf .
.
9.3. beamer 119
\ usepackage { pgfpages }
\ p g f p a g e s u s e l a y o u t { r e s i z e t o } [ a 4 paper ,%
b o r d e r s h r i n k =5mm, l a n d s c a p e ]
A4 -
5 . ,
:
\ p g f p a g e s u s e l a y o u t {2 on 1 } [ a 4 paper , b o r d e r s h r i n k =5mm]
draft
. . , -
( \includeonly):
\ i n c l u d e o n l y f r a m e s { ex 1 , ex 3}
\ frame [ l a b e l=ex 1 ]
{ . }
\ b e g i n { frame } [ l a b e l=ex 2 ]
ex 2 .
\ end { frame }
\ frame { . }
-
\againframe:
%ex 1
\ a g a i n f r a m e { ex 1}
beamer multimedia.
\movie \sound
. , ,
Adobe Reader MS Windows MacOS.
.
beamer
.
\ animate< >
.
, Adobe Reader
.
10
,
, ,
!
.
-
. , -
3 29.
10.1.
-
babel. ,
, , , -
.
babel:
\ usepackage [ english , r u s s i a n ] { babel }
.
: (afrika-
ans), (english, USenglish, american, UKenglish, british, canadian, austra-
lian, newzealand), (basque), (bulgarian), (breton),
(magyar), (hungarian), (uppersorbian),
(galician), (dutch), (greek, polutonikogreek), (da-
nish), (hebrew), (interlingua), (irish), -
(icelandic), (spanish), (italian), (catalan),
122 10.
{\selectlanguage{english}\chaptername{}}
Chapter - .
- "--- \chaptername.
,
, babel.
otherlanguage:
% , -
"--- , -
, . ,
"--- . ~\par . -
% . -
\begin{otherlanguage}{english}
% Science is what we under-
Science is what we understand well enough to stand well enough to ex-
explain to a computer. Art is everything plain to a computer. Art is
else we do. Donald~Knuth everything else we do. Don-
\end{otherlanguage} ald Knuth
-
\foreignlanguage{}{}. -
, , :
\foreignlanguage{english}{\chaptername{}} "--- , -
, . .
otherlanguage*.
, c (russian)
(english), TEX T2A, -
, T1, , -
.
, LATEX-,
Unicode, , xelatex.
10.2. 123
babel ,
. ,
, , \iflanguage:
\selectlanguage{english}
not russian.
\iflanguage{russian}{}{not russian}.\par
.
\selectlanguage{russian}
\iflanguage{russian}{}{not russian}.
babel, , -
. ,
,
indentfirst. misccorr t2,
babel.
10.2.
. -
.
LATEX
The Comprehensive LATEX Symbol List. pdf-
symbols-a4.pdf .
,
^ \textasciicircum ~ \textasciitilde
\textasteriskcentered \ \textbackslash
| \textbar { \textbraceleft
} \textbraceright \textbullet
\textdagger \textdaggerdbl
$ \textdollar . . . \textellipsis
\textemdash \textendash
\textexclamdown > \textgreater
< \textless \textordfeminine
\textordmasculine \textparagraph
\textperiodcentered \textquestiondown
\textquotedblleft \textquotedblright
\textquoteleft \textquoteright
\textregistered \textsection
\textsterling \texttrademark
_ \textunderscore \textvisiblespace
124 10.
(textcomp)
\textasteriskcentered \textbardbl
\textbigcircle \textblank
\textbrokenbar \textbullet
\textdagger \textdaggerdbl
- \textdblhyphen \textdblhyphenchar
\textdiscount \textestimated
\textinterrobang \textinterrobangdown
\textmusicalnote \textnumero
\textopenbullet \textordfeminine
\textordmasculine \textparagraph
\textperiodcentered % \textpertenthousand
% \textperthousand \textpilcrow
' \textquotesingle \textquotestraightbase
\textquotestraightdblbase \textrecipe
\textreferencemark \textsection
\textthreequartersemdash ~ \texttildelow
\texttwelveudash
(textcomp)
\textdownarrow \textleftarrow
\textrightarrow \textuparrow
(wasysym)
A \hexstar B \varhexstar
m \ataribox
\bell
- \blacksmiley 1 \Bowtie
| \brokenvert \checked
2
\CheckedBox \clock
\diameter L \DOWNarrow
/ \frownie \invdiameter
6 \kreuz \LEFTarrow
\lightning h \permil
\phone \pointer
\recorder \RIGHTarrow
, \smiley 2 \Square
\sun K \UParrow
\wasylozenge 4 \XBox
10.2. 125
,
$ \$ } \} { \} \dag \ddag
. . . \dots \P \pounds
amssymb
X \checkmark r \circledR z \maltese
ASCII-
a \aa A \AA \AE \ae D \DJ
d \dj L \L l \l \o \O
\OE \oe \ss \S SS \SS
10.2.1.
(textcomp)
\textbaht \textcent \textcentoldstyle
\textcolonmonetary \textcurrency $ \textdollar
\textdollaroldstyle \textdong \texteuro
\textflorin \textguarani \textlira
\textnaira \textpeso \textsterling
\textwon \textyen
(wasysym)
\cent \currency
(eurosym)
A
C \geneuro B
C \geneuronarrow C \geneurowide
e \officialeuro
10.2.2.
(textcomp)
\textcircledP \textcopyleft \textcopyright
\textregistered \textservicemark \texttrademark
126 10.
10.2.3.
textcomp \newtie,
(A a). , -
\textcircled (A ).
a
Aa \"{A}\"{a} Aa \{A}\{a} Aa \.{A}\.{a} Aa \={A}\={a}
Aa \^{A}\^{a} Aa \{A}\{a} Aa \~{A}\~{a} Aa \b{A}\b{a}
Aa \c{A}\c{a} A. a. \d{A}\d{a} Aa \k{A}\k{a} Aa \r{A}\r{a}
A a \t{A}\t{a} Aa \u{A}\u{a} a
A \U{A}\U{a} Aa \v{A}\v{a}
10.3.
, , .
, .
, LATEX
Computer Modern, -
Type1 cm-super. -
TEX Live . Computer
Modern ( lh).
Computer Modern (-
, , )
(. 10.1).
Computer Modern Concrete.
. . Computer Modern -
Euler . -
concrete
(. 10.2).
Antykwa Torunska . -
anttor (. 10.3). ,
Euler, -
euler.
, , . -
TEX Live .
. Type1 -
The Font Installation Guide (
fontinstallationguide.pdf).
10.4. 127
, !!! , !!!
Z Z
1 (x)2 1 (x)
2
e 22 dx = 1 e 2 dx = 1
2
2 0 2 0
. 10.1. Computer Modern . 10.2. Concrete Euler
<<, !!!>>
Z
1 (x)2
e 22 dx = 1
2 0
. 10.3. Antykwa Torunska Euler
( )
10.4.
, -
.
10.4.1.
3.3 . 36 , -
. -
. , ,
, -
.
, LATEX, , .
soul
soul :
\so{}, ,
\ul{} \st{}. .
soul . -
soul ,
, soul
. . -
soul.pdf.
128 10.
nccstretch
nccstretch ncctools -
:
\centering
\stretchwith{\,}{\ }
\stretchwith / , -
, .
\hrule.
\hrulefill :
\rule[]{}{} -
:
\centering\rule{2pt}{1cm}
\rule[0.5cm]{0.2\textwidth}{1pt}
\rule{0.2\textwidth}{1pt}
\rule[-0.5cm]{0.2\textwidth}{1pt}
\rule[-1cm]{2pt}{1cm}
-
. 0 (),
.
.
dashrule. nccrules ncctools -
, .
- -
mboxfill ncctools.
\mboxfill:
\mboxfill[1.2\width]{\^{}\_\^{}} _ _ _ _ _ _ _
,
.
, . -
. \width.
-
. mboxfill.pdf.
10.4. 129
10.4.2.
TEX . ,
.
\mbox{}.
39
. \mbox . \fbox
, -
\mbox. -
. \makebox
\framebox:
\centering
\framebox[\textwidth][l]{\ }
\framebox[0.5\width][c]{\ }
,
.
: l , r , c , s -
. -
\width (
), \totalheight ( ), \height ( -
) \depth (
). LATEX
, .
\shabox, shadow,
:
\centering\shabox{ }
.
. 252.
-
:
\ s e t t o w i d t h { }{ }
\ s e t t o h e i g h t { }{ }
\ s e t t o d e p t h { }{ }
, -
, .
130 10.
minipage
parbox:
\parbox{0.3\textwidth}
{ :}\quad -
\begin{minipage}{0.62\textwidth} . -
. 4
:
4 . . ,
, ! !
\end{minipage}
float . 64.
10.4.3.
-
. LATEX quote
( ) quatation ( quote
).
, ,
: :
\begin{quotation}
- -
- ,
,
.
.
\end{quotation}
.
, , ,
epigraph. ,
:
\ e p i g r a p h {}{}
, , -
. .
.
-
\epigraphwidth \setlength, , :
\ s e t l e n g t h {\ e p i g r a p h w i d t h } { 0 . 3 \ t e x t w i d t h }
(\chapter) , -
. -
. \epigraphhead:
\ c h a p t e r { }
\ e p i g r a p h h e a d [ ] { \ e p i g r a p h {}{}}
10.4. 131
, -
\unitlength.
70. ,
\dropchapter{}.
epigraph.dtx.
10.4.4.
3.3.1 . 37. -
:
enumerate ,
itemize ,
description .
\item:
\begin{enumerate}
\item ,\label{ex:first} 1) ,
\item . 2) .
\end{enumerate} 1. . .
\ref{ex:first}\ldots
\item -
. description,
:
\begin{description}
\item[enumerate] "--- , enumerate ,
\item[itemize] "--- , itemize ,
\item[description] "--- . description .
\end{description}
, .
. , , -
enumerate itemize:
1) enumerate
)
A.
2) enumerate
itemize
132 10.
enumerate \item -,
babel :
.
enumii, enumiii, enumiv .
6.2 . 71.
eqlist
description ,
. ,
eqlist, :
\begin{eqlist*}
\item[enumerate] "--- , enumerate ,
\item[itemize] "--- , itemize ,
\item[description] "--- . description .
\end{eqlist*}
desclist
c eqlist desclist -
ncctools
\begin{desclist}{\bfseries}
{ \hfill---}[description] enumerate ,
\item[enumerate] ,
itemize ,
\item[itemize] ,
\item[description] . description .
\end{desclist}
desclist , , -
, ,
, .
desclist.pdf.
10.5. 133
paralist
, ,
, -
paralist:
\begin{inparaenum}
-
\item enumerate,
1) enumerate,
\item itemize
2) itemize 3) description.
\item description.
\end{inparaenum}
inparaenum
inparaitem. paralist.dtx.
10.5.
? : ,
, . . . . . .
-
\section, \subsection, \subsubsection, \paragraph \subparagraph.
.
, -
, .
\tableofcontents. -
, tex-, toc.
.
- -
, - . . 10.4
-
.
\ d o c u m e n t c l a s s [ 1 0 pt ] { s c r a r t c l }
\ u s e p a c k a g e [ warn ] { mathtext }
\ u s e p a c k a g e [ T2A] { f o n t e n c }
\ u s e p a c k a g e [ k o i 8r ] { i n p u t e n c }
\ usepackage [ english , r u s s i a n ] { babel }
\ usepackage { i n d e n t f i r s t }
\ t i t l e { }
\ a u t h o r {. \ ,. ~ }
\ b e g i n { document }
\ m a k e t i t l e {}
134 10.
1.1.
.
1.1.1. - ,
. -
. . .
1 2013 . .
,
1. 1
. .
1.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1.1. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2
, , 1.1 1
A. 2
, .
1. A.
.
1 2
. 10.4.
\ t a b l e o f c o n t e n t s {}
\ s e c t i o n { }
\ label { sec : section }
.
\ s u b s e c t i o n { }
\ label { sec : subsection }
.
\ s u b s u b s e c t i o n [ ] { , }
\ label { sec : subsubsection }
.
.
\paragraph {}
\ l a b e l { s e c : paragraph }
.
\subparagraph {}
\ l a b e l { s e c : subparagraph }
.
\ s e c t i o n { , }
. .
10.5. 135
\ s e c t i o n { }
\ label { sec : afterwords }
\ a d d c o n t e n t s l i n e { t o c }{ s e c t i o n }{ }
, , ~\ r e f { s e c : s u b s e c t i o n }
~\ p a g e r e f { s e c : s u b s e c t i o n } ,
~ .
\appendix
\ s e c t i o n {}
\ l a b e l { appendix }
\end { document }
\section ,
\subsection . -
. -
tocdepth, , :
\ s e t c o u n t e r { t o c d e p t h }{2}
-
.
\listoffigures
\listoftables.
lof lot.
- -
\ a d d c o n t e n t s l i n e { t o c }{ }{ }
.
(toc, lof lot), . -
, section, subsection
. LATEX
\protect, .
\appendix .
. \appendix
.
( book , , scrbook) -
\chapter \part .
136 10.
: \frontmatter ( -
), \mainmatter (
) \backmatter.
.
( titlepage) :
\ d o c u m e n t c l a s s [ a 4 paper , 1 2 pt ] { s c r b o o k }
...
%
\ makeindex
\ b e g i n { document }
%
\frontmatter
\begin { t i t l e p a g e }
\end { t i t l e p a g e }
\ t a b l e o f c o n t e n t s {}
%
\mainmatter
\ c h a p t e r { 1}
\ l a b e l { cha : c h a p t e r 1}
\ c h a p t e r { 2}
\ l a b e l { cha : c h a p t e r 2}
%
\backmatter
%
\ b i b l i o g r a p h y s t y l e { g o s t 780u}
\ bibliography { b i b f i l e }
%
\ printindex
\end { document }
10.6. , 137
10.6. ,
- . , -
,
,
.
10.6.1.
. 133, ,
-
\label. ASCII--
.
aux. ,
( \ref) (\pageref), -
latex .
, -
xr.
:
\ u s e p a c k a g e { xr }
\ e x t e r n a l d o c u m e n t [EXT]{ e x t e r n a l d o c }
externaldoc.tex.
, , \ref/\pageref,
EXT-. ,
,
- .
. -
, equation ( ) theorem (-
), . ( figure)
( tabular). \label
\caption, .
. ,
amsmath \eqref. -
\ref
\eqref:
\begin{equation}
\label{eq:1} 2 4
x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a} 1,2 = (10.1)
2
\end{equation}
~\ref{eq:1}\par 10.1
~\eqref{eq:1} (10.1)
138 10.
, ex
. .
, prettyref . -
.
%
\newrefformat{eq}{ \No~\ref{#1}} : 10.1
: \prettyref{eq:1}
\prettyref
(:), .
-
. showkeys.
,
.
10.6.2.
\footnote.
.
. , , -
, .
.
minipage, -
:
\begin{minipage}{1.0\linewidth} a z .
\footnote{.}
a .
\footnote[26]{ .}. z
\end{minipage} .
\footnote -
.
, -
\footnote \protect, -
:
\ s e c t i o n { \ p r o t e c t \ f o o t n o t e { . } }
, , -
,
:
\ f o o t n o t e m a r k [ num ]
\ f o o t n o t e t e x t [ num ] { }
10.6. , 139
num, \footnote,
. -
footnote.
nccfoots
nccfoots ncctools
:
\begin{minipage}{1.0\linewidth} .
\Footnote{$\alpha$}{.}
.
\Footnotemark{$\beta$}.
-
\Footnotetext{$\beta$}{ .}
\end{minipage} .
,
.
footmisc
footmisc ( footmisc.pdf)
. :
perpage
;
para
. -
, ;
side ;
symbol* ;
norule* .
savefnmark
savefnmark .
:
\saveFN ,
;
\useFN .
a
\footnote{}\saveFN\oldfoot\par a
\useFN\oldfoot
a
140 10.
-
.
10.6.3.
, , -
.
.
endnotes
-
endnotes ltxmisc.
: \endnote,
\endnotemark \endnotetext.
\addtoendnotes{}. -
:
\renewcommand{\ notesname }{ }
\ theendnotes
endnotes
endnotes.sty.
pagenote
endnotes pagenote.
%
\ u s e p a c k a g e [ page ] { p a g e n o t e }
\ makepagenote
...
%
\ p a g e n o t e {}
...
\renewcommand{\ notesname }{ }
\ printnotes
page -
, . -
continuous.
.
\printnotes
. \printnotes*
, , . \printnotes*
10.6. , 141
-
.
10.6.4.
, , article, -
.
\marginpar{}. -
, , ,
. , -
, , \reversemarginpar,
\normalmarginpar.
marginnote
\marginpar ,
, ,
. marginnote
, :
\ marginnote [ ] { } [ ]
\marginpar, -
-
. ,
. marginnote.pdf.
-
, . -
LATEX mparhack
.
changebar
. changebar -
.
\cbstart \cbend, .
dvips, pdflatex. -
. changebar.pdf.
10.6.5. WWW-
, , .
\url .
142 10.
url
url www-,
.
WWW- :
WWW- :
\url{http://www.inp.nsk.su/
http://www.inp.nsk.su/~baldin/.
~baldin/}.
%, #, , -
\. ,
\verb : \url!http://www..ru!.
hyperref
hyperref .
. :
% h y p e r r e f
\ u s e p a c k a g e [ u n i c o d e=t r u e ] { h y p e r r e f }
. ,
. .
pdf-, -
dvi-, ,
xdvi. unicode=true , -
.
hyperref
manual.pdf.
, -
: http://www-sbras.nsc.ru/win/docs/TeX/LaTex2e/docs_koi.html.
hyperref LATEX.
breakurl
pdflatex hyperref www- -
,
latexdvipsps2pdf , .
breakurl.
breakurl hyperref . -
\burl, \url.
, preserveurlmacro, \url
\burl. breakurl.pdf.
10.7.
. ,
.
10.7.1. FiXme
. -
, . .
, -
, .
FiXme :
\fxnote ;
\fxwarning ;
\fxerror ;
\fixme .
.
draft , , :
\ d o c u m e n t c l a s s [ a 4 paper , 1 2 pt , d r a f t ] { s c r b o o k }
, , -
. draft final
. \listoffixmes
.
\fixme -
,
.
fixme. -
-
: inline , margin ( -
), footnote
index . fixme.pdf.
10.7.2. lineno 1
lineno . 2
. 3
- 4
linenumbers. 5
144 10.
1 \linenumbers/\nolinenumbers, , , -
2 .
3 . -
4 ,
5 , \setpagewiselinenumbers.
6 , -
7 \switchlinenumbers, * ()
8 .
9 : \linelabel{ex:lineno}. -
10 \ref 9. -
11 hyperref (
12 ).
13 lineno.pdf.
10.7.3.
,
LATEX, Linux . ,
..
- ,
-
LATEX draftwatermark.
. -
, -
draftcopy.
-
DRAFT. dvips,
pdflatex.
.
e-mail: E.M.Baldin@inp.nsk.su
TEX METAFONT, , .. .
. 10.5 ,
.
. 10.5. draftwatermark ,
:
%
\ usepackage { draftwatermark }
%
\ SetWatermarkScale { 2 . 3 }
%
\ SetWatermarkLightness { 0 . 3 }
%
\ SetWatermarkText {\ t e x t b f { }}
10.7. 145
draftwatermark firstpage, -
.
0, 1. -
\SetWatermarkFontSize.
\SetWatermarkAngle{}.
watermark ncctools -
, .
bophook, eso-pic wallpaper.
10.7.4.
. ,
.
, -
?
\input{ } tex-
. LATEX ,
, \endinput. -
, \input. -
.
tex.
, , -
\include. \includeonly
, .
, -
. -
, \include -
\clearpage, , -
.
\include:
%
\ input { preheader }
%
\ includeonly {
% intro ,
base ,
% presentation
}
\ b e g i n { document }
\ i n c l u d e { i n t r o } %
\ i n c l u d e { b a s e } %
\ i n c l u d e { p r e s e n t a t i o n } %
146 10.
\ end { document }
\include tex- (
tex ). -
, .
base.tex.
\listfiles ,
. -
.
excludeonly
\includeonly excludeonly -
, -
. , .
, , base.tex, -
\includeonly \excludeonly:
\ i n c l u d e o n l y { i n t r o , base , p r e s e n t a t i o n }
\ excludeonly { intro , presentation }
askinclude
-
askinclude.
\include. , , -
.
optional
optional ltxmisc
\opt, :
% v a r i a n t . t e x
\ u s e p a c k a g e [ answer 1 ] { o p t i o n a l }
" .
\ opt {}{ }
10.7. 147
\AskOption, -
.
:
\newcommand{\ E x p l a i n O p t i o n s }{ v a r i a n t 1 , v a r i a n t 2 problems ;
answer 1 , answer 2 s o l u t i o n s }
\ AskOption
, :
...
\ UseOption=
:
> l a t e x " \newcommand\ UseOption { answer1 }\ i n p u t { v a r i a n t } "
- -
Makefile.
optional.sty.
11
, , ,
: . . . .
. .
,
. -
.
.
. , -
. -
. -
. , ,
.
11.1.
, LATEX-
. , -
, . -
,
, .
, , ,
.
150 11.
() -
, ,
. :
( ), 1 (-
), ( ),
( ) ( -
).
11.1.
,
.
, , ,
.
. . -
. -
.
, ,
. 0.1, .1.
. . . , ..
,
.
, , -
. .
11.2. tabbing
, ,
tabbing.
1 - . . [11] ,
, , .
11.3. tabular array 151
\begin{tabbing}
MMMMM \= MMMMM \= \kill
\textbf{\ } \> \> \\
\> \> \\
\> \>
\end{tabbing}
\=. \kill, , -
, . ,
\>, -
\\.
, -
, .
tabbing
. , , -
.
LATEX .
, . -
tabbing
.
LATEX tabbing .
(\) (\ \). -
/ -
\pushtabs/\poptabs.
\centering
\begin{tabular}[c]{l|ll}
\textbf{\ } & & \\[2mm]\hline
& & \\
& &
\end{tabular}
-
& .
\\.
152 11.
. -
-
.
tabular .
table:
\ b e g i n { t a b l e } [ ht ]
\ c e n t e r i n g%
\ b e g i n { t a b u l a r } [ ] { }
\ end { t a b u l a r }
\ c a p t i o n {}\ l a b e l { tab : metka }
\ end { t a b l e }
-
. tabular -
,
:
t , -
, ;
c ;
b .
,
.
:
l (left) ;
c (center) ;
r (right) ;
p{} . -
.
, -
:
{n}{ }
n . .
\centering
\begin{tabular}{|*{3}{c|}}
\textbf{} & & \\[2mm]
\hline\hline
& & \\
& &
\end{tabular}
11.3. tabular array 153
|. || . -
\hline.
.
@{} , -
. -
, .
, -
, ,
.
\centering
\begin{tabular}{c||p{2cm}@{$\pm$\ }r|}
\textbf{} & & \\[2mm]
\cline{2-3}
& & \\
\cline{1-1}\cline{3-3}
& & \\ \cline{2-2}
\end{tabular}
,
\ cline { }.
array tools
, tabular, :
m{} , p{},
;
b{} , m{},
.
, -
array, array.pdf.
tabular .
, :
\centering
\begin{tabular}{r}\hline\hline a .
\footnote{ }.\\ a
\hline\hline -
\end{tabular}
, ,
, , Publication quality tables in LATEX (booktabs.pdf),
(Simon Fear) booktabs.
, .
154 11.
1.
1.
. 11.1. \caption . 11.2.
\topcaption topcapt
11.3.1.
-
(. 5.4.4). ,
, .
, , , -
.
topcapt, \topcaption,
\caption:
\ b e g i n { t a b l e } [ ht ]
\ t o p c a p t i o n {}\ l a b e l { tab : metka }
\ begin { tabular }
...
\ end { t a b u l a r }
\ end { t a b l e }
topcapt , -
\caption
. 11.1 11.2 -
. , -
:
\ begin { table }
\ s e t l e n g t h {\ a b o v e c a p t i o n s k i p }{0 pt }
\ s e t l e n g t h {\ b e l o w c a p t i o n s k i p }{10 pt }
\ c a p t i o n {}\ l a b e l { tab : metka }
\ begin { tabular }
...
\ end { t a b u l a r }
\ end { t a b l e }
11.3. tabular array 155
11.3.2.
(), -
, . :
;
.
, -
, . -
.
hhline tools \hhline, -
, .
hhline.pdf . arydshln
. -
arydshln-man.pdf .
cellspace
-
:
\begin{tabular}{c}\hline
$\displaystyle
1 1 1
e = 1+\frac{1}{2}+\frac{1}{6}+\cdots =1+ + + + +
2 6 !
+ \frac{1}{k!} + \cdots $ \\\hline
\end{tabular}
cellspace. -
, ,
:
\begin{tabular}{Sc}\hline
$\displaystyle
1 1 1
e = 1+\frac{1}{2}+\frac{1}{6}+\cdots =1+ + + + +
2 6 !
+ \frac{1}{k!} + \cdots $ \\\hline
\end{tabular}
l, c r Sl, Sc Sr -
. S, -
, S{p{3cm}}.
11.3.3.
-
\multicolumn{n}{ }{}, -
: \multirow{n}{}{} .
156 11.
\multicolumn:
\centering
\begin{tabular}{|*{3}{c|}}
\textbf{} & & \\[2mm]
\hline\hline
& \multicolumn{2}{c|}{} \\
& &
\end{tabular}
,
, .
\multirow multirow:
\centering
\begin{tabular}{|*{3}{p{1cm}|}}
\textbf{} & & \\[2mm]
\hline\hline
& \multirow{2}{1cm}{} & \\
& &
\end{tabular}
README .
:
\ multirow { }{}{}
\ multirow { }{}
, -
, ,
. .
. ,
colortbl:
\centering %
\begin{tabular}{c>{\columncolor{yellow}}cc} PP
\backslashbox{}{} & & \\ PP
PP
\rowcolor{yellow} P
& & \\
& \multirow{-2}*{} &
\end{tabular}
colortbl .
colortbl.pdf .
\backslashbox{}{}, -
, slashbox ( CTAN
).
. slashbox.tex.
11.3. tabular array 157
lh -
makecell.
\makecell, -
, -
. .
. -
(makecell.pdf)
(makecell-rus.tex).
11.3.4.
. ,
.
dcolumn tools -
:
\centering
\begin{tabular}{|c|l|D{.}{,}{5}|}
0.3141 0.3141 0,3141
0.3141 & 0.3141 & 0.3141 \\
3.141 3.141 3,141
3.141 & 3.141 & 3.141 \\
31.415 31.415 31,41
31.415 & 31.415 & 31.41 \\
\end{tabular}
: D{delim}{output}{nfruc}, delim -
, ( -
), output , delim (-
, ), nfrac
(
). dcolumn.pdf.
numprint ( numprint.pdf)
. \numprint -
:
,
-
. numprint n -
. ,
, .
158 11.
n- numprint:
\centering
\begin{tabular}{|n{3}{4}|n{2}{3}|n{1}{2}|}
0,314 1 0,314 1 0,314 1
0.3141 & 0.3141 & 0.3141 \\
3,141 3,141 3,141
3.141 & 3.141 & 3.141 \\
31,41 31,41 31,41
31.41 & 31.41 & 31.41 \\
314,1 314,1 314,1
314.1 & 314.1 & 314.1 \\
\end{tabular}
rccol , dcolumn, -
. ,
, . rccol,
rccol.pdf, .
, .
warpcol -
. warpcol.pdf
, .
11.3.5.
CSV ( . Comma Separated Values , )
, .
csvtools.
csvtools.pdf , -
, -
tex-.
11.3.6. tabular
tabularx tools tabular -
, X.
0,3141 0.3141
\centering -
\begin{tabularx}{\textwidth}{|D{.}{,}{4}|X|c|}
0.3141 & & 0.3141 \\
3.141\footnote{ tabularx 3,141a 3.141 3.141
}
& 3.141 & 3.141 a tabularx
\end{tabularx} -
tabularx .
X p{}, -
,
11.4. 159
. , -
X,
. , ,
(tabularx.pdf).
tabulary tabular, array.
-
.
tabulary.pdf. -
.
ctable . -
\ctable, -
tabular table. -
\ctable -
.
ctable.pdf.
11.4.
tabular ,
.
: supertabular longtable, .
,
.
, , -
, . -
: supertabular.pdf supertabular longtable.pdf longtable
tools.
longtable supertabular -
, LATEX.
-
, .
supertabular supertabular
mpsupertabular,
minipage, -
.
xtab
, , xtab.
supertabular -
. xtab mpxtabular,
xtabular ,
160 11.
minipage, ,
.
xtab -
:
%
\ t o p c a p t i o n { } \ l a b e l { tab : xtab }
%
\ t a b l e f i r s t h e a d {\ h l i n e & \\\ h l i n e }
%
%
\ t a b l e h e a d {\ multicolumn {2}{ c }%
{\ tablename \ \ t h e t a b l e {} " }\\
\ hline & \\ \ h l i n e }
%
%
\ t a b l e l a s t h e a d {\ multicolumn {2}{ c }%
{\ tablename \ \ t h e t a b l e {} " }\\
\ hline & \\ \ h l i n e }
%
\ t a b l e t a i l {\ h l i n e \ multicolumn { 2 } { | r | }%
{ }\\ \ h l i n e }
%
\ t a b l e l a s t t a i l {\ h l i n e }
\ begin { center }
\ begin { xtabular }{| l | p{0.5\ textwidth }|}
x t a b u l a r & t a b u l a r .
,
t a b u l a r , x t a b u l a r \\
...
\\
\ end { x t a b u l a r }
\ end { c e n t e r }
, , xtab.pdf.
11.5. 161
11.5.
,
. \tableofcontents, -
\listoffigures \listoftables .
\centering
\begin{tabular}{p{0.7\textwidth}@{}r}
1 . . . . . . . . . . . . . . . . . . . 2
1\dotfill & 2 \\
2 . . . . . . . . . . . . . . . . . . . 10
2\dotfill & 10 \\
3 . . . . . . . . . . . . . . . . . . . 124
3\dotfill & 124
\end{tabular}
\dotfill ( ).
listliketab
listliketab
, .
:
\ s t o r e s t y l e o f { enumerate }
\ begin { l i s t l i k e t a b }
\ newcounter {tabenum }\ s e t c o u n t e r {tabenum }{0}
\newcommand{\ nextnum }{\ a d d t o c o u n t e r {tabenum }{1}\ thetabenum . }
\ b e g i n { t a b u l a r }{L>{\ b f }l@{~~~~}>{\ b f }l@{~~~~}>{\ b f } l }
\nextnum & & & \\
\nextnum & & & \\
\nextnum & & & \\
\ end { t a b u l a r }
\ end { l i s t l i k e t a b }
\nextnum .
1.
2.
3.
listliketab.pdf
162 11.
11.6. ?
tableaux tabvar
.
.
!
32 0 1 +
() 0 +
() +
& 0 + +
& & 3
2 %
tabvar tableaux. -
tabvar.pdf demo.tex.
, -
. pb-diagram ,
:
- 0 -
6104 710-
5
9.3%
65 . 420
/
50
+
6.6103 12%
? ?
/ +
12
-
.
, ,
,
, .
, , , -
.
. , -
.
- -
. , -
- , , -
, , , ,
.
, -
.
,
.
164 12. -
12.1.
\tableofcontents (toc-) LATEX -
. \listoffigures
(lof-) \listoftables (lot-).
, 10.5.
- -
\addtocontents{toc}{}. toc () lof
( ) lot ( ). ,
\protect,
.
shorttoc
. shorttoc :
\ s h o r t t a b l e o f c o n t e n t s { }{1}
, -
.
(\section), 1.
, tocdepth.
tocloft
-
. tocloft , ,
. -
tocloft.pdf. ,
Z, toc or
lof lot, X part, chap, sec, subsec, subsubsec,
fig, tab . , ,
:
\ a d d t o l e n g t h {\ c f t s e c n u m w i d t h }{1 ex }
,
() :
\renewcommand{\ c f t d o t }{\ ensuremath {\ a s t }}
:
\renewcommand{\ c f t c h a p l e a d e r }{\ c f t d o t f i l l {\ c f t c h a p d o t s e p }}
\renewcommand{\ c f t c h a p d o t s e p }{\ c f t d o t s e p }
12.1. 165
tocbibind
-
1 . \addcontentsline,
, ,
tocbibind. tocbibind
:
notbib ;
notindex ;
nottoc ;
notlot ;
notlof ;
chapter , , ;
section , , ;
numbib , ;
numindex , ;
none , .
tocbibind.pdf.
minitoc
, minitoc
6 .
:
\ d o m i n i t o c %
\ d o m i n i l o f %
\ d o m i n i l o t %
\ t a b l e o f c o n t e n t s %
\listoffigures %
\listoftables %
\ c h a p t e r { }
\ m i n i t o c %
\ mtcskip
\ m i n i l o f %
\ mtcskip
\ m i n i l o t %
minitoc.pdf.
1 KOMA-Script bibtotoc
idxtotoc .
166 12. -
12.2.
. ,
myheadings :
\ p a g e s t y l e { myheadings }
\ markboth { }{ }
, \markright,
. -
fancyhdr.
fancyhdr
,
\pagestyle .
..
..
cxii fancyheadings
. 12.1. fancyhdr
fancyhdr . -
: , -
, , \textwidth,
, ,
( , , -
). -
fancyhdr:
\ usepackage { fancyhdr }
...
\ b e g i n { document }
\ p a g e s t y l e {empty} %
\ p a g e s t y l e { f a n c y } %
12.2. 167
\ l h e a d {. . } %
\ chead{~\a r a b i c { page}~} %
\ rhead {} %
%
\ c f o o t {~\roman{ page}~}
\ l f o o t {\ h s p a c e { 0 . 7cm} }
\ r f o o t { \ t e x t b f { f a n c y h e a d i n g s }}
. 12.1. page
.
/ -
, -
, :
\ rhead [ ] { }
, -
, .
, ,
fancyhdr.pdf.
nccfancyhdr
nccfancyhdr ncctools
fancyhdr. nccfancyhdr -
, fancyhdr. -
nccfancyhdr.pdf , -
, ,
, -
, .
technics
fancyhdr technics.
, -
. -
12.2.
. -
,
inputenc. -
fancyhdr, technics.sty .
168 12. -
. . E.M.Baldin@inp.nsk.su technics
30 2007 .
2007 1
. 12.2. technics
12.3.
. -
.
. -, -
, -, , -,
.
.
\ c i t e [ ] { }
BibTEX, -
12.4, thebibliography:
\ c i t e [ ] { rozenko 2005}.
\ b e g i n { t h e b i b l i o g r a p h y }{9}
\ b i b i t e m { rozenko 2005} ..
\LaTeX . \ newblock : . ~,
2 0 0 5 . 398~ .
\ end { t h e b i b l i o g r a p h y }
\newblock -
. thebibliography -
, . ,
10 , -
, , 9, ,
99 .
12.3. 169
[1, ].
[1] .. LATEX. : .
, 2005. 398 .
. 12.3.
thebibliography.
, compactbib.
.
.
,
aux.
LATEX.
\cite ,
, LATEX [8, 9, 10]:
\ c i t e { L v o v s k i j 2003 , K o t e l n i k o v 2004 , Rozhenko 2005}
.
, breakcites
ltxmisc.
\cite -
\nocite. \nocite -
,
.
-
, - :
\ c i t e { 2004}
...
\ b i b i t e m { 2004}
citehack:
\ usepackage { c i t e h a c k }
, -
, .
170 12. -
file.tex file.bib
.bst
LATEX
.aux BibT X
E
LATEX
.bbl
.aux .blg
LATEX
. 12.4. LATEX+BibTEX: tex LATEX-, bib -
, bst , blg log- BibTEX, bbl
, aux
12.4. BibTEX
. - ,
, 7.80-002 7.1-843 . -
. -
, , , , www-.
,
, ,
-.
BibTEX,
thebibliography, -
. BibTEX -
,
Google Scholar (http://scholar.google.com/), , -
http://arxiv.org
BibTEX.
, BibTEX, -
Emacs RefTeX JabRef .
2 , 2000 .
, - - .
3 7.1-2003. .
12.4. BibTEX 171
[1] . , . , . . LATEX
LATEX 2 : . . . : , 1999. 606 . ISBN: 5-03-
003325-4.
. 12.5. , gost2008
, Emacs Java, -
gBib KBib Gnome KDE .
bibtex2html html-. ,
.
, BibTEX
bib. \bibliography
LATEX-, :
\ b i b l i o g r a p h y s t y l e {}
\ b i b l i o g r a p h y { bib- }
> l a t e x mybook . t e x
> b i b t e x mybook
> l a t e x mybook . t e x
, bib- , aux-
latex.
LATEX .
plain . -
. -
, bibtex
172 12. -
bibtex8, --csfile
4 .
unsrt . plain -
-
.
alpha . -
. .
abbrv . ,
. -
plain.
. BibTEX,
7.0.5-2008 ( . -
.), 7.1-2003 ( . .
.), 7.80-2000 (-
. . .), 7.11-
2004 ( , .
.
) 7.83-2001 ( .
.): gost2003s/gost2008s, plain, gost2003/
gost2008, unsrt.
texmf-dist/doc/bibtex/gost gost.pdf,
gost2003.pdf gost2008.pdf.
, LATEX,
BibTEX-. TEX Live 2012 350
.
:
4 L AT X cp866
E
cp866rus.csf. .
12.4. BibTEX 173
at @ .
-. BibTEX -
,
5 . -
, BibTEX .
(BibTEX ).
Conference InProceedings , -
. : author, title. : crossref,
booktitle, pages, year, editor, volume, number, series, address, month, organi-
sation, publisher, note, annote.
InBook , ,
. : author editor, title,
chapter, publisher year. : volume number, series,
type, address, edition, month, pages, note, annote.
InCollection . : author,
title, booktitle. : crossref, pages, publisher, year, editor,
volume number, series, type, chapter, address, edition, month, note, annote.
Manual . : title. -
: author, organistaion, address, edition, month, year, note, annote.
MastersThesis .
PhdThesis.
5 OPT (noteOPTnote),
, .
174 12. -
Unpublished . :
author, title, note. : month, year, annote.
Misc , .
. : author, title, howpublished, month, year,
note, annote.
. ,
, crossref,
. BibTEX
. ,
author and.
-
- gost2003/gost2008 gost2003s/gost2008s -
numpages language
plain. language russian,
ukrainian english .
12.5.
-
\makeindex. C, , -
\index:
\ i n d e x { } . . .
\index , ,
, idx.
idx- . -
idx- ,
. rumakeindex -
ind.
:
\ i n p u t {ind-}
\printindex makeidx. -
\printindex -
LATEX . makeidx
,
.
12.5. 175
file.tex
.tex MakeIndex
LATEX
.ind .ilg
. 12.6. LATEX+MakeIndex : tex LATEX-, idx -
(), ist , ilg log-
MakeIndex, ind
rumakeindex , sed
LATEX koi8-r
makeindex.
, , -
, .
makeindex ( -
makeindex.dvi)
, ,
. , , -
. -
xindy (. 12.6).
\index !, ", @ |.
.
\index, -
" ( ). . 12.7
. .
!:
% 110 111
\ i n d e x { ! rumakeindex }
\index
.
176 12. -
MakeIndex, 110
, 110111
makeindex, . rumakeindex
rumakeindex, 110, 111
xindy, 111
. 12.7.
| -
. -
see:
\ i n d e x { ! makeindex | s e e { rumakeindex }}
% 110
\ i n d e x { | ( }
% 111
\ i n d e x { | ) }
- .
:
% 110
\ i n d e x {MakeIndex@\ t e x t i t { MakeIndex }textbf
@ -
\index. , -
.
12.5. 177
splitidx
LATEX
. , -
. splitidx. mybook.tex
:
%
\ usepackage [ s p l i t ] { s p l i t i d x }
%
\ makeindex
% ( i d x )
\ newindex [ ] { i d x }
% ( aut )
\ newindex [ ] { aut }
...
%
\ i n d e x {}
%
\ s i n d e x [ aut ] { }
%
\ p r i n t i n d e x [ aut ]
%
\ printindex [ idx ]
\newindex,
,
. , \sindex
. mybook.idx . -
. aut
mybook-aut.idx.
:
> l a t e x mybook . t e x
> rumakeindex mybook . i d x
> rumakeindex mybookaut . i d x
> l a t e x mybook . t e x
178 12. -
,
TEX ,
16. split -
splitindex.pl,
.
splitidx.pdf.
12.6. xindy
xindy (http://www.xindy.org/) makeindex.
xindy -
rumakeindex. xindy -
. xindy makeindex.
xindy -
( -
c see . 176) ,
.
xindy
.
, , -
. , xindy
6 LATEX. -
.
, , .
, xindy,
. .
xindy perl-
texindy:
> texindy L r u s s i a n C koi8 r . i d x
idx- . -L
(, belarusian ukrainian), -C
(, utf-8, cp1251 koi8-u).
texindy xindy, -
.
xdy. -
, xindy. -
Lisp.
-M, -
.
6 xindy GNU/Linux, ,
Debian (Lenny).
12.6. xindy 179
file.tex
.glo .xdy
LATEX
.tex xindy
LATEX
.gls
. 12.8. LATEX+xindy : tex LATEX-,
glo (), xdy
, gls
(,
texindy):
:
word-oder . -
. , -
-l;
letter-order . -
-l;
numeric-sort , 7
13. ;
keep-blanks
;
ignore-hyphen ;
ignore-punctuation -
.
:
page-ranges .
(, 35, 36, 37 38 -
), (3538). -
-r;
book-order . -
: , ,
.
180 12. -
, -
, -
xindy , -
; . ; .
. 12.9.
12.7.
(. 12.9) .
, -
. , ,
makeidx xindy.
makegloss
-
\makegloss, ,
\glossary,
\makeglossary. . 12.8 -
LATEX xindy .
, , -
makeglos.
makeglos.pdf, -
makeglos.tex. -
, .
%
\ u s e p a c k a g e { makeglos }
% g l o
\ makeglossary
...
%
%
\renewcommand{\ g l o s s a r y n a m e }{ }
%
\ a d d c o n t e n t s l i n e { t o c }{ s e c t i o n }{\ g l o s s a r y n a m e }
12.7. 181
% g l s
\ p r i n t g l o s s a r y {}
%
\ g l o s s a r y { : ,
,
}
\ g l o s s a r y { : , }
\ g l o s s a r y { xindy | i s {
, }}
\ g l o s s a r y { xindy | s e e { }}
\ g l o s s a r y { xindy | s e e a l s o { }}
.
, -
is.
\glossary .
\glossaryname . -
\glossaryintro,
.
see seealso.
glo- \gsee \galso:
> t e x i n d y . g l o o . g l s M makeglos \
L r u s s i a n C koi8 r
, texindy
-M makeglos.xdy. -
, makeglos.
.
gloss
gloss BibTEX.
bib-.
:
@gd{gnu ,
word = {} ,
d e f i n i t i o n = { }
}
gnu , -
\gloss. word . -
. hyperref ,
182 12. -
. -
definition.
:
%
\ usepackage { g l o s s }
% g l s . aux
\ makegloss
...
%
%
\ g l o s s {gnu}
%
\renewcommand{\ g l o s s n a m e }{ }
%
\ p r i n t g l o s s {|<< bib | }
tex-,
BibTEX gls.aux-
, :
> b i b t e x 8 bib- . g l s
tex- ,
tex- .
. -
gloss.dvi
nomencl
nomencl .
, -
,
.
%
\ u s e p a c k a g e [ r u s s i a n ] { nomencl }
% nlo
\ makenomenclature
...
%
12.7. 183
\ no me n c l a t u r e [W] { \ Warning }{ }
\ no me n c l a t u r e [ E] { \ E r r o r }{}
%
\ printnomenclature
\nomenclature .
, -
,
.
.
makeindex
nomencl.ist:
> makeindex . n l o s nomencl . i s t o . n l s
nomencl.pdf.
13
.
, , ,
amsmath:
\ u s e p a c k a g e {amsmath}
, .
13.1.
, amsmath
amsfonts amssymb.
13.1.1.
LATEX .
. ,
.
:
\mathbin . (+),
(), ( );
\mathrel . (>),
(<), (=);
186 13.
\mathop . -
, \sin (sin), \sum ( ), \lim (lim).
:
\mathord . a (),
\zeta (), \to ().
:
\mathopen ;
\mathclose ;
\mathinner . (. . .);
\mathpuct . -
.
13.1.2.
, LATEX,
The Comprehensive LATEX Symbol List.
pdf- symbols-a4.pdf.
\aleph \angle \backslash
2 \Box \bot \clubsuit
3 \Diamond \diamondsuit \ell
\emptyset \exists \flat
\forall ~ \hbar \heartsuit
\Im \imath \in
\infty \jmath 0 \mho
\nabla \natural \neg
\ni \partial \prime
\Re \sharp \spadesuit
\surd \top \triangle
\wp
$ \mathdollar . . . \mathellipsis \mathparagraph
S \mathsection \mathsterling \mathunderscore
(amssymb)
8 \backprime k \Bbbk i \beth
F \bigstar \blacklozenge \blacksquare
N \blacktriangle H \blacktriangledown r \circledR
s \circledS { \complement k \daleth
\diagdown \diagup \eth
13.1. 187
(Re) (Im)
(\Re) (\Im) .
:
\renewcommand{\Re}{\ t e x t {Re}}
\renewcommand{\Im}{\ t e x t {Im}}
13.1.3.
, -
.
,
. fixmath was
.
was upgreek,
.
\alpha \beta \gamma \delta
\epsilon \varepsilon \zeta \eta
\theta \vartheta \iota \kappa
\lambda \mu \nu \xi
o \pi \varpi \rho
\varrho \sigma \varsigma \tau
\upsilon \phi \varphi \chi
\psi \omega \Gamma \Delta
\Theta \Lambda \Xi \Pi
\Sigma \Upsilon \Phi \Psi
\Omega
(amssymb)
z \digamma \varkappa
188 13.
(upgreek)
\upalpha \upbeta \upgamma \updelta
\upepsilon \upvarepsilon \upzeta \upeta
\uptheta \upvartheta \upiota \upkappa
\uplambda \upmu \upnu \upxi
\uppi \upvarpi \uprho \upvarrho
\upsigma \upvarsigma \uptau \upupsilon
\upphi \upvarphi \upchi \uppsi
\upomega \Upgamma \Updelta \Uptheta
\Uplambda \Upxi \Uppi \Upsigma
\Upupsilon \Upphi \Uppsi \Upomega
13.1.4.
, , -
:
\acute{a}
\bar{a}
\breve{a}
\check{a}
...
\dot{a}
\ddot{a} \dddot{a}
` \grave{a}
\hat{a}
\mathring{a} \tilde{a} \vec{a}
amsxtra
, :
A\spcheck . A\spdot .. A\spddot ... A\spdddot
A\sphat A\sptilde
, , -
: , , `
. amsmath
.
amsfonts -
:
\[\begin{split}
&\widehat{\text{}}\\ \
&\widetilde{\text{ }} ^
\end{split}\]
,
.
13.1. 189
\overleftarrow{abc} \overline{abc}
\overrightarrow{abc} \overbrace{abc}
\underline{abc}
\underbrace{abc}
=(
(2( hh2(=(
\begin{align*} ( h
(
2 5 (
2+ h3
&\cancel{2\times2=5} &\xcancel{2+2=3}\\
X2 XX : 5
&\bcancel{2^2=22} &\cancelto{5}{2+3} X
2 = 22
2+ 3
\end{align*}
13.1.5.
:
..
\cdotp \cdots : \colon . \ddots
..
. \ldotp ... \ldots . \vdots
[11] ,
, , -
\ldots.
.
-
\cdots. -
.
\[\begin{split}
&a_1+a_2+\ldots+a_n\\ 1 + 2 + . . . +
\text{ \ \ } &a_1, a_2,\ldots,a_n,\\ 1 , 2 , . . . , ,
\text{ !\ } &a_1a_2\cdots a_n ! 1 2
\end{split}\]
amsmath \dots
, -
\ldots \cdots.
190 13.
13.1.6.
, -
. , ()
(-), , .
textcomp -
:
(textcomp)
\textdegree \textdiv
\textfractionsolidus \textlnot
\textminus \textonehalf
\textonequarter \textonesuperior
\textpm \textsurd
\textthreequarters \textthreesuperior
\texttimes \texttwosuperior
13.1.7.
(+)
() .
\amlg * \ast * \bigcirc
\bigtriangledown \bigtriangleup \bullet
\cap \cdot \circ
\cup \dagger \ddagger
\diamond \div \lhd
\mp \odot \ominus
\oplus \oslash \otimes
\pm \rhd \setminus
\sqcap \sqcup \star
\times \triangleleft \triangleright
\unlhd \unrhd \uplus
\vee \wedge \wr
(amssymb)
Z \barwedge \boxdot \boxminus
\boxplus \boxtimes e \Cap
\centerdot ~ \circledast } \circledcirc
\circleddash d \Cup g \curlyvee
f \curlywedge > \divideontimes u \dotplus
[ \doublebarwedge | \intercal h \leftthreetimes
n \ltimes i \rightthreetimes o \rtimes
13.1. 191
r \smallsetminus Y \veebar
(wasysym)
\lhd \LHD # \ocircle
\rhd \RHD \unlhd
\unrhd
13.1.8.
\approx \asymp \bowtie
.
= \cong \dashv = \doteq
\equiv \frown \preceq
| \mid |= \models \parallel
\perp \prec \propto
\sim \simeq \smile
\succ \succeq \vdash
\geq \gg \leq
\ll = \neq
\sqsubseteq \sqsupseteq \subset
\supset \supseteq \subseteq
= \ne < \not< > \not>
\not\approx \not\asymp
= \not\cong
\not\equiv \not\ge \not\le
= \not\ne \not\preceq \not\perp
\not\prec \not\propto \not\sim
\not\simeq \not\sqsubseteq \not\sqsupseteq
\not\succ \not\succeq \not\subset
\not\supset \not\supseteq \not\subseteq
/ \notin
(amssymb)
u \approxeq \backepsilon v \backsim
w \backsimeq \because G \between
m \Bumpeq l \bumpeq $ \circeq
2 \curlyeqprec 3 \curlyeqsucc + \doteqdot
P \eqcirc ; \fallingdotseq ( \multimap
t \pitchfork w \precapprox 4 \preccurlyeq
192 13.
E \trianglelefteq , \triangleq
D \trianglerighteq C \vartriangleleft
B \vartriangleright
(wasysym)
? \apprge > \apprle \invneg
1 \Join ; \leadsto \logof
< \sqsubset = \sqsupset \wasypropto
13.1.9.
\Downarrow \downarrow
\hookleftarrow \hookrightarrow
; \leadsto \leftarrow
\Leftarrow \leftharpoondown
\leftharpoonup \Leftrightarrow
\leftrightarrow \longleftarrow
= \Longleftarrow \longleftrightarrow
\Longleftrightarrow \longmapsto
= \Longrightarrow \longrightarrow
\mapsto \nearrow
\nwarrow \Rightarrow
\rightarrow \rightharpoondown
\rightharpoonup
\rightleftharpoons
\searrow \swarrow
\uparrow \Uparrow
\updownarrow \Updownarrow
(amssymb)
\circlearrowleft \circlearrowright
x \curvearrowleft y \curvearrowright
L99 \dashleftarrow 99K \dashrightarrow
\downdownarrows \downharpoonleft
\downharpoonright \leftarrowtail
\leftleftarrows \leftrightarrows
\leftrightharpoons ! \leftrightsquigarrow
W \Lleftarrow " \looparrowleft
# \looparrowright \Lsh
\rightarrowtail \rightleftarrows
\rightleftharpoons \rightrightarrows
\rightsquigarrow \Rsh
194 13.
\twoheadleftarrow \twoheadrightarrow
\upharpoonleft \upharpoonright
\upuparrows
(amssymb)
: \nLeftarrow 8 \nleftarrow
< \nLeftrightarrow = \nleftrightarrow
; \nRightarrow 9 \nrightarrow
- (amssymb)
\overleftrightarrow{abc}
\underleftarrow{abc}
\underrightarrow{abc}
\underleftrightarrow{abc}
(amssymb)
\xleftarrow{abc} \xrightarrow{abc}
13.1.10.
4.3.9 . 54 -
. -
LATEX -.
( ) [
( ( ) ) [ [
] { }
] ] { \{ } \}
| | \backslash \downarrow
\Downarrow \langle \lceil
\lfloor \rangle \rceil
\rfloor \uparrow \Uparrow
\updownarrow \Updownarrow
(amssymb)
| \lvert \lVert | \rvert
\rVert x \llcorner y \lrcorner
p \ulcorner q \urcorner
13.2. 195
13.1.11.
T\ S[
\bigcap \bigcup
JK LM
\bigodot \bigoplus
NO FG
\bigotimes \bigsqcup
U] W_
\biguplus \bigvee
V^ `a
\bigwedge \coprod
Z I
R H
\int \oint
QY P X
\prod \sum
(amsmath)
ZZ ZZZ
RR RRR
\iint \iiint
ZZZZ Z Z
RRRR R R
\iiiint \idotsint
13.2.
, ,
4.3.7 . 52, -
. 13.1.11 ,
.
commath
commath ( commath.pdf.) -
, .
\[\begin{split}
&\dif{x}\quad \Dif{X}\\ dx DX
&\od{f}{x}\quad \od[2]{f}{x}\\ df d2 f
dx dx2
&\pd{f}{x}\quad \pd[2]{f}{x}\quad
f 2f 5f
\md{f}{5}{x}{2}{y}{3}\\ x x2 x2 y 3
&\eval[0]{f(x)}_{x=0}\quad
\eval[2]{f(x)}_{x=0}\quad
f (x)|x=0 f (x) f (x)
\eval{f(x)}_{x=0}\\ x=0
x=0
&\fullfunction{f} f : R R
{\mathbb R}{\mathbb R}{x}{\sqrt{x}}
x 7 x
\end{split}\]
196 13.
esdiff
\frac{\partial^3 f}{\partial x\,\ partial y^2}? -
, , , esdiff :
\[\begin{split}
&\diff{f}{x}\quad\diff[n]{f}{x}\quad df dn f df dn f
\diff*{f}{x}{x_0}\quad\diff*[n]{f}{x}{x_0}\\ dx dxn dx x0 dxn x0
&\diffp{f}{x}\quad\diffp[3]{f}{x}\quad
f 3f 5f P
\diffp{f}{{x^3}{y^2}}\quad\diffp*{P}{V}{T} x x3 x3 y 2 V T
\end{split}\]
esdiff.dtx.
esdiff -
:
text \textstyle
. \displaystyle;
italic d (). -
roman;
thin, med big d -
.
;
thinp, medp bigp , , ;
thinc, medc bigc
\ diffp {f}{{x}{y}}. .
esdiff thinc:
\ usepackage [ thinc ] { e s d i f f }
-
.
.
wasysym, -
integrals. -
euler,
Concrete ( concrete,
10.3 . 126).
\[% Z ZZ ZZZ I
\int\quad\iint\quad\iiint\quad\oint dx dx
\]
13.3. , 197
\[%\usepackage[integrals]{wasysym} w x y z
\int\quad\iint\quad\iiint\quad\oint dx dx
\]
Z ZZ ZZZ I
\[%\usepackage{concrete}
\int\quad\iint\quad\iiint\quad\oint dx dx
\]
13.3. ,
array (. 11.3 . 151).
\[\left(\begin{array}{@{}ccc@{}}
a_{11}&a_{12}&a_{13}\\
11 12 13 1 1
a_{21}&a_{22}&a_{23}\\ 21 22 23 2 = 2
a_{31}&a_{32}&a_{33} \end{array}\right)
31 32 33 3 3
\begin{pmatrix}x_1\\x_2\\x_3\end{pmatrix}=
\begin{pmatrix}b_1\\b_2\\b_3\end{pmatrix}\]
array @{} -
. -
array matrix
. , -
.
\begin{gather*}
\begin{matrix}1&2\\3&4\end{matrix}\quad ( ) [ ]
1 2 5 6 9
\begin{pmatrix}5&6\\7&8\end{pmatrix}\quad 3 4 7 8
\begin{bmatrix}9&A\\B&C\end{bmatrix}\\
11 12
\begin{vmatrix}D&E\\F&10\end{vmatrix}\quad
10 13 14
\begin{Vmatrix}11&12\\13&14\end{Vmatrix}
\end{gather*}
, ,
\hdotsfor[ ]{ }:
\[\left(\begin{array}{@{}llll@{}}
a_{11}&a_{12}&\ldots &a_{1n}\\ a11 a12 . . . a1n
a_{21}&a_{22}&\ldots &a_{2n}\\ a21 a22 . . . a2n
\hdotsfor[2.5]{4}\\ . . . . . . . . . . . .
a_{n1}&a_{n2}&\ldots &a_{nn} an1 an2 . . . ann
\end{array}\right)\]
198 13.
tensor
-
tensor:
\[\begin{split}
&M\indices{^a_b^{cd}_e}\quad
\tensor[^a_b^c_d]{M}{^a_b^c_d}\\
M ab cde a c a c
b dM b d
&\tensor*[^*_*]{\prod\nolimits}{^*_*}\quad Y i1 i2 i3 i4
\tensor*{M}{*^{i_1}_{m_1}^{i_2}_{m_2} Mm 1 m2 m3 m4
^{i_3}_{m_3}^{i_4}_{m_4}}\\ 14 14
&\tensor*[^{14}_6]{\mathrm{C}}{}\quad 6 C 6C
\nuclide[14][6]{C}
\end{split}\]
\indeces,
\tensor, -
. ,
* , .
-
. \nulide.
tensor.pdf.
amscd
-
array, CD, amscd1 , -
.
F (f )
\[\begin{CD} F (X)
F (Y )
F(X) @>{F(f)}>> F(Y) \\
X y
@V{\eta_X}VV @VV{\eta_Y}V \\ y Y
G(X) @<<{G(f)}< G(Y) \\ G(X) G(Y )
\end{CD}\] G(f )
amscd ,
-
, , xypic.
amsmath \binom,
:
( )
\[(x+y)^n=\sum_{k=0}^n\binom{n}{k}x^ky^{n-k}\] ( + ) =
=0
13.4.
LATEX ,
. , ,
-
(\ partial x\,\ partial y).
.
A B \(AB\)
A B \(A B\)
A B \(A\, B\) A B \(A\! B\)
A B \(A\: B\) A B \(A\negmedspace B\)
A B \(A\; B\) A B \(A\negthickspace B\)
A B \(A\ B\)
A B \(A\quad B\)
A B \(A\qquad B\)
A B \(A\hspace{5mm}B\) A
B \(A\hspace{5mm}B\)
A B \(A\hphantom{xyz}B\)
A B \(AxyzB\)
A B
\fbox.
200 13.
\hphantom.
, , -
. \hphantom
\vphantom \phantom.
\phantom{} ,
, \vhantom ,
.
13.5.
4, , .
, .
, amsmath. -
, -
. \allowdisplaybreaks ,
LATEX -
. -
\displaybreak,
\\.
,
equation equation*:
\begin{equation}\label{eq:ex1}
\fbox{\text{ }} (13.1)
\end{equation}
\begin{equation*}%
\fbox{\text{ }}
\end{equation*}
-
align/align*:
\begin{align} (13.2)
&\fbox{\text{ }}\\
&\fbox{\text{ }}\\ (13.3)
&\fbox{\text{ }} (13.4)
\end{align}
align -
\\. &.
- . -
.
13.5. 201
\begin{align}
x&=\gamma(x-\beta ct) &y&=y\\ = ( ) = (13.5)
ct&=\gamma(ct-\beta x) &z&=z = ( ) = (13.6)
\end{align}
\begin{align*}
x&=\gamma(x-\beta ct) &\quad y&=y\\ = ( ) =
ct&=\gamma(ct-\beta x)&\quad z&=z = ( ) =
\end{align*}
\begin{flalign*}
x&=\gamma(x-\beta ct) &\quad y&=y\\ = ( ) =
ct&=\gamma(ct-\beta x)&\quad z&=z = ( ) =
\end{flalign*}
\begin{alignat*}{2}
= ( ) =
x&=\gamma(x-\beta ct) &\quad y&=y\\
ct&=\gamma(ct-\beta x)&\quad z&=z = ( ) =
\end{alignat*}
, gather/gather*:
\begin{gather} (13.7)
\fbox{\text{ }}\\
\fbox{\text{}}\\ (13.8)
\fbox{\text{}} (13.9)
\end{gather}
multline:
\begin{multline}
\fbox{\text{}}\\
\fbox{\text{}}\\
\shoveleft{\fbox{\text{}}}\\
\fbox{\text{}}
\end{multline} (13.10)
202 13.
multline, , -
. , -
. \shoveleft
, \shoveright, , .
split :
\begin{equation}
\begin{split}
&\fbox{\text{ }}\\
&\fbox{\text{ }}
\end{split} (13.11)
\end{equation}
split
& align.
, ,
.
split , -
. split , -
.
( centertags amsmath),
amsmath tbtags, -
, , ,
, ( leqno amsmath).
aligned, gathered alignedat, split, -
:
\begin{equation}
\begin{aligned}[b]
x&=\gamma(x-\beta ct) \\
ct&=\gamma(ct-\beta x) = ( )
\end{aligned}\quad = ( ) = (13.12)
\begin{gathered}[t]
y=y\\ =
z=z
\end{gathered}
\end{equation}
-
, ,
. :
[c] ( ),
[b] ,
[t] .
13.5. 203
-
\intertext.
\begin{align} {
\begin{cases} = sin
(13.13)
\dot{x}=-R\omega\sin\omega t\\ = cos
\dot{y}=\hphantom{-}R\omega\cos\omega t
\end{cases}\\ ,
\intertext{,}
a_{\tau}=0 = 0 (13.14)
\end{align}
\intertext -
. nccmath \intertext, -
,
: \intertext[]{}.
cases
.
cases
cases
cases ltxmisc numcases -
:
\begin{numcases}{|x|=} {
x, & $x \geq 0$\\ , > 0 (13.15)
|| =
-x, & $x < 0$ , < 0 (13.16)
\end{numcases}
empheq
mh amsmath. -
empheq,
, :
empheq.pdf -
.
204 13.
13.6.
, -
* , .
, , .
,
. \ref ,
\eqref:
~\ref{eq:num1} ~\eqref{eq:num1}. 13.17 (13.17).
. , ,
leqno, amsmath. -
.
,
\tag \tag* .
\notag.
1 (13.17)
\newcommand{\mft}[1]{\fbox{\text{#1}}}
\begin{gather} 2
\mft{{ \No 1}}\label{eq:num1}\\
\mft{{ \No 2}}\notag\\ 3 (*)
\mft{{ \No 3}}\tag{$*$}\label{eq:num2}\\
\mft{{ \No 4}}\tag*{$*$}\\ 4 *
\mft{{ \No 5}}\tag{\ref{eq:num1}$$}\\ 5
(13.17 )
\mft{{ \No 6}}\tag{\ref{eq:num2}$$}
\end{gather} 6 (* )
\tag \ref .
.
- , , , -
.
, -
, , deleq. -
deleq.dvi.
amsmath subequations, -
.
13.7. 205
\begin{equation}
\fbox{\text{ \No 1}}
\end{equation}
\begin{subequations} 1 (13.18)
\label{eq:num3}
\begin{equation}
\label{eq:num3-1} 2 (13.19a)
\fbox{\text{ \No 2}}
\end{equation}
\begin{equation}
\fbox{\text{ \No 3}} 3 (13.19b)
\end{equation}
-
\end{subequations}\par
(13.19), -
~\eqref{eq:num3},
(13.19a).
~\eqref{eq:num3-1}.
, -
\theequation, :
\renewcommand{\ t h e e q u a t i o n }
{\ t h e p a r e n t e q u a t i o n \ asbuk { e q u a t i o n }}
.
LATEX
, TEX- LATEX TEX.
13.7.
9.3 . 111,
beamer, -
\newtheorem:
\newtheorem{Thexmpl}{}
\begin{Thexmpl}[ ]
\label{th:Pythagor} 1 ( ).
.
\end{Thexmpl} .
\begin{Thexmpl}
2. ,
\label{th:WisdomLaw}
.
,
.
:
\end{Thexmpl}
1, : -
:
2.
~\ref{th:Pythagor},
: ~\ref{th:WisdomLaw}.
206 13.
\newtheorem :
\ newtheorem {}{}
\ newtheorem { } [ ] { }
\ newtheorem {}{ } [ ]
-
.
, . -
(, section). -
.
\newtheorem ,
:
\ b e g i n { } [ ]
\ end {}
nccthm ncctools -
-
, . -
nccthm.pdf [10].
14
+++ .
+++
-
, . . TEX -
-
.
-
. LATEX
.
14.1.
LATEX . -
, ,
.
, .
-
.
,
. , -
LATEX .
208 14.
verbatim
verbatim,
.
\verb!!.
\verb ( !),
.
, *.
verbatim tools ,
.
\verbatiminput,
.
, -
, \verb*/\verbatiminput*
verbatim*. *- ,
(\textvisiblespace).
\begin{verbatim*}
\textbf{verbatim} \LaTeX{} \textbf{verbatim}\LaTeX{}
\end{verbatim*}
altt
altt , verbatim,
LATEX , ,
, .
\begin{alltt}
\textbf{altt} \LaTeX{} altt LATEX
\end{alltt}
-
fancyvrb.
fancyvrb.pdf.
listings
listings .
1 , ,
.
, , , -
, .
1 listings.pdf.
14.1. 209
listings -
:
-
2 \lstloadlanguages. -
.
\lstset , -
. -
.
, -
, extendedchars=true3 .
escapechar LATEX
. , , -
LATEX. , (
|) , -
. escapechar,
escapechar
.
2 listings 1.3c ( -
): ABAP, ACSL, Ada (83, 95), Algol (60, 68), Ant, Assembler (x86masm), Awk (gnu, POSIX),
bash, Basic (Visual), C (ANSI, Handel, Objective, Sharp), C++ (ANSI, GNU, ISO, Visual), Caml
(light, Objective), Clean, Cobol (1974, 1985, ibm), Comal 80, csh, Delphi, Eiffel, Elan, erlang,
Euphoria, Fortran (77, 90, 95), GCL, Gnuplot, Haskell, HTML, IDL (empty, CORBA), inform,
Java (empty, AspectJ), JVMIS, ksh, Lisp (empty, Auto), Logo, make (empty, gnu), Mathematica
(1.0, 3.0), Matlab, Mercury, MetaPost, Miranda, Mizar, ML, Modula-2, MuPAD, NASTRAN,
Oberon-2, OCL (decorative, OMG), Octave, Oz, Pascal (Borland6, Standard, XSC), Perl, PHP,
PL/I, Plasm, POV, Prolog, Promela, Python, R, Reduce, Rexx, RSL, Ruby, S (empty, PLUS),
SAS, Scilab, sh, SHELXL, Simula (67, CII, DEC, IBM), SQL, tcl (empty, tk), TeX (AlLaTeX,
common, LaTeX, plain, primitive), VBScript, Verilog, VHDL (empty, AMS), VRML (97), XML,
XSLT.
3 ,
LATEX .
210 14.
frame=<POSITION>
. t , b , l
r . frame=trbl
. frame= -
. frame=TRBL,
. .
, listings, lst. -
\lstinline!! -
\verb!!.
lstlisting:
\begin{lstlisting}[language=Perl,
frame=tlBR,
caption={ }] Listing 14.2.
# #
if (open(CHECK,"<$file")) { i f ( open (CHECK, "< $ f i l e " ) ) {
$cmd=$term->readline $cmd=$term>r e a d l i n e
("Overwrite (yes/NO): "); ( " O v e r w r i t e ( y e s /NO) : " ) ;
if (lc($cmd) ne "yes") {die;} i f ( l c ( $cmd ) ne " y e s " ) { d i e ; }
close(CHECK);} c l o s e (CHECK) ; }
\end{lstlisting}
, -
. , language
, , frame
, caption .
\lstinputlisting:
%
\ l s t s e t { numbers=l e f t , l a n g u a g e=MetaPost ,
%
% b a c k g r o u n d c o l o r=\ c o l o r { y e l l o w } ,
frame=shadowbox , r u l e s e p c o l o r =\ c o l o r { b l a c k }}
%
\ l s t i n p u t l i s t i n g [ f i r s t l i n e =16 , l a s t l i n e =24 ,
emph={ f o r s u f f i x e s , t e x t , bpath } ,
emphstyle ={\ b f s e r i e s \ s c s h a p e } ,
emph = { [ 2 ] f i l l , u n f i l l } ,
emphstyle = { [ 2 ] \ b f s e r i e s \ underbar } ] { i n t r o .mp}
4 f i l l bpath. s s h i f t e d ( dx , dy ) ;
5 u n f i l l bpath. s ;
6 drawboxed ( s ) ;
7 % draw p i c ( s ) w i t h c o l o r r e d ; %
8 endfor ;
9 enddef ;
firstline secondline ,
.
. numbers=left .
\color,
. -
, backgroundcolor. -
emph=< >.
,
. emphstyle
.
, -
, .
float,
.
-
. , , -
\lstdefinelanguage. ,
.
14.2. LCD-
LCD- . , -
-
- .
LATEX lcd.
\definecolor{darkgreen}{rgb}{0.22,0.26,0.19}
\definecolor{lightgreen}{rgb}{0.05,0.97,0.55}
\LCDcolors{darkgreen}{lightgreen}
\centering
\LARGE\textLCD{12}|Linux Format|\\[2mm]
\LCDcolors{white}{darkgreen}
\small\textLCD{12}|Linux Format|
\definecolor color. -
\LCDcolors , \textLCD
LCD- . \textLCD -
212 14.
,
.
, -
.
\DefineLCDchar. ,
5 7 . ,
, -
, -
. ,
.
\DefineLCDchar{yo}{01010000001111110001111001000111111}
. 14.1. LCD
\LCD,
,
, - .
,
.
\DefineLCDchar{yo}{01010000001111110001111001000111111}
\definecolor{lightblue}{rgb}{0.9,0.91,0.99}
\definecolor{darkblue}{rgb}{0.14,0.2,0.66}
\LCDcolors{darkblue}{lightblue}
\LCDframe
\setlength{\LCDunitlength}{1.1mm}
\LCD{2}{4}|LF {yo} |
|zone |
14.3.
,
,
. bytefield.
bytefield:
\ b e g i n { b y t e f i e l d }{ }
\ end { b y t e f i e l d }
14.3. 213
0 15 16 31
}
hhhh
h
hhhh hhhh
h
hhhh hhhh
hhh h hh
hhhhhhhh hh h
hhhh h
hhhhhhhh
hhhhh
h
65.527
14.1. UDP
-
. [lrtb] , -
: l , r , t b .
\\.
UDP4 :
\ b e g i n { b y t e f i e l d }{32}
\ bitheader {0 ,15 ,16 ,31}\\
\ b e g i n { r i g h t w o r d g r o u p }{ }
\ b i t b o x {16}{ }\ b i t b o x {16}{ }\\
\ b i t b o x {16}{ }\ b i t b o x {16}{ }
\ end { r i g h t w o r d g r o u p }\\
\ wordbox [ l r t ] { 1 } { }\\
\ s k i p p e d w o r d s \\
\ wordbox [ l r b ] { 1 } { 6 5 { . } 5 2 7 }
\ end { b y t e f i e l d }
UDP
\bitheader, -
\wordgroupr \skippedwords .
\bitheader -
, , , {0-31}.
rightwordgroup
4 User Datagram Protocol IP.
214 14.
leftwordgroup ,
, .
.
14.4.
, , . . TEX -
.
LATEX . -
, , .
.
algorithms
algorithms , -
.
. algorithmic. -
.
1: if 6 0 then
\begin{algorithmic}[1] 2: 1
\IF{\(i\leqslant0\)} \STATE \(i\gets1\) \ELSE 3: else
\IF{\(i\geqslant0\)} \STATE \(i\gets0\) 4: if > 0 then
\COMMENT{ ~ } 5: 0 {
\ENDIF
\ENDIF }
\ENSURE \(i\geqslant0\) 6: end if
\FORALL{\(\xi \in \mathcal{A}\)} 7: end if
\STATE \(\mathcal{B}\gets\xi^2\) Ensure: > 0
\ENDFOR 8: for all do
\RETURN \(\mathcal{B}\) 9: 2
\end{algorithmic} 10: end for
11: return
, .
1, , 2 ,
.
\STATE . -
\IF{<>}, \ELSIF{<>}, \ELSE \ENDIF.
\FOR \FORALL,
\ENDFOR. \WHILE{<>}
\ENDWHILE, \REPEAT \UNTILL{<>} \LOOP
\ENDLOOP. -
\REQUIRE, ,
14.4. 215
, \ENSURE, -
\RETURN,
\PRINT \COMMENT.
, .
. -
, . -
: algorithms.pdf.
algorithmic ,
algorithm,
. algorithm \caption
\label.
algorithms
algorithms algorithmicx.
.
,
. -
, Pascal, -
, .
algorithms. -
algorithm2e. C-.
.
. algorithms.
clrscode
clrscode ,
5 : . , . -
, . .
.
\begin{codebox}
\Procname{
$\proc{ }$}
1 for j 2 to length[A]
\li \For $j \gets 2$ \To $\id{length}[A]$
2 do key A[j]
\li \Do $\id{key} \gets A[j]$
3 ij1
\li $i \gets j-1$
4 while i > 0 and A[i] > key
\li \While $i > 0$ and $A[i] > \id{key}$
5 do A[i + 1] A[i]
\li \Do $A[i+1] \gets A[i]$
6 i i1
\li $i \gets i-1$ \End
7 A[i + 1] key
\li $A[i+1] \gets \id{key}$ \End
\end{codebox}
5 Introduction to algorithms, Second Edition Thomas H. Cormen, Charles E. Leiserson, Ronald
pseudocode
. (Donald L. Kreher) . -
(Douglas R. Stinson) Combinatorial Algorithms: Generation,
Enumeration and Search. -
, : pseudocode. .
,
2005 . .
\begin{pseudocode}{C2F\_}
{\text{}, \text{}}
\PROCEDURE{C2F}{c}
Algorithm 0.1.1: C2F_(, )
\COMMENT{
$^\circ$$\to$$^\circ$F}\\ procedure C2F(c)
f \GETS {9c/5} + 32\\ comment: F
\RETURN{f}
\ENDPROCEDURE f 9c/5 + 32
\MAIN return (f )
x \GETS \text{} \\ main
\WHILE x \leqslant \text{} \DO x
\BEGIN whilex 6
\OUTPUT{x, \CALL{C2F}{x}}\\ output (x, C2F(x))
x \GETS x+1 do
x x+1
\END
\ENDMAIN
\end{pseudocode}
14.5.
-
, -
.
, ,
, -
.
change log.
:
.
14.5. 217
vhistory
. Jochen Wertenauer
1.2 29/09/07
()
1.0 22/01/04 JW
1.1 21/07/07 JW owncaptions
1.2 29/09/07 JW, EMB
. 14.2. vhistory
versionhistory.
\vhEntry:
\ vhEntry {}{}{()}{}
() , -
. -
|. :
\ vhEntry { 1 . 1 } { 1 3 . 0 5 . 0 4 } {JW|AK|KL}{ Typos c o r r e c t e d . }
vhistory,
. 14.2.
%
% o w n c a p t i o n s
\ usepackage [ owncaptions ] { v h i s t o r y }
|\ ldots |
%
%
\newcommand{\JW}{ Jochen Wertenauer }
\newcommand{\EMB}{ . }
218 14.
{\renewcommand{\ s e t s e p a r a t o r }{ \and }
\ t i t l e { \ t e x t b f { v h i s t o r y }}
\ a u t h o r {\ v h L i s t A l l A u t h o r s L o n g }
\ d a t e { \ v h C u r r e n t V e r s i o n {} \ vhCurrentDate }
\ maketitle
}
% .
\renewcommand{\ vhhistoryname }{ }
\renewcommand{\ vhversionname }{ }
\renewcommand{\ vhdatename }{}
\renewcommand{\ vhauthorname }{ () }
\renewcommand{\ vhchangename }{ }
%
\ begin { v e r s i o n h i s t o r y }
\ vhEntry { 1 . 0 } { 2 2 / 0 1 / 0 4 } {JW}{ }
\ vhEntry { 1 . 1 } { 2 1 / 0 7 / 0 7 } {JW}{ o w n c a p t i o n s }
\ vhEntry { 1 . 2 } { 2 9 / 0 9 / 0 7 } {JW|EMB}{ }
\ end { v e r s i o n h i s t o r y }
\vhCurrentVersion \vhCurrentDate.
. -
(. 12.2).
\vhListAllAuthorsLong ,
\newcommand.
, TEX Live 2007, -
owncaptions, .
21/07/2007 1.3
CTAN ({CTAN}/macros/latex/contrib/vhistory.zip).
vhistory -
vh_sets_en.pdf.
14.6. LATEX
LATEX- .
.
. -
Subversion svn,
svn6 .
6 cvs (Concurrent Versions System), -
rcs rcsinfo.
14.6. LATEX 219
\ u s e p a c k a g e { svn }
\SVN $ Date $
\SVN $Rev$
, \SVN.
Subversion -
:
> svn p r o p s e t svn : keywords " Date Rev"
> svn commit m " "
svn , -
commit. Date Rev
. -
> svn h e l p p r o p s e t
\SVN $Date$ \SVNDate \SVNTime, -
.
\SVN $Keyword$, Keyword svn, -
: \SVNKeyword.
:
svninfo.
, LATEX ,
. -
. ,
. LATEX , -
, , .
15
,
:
-
, .
LATEX ,
.
15.1.
.
, -
, , - 1 :
\[\mathbf{p}\psi(\mathbf{x})
\stackrel{\mathrm{def}}{=} def
p(x) = hx| p |i = i~(x)
\bra{\mathbf{x}} \mathbf{p} \ket{\psi} =
-i \hbar \nabla \psi(x)\]
, , , ,
.
, .
1 \bra \ket braket ltxmisc.
braket.sty.
222 15.
15.1.1.
8.417-2002.
,
, -
. , -
, , -
.
, -
. -
\text (. 4.2).
,
. -
, . :
\(25\,\text{}/\text{}\) (25 /), \(36{,}6^{\circ}\) (36,6 ).
, -
, : \((1/60)\,\text{}^{1}\), (1/60) 1 .
-
(\((100.0\pm 0.1)\,\text{}\), (100.0 0.1) )
: \(50\,\text{}\pm1\,\text{}\) (50 1 ).
, , -
: \(\text{}\cdot\text{}\) ( ).
-
( ). ,
, .
: /( ), : //, / .
-
, ( ):
2 1 , 2 . -
( ).
-
, : / ( ).
-
. : /, : /.
15.1. 223
SIstyle
-
,
. SIstyle, -
sistyle.sty.
: \SI -
, \num ( ) \ang
.
\SI{}{m.kg/(\text{}^3.A)}\quad
\SI{}{(MPa)^{0\pnt 5}}\quad
\SI{}{(MPa)^{\num{0.5}}}\par mkg/(3 A) (MPa)0.5 (MPa)0.5
$v=\SI{10}{m.s^{-1}}$\quad v = 10 ms1 v = 10 m/s v = 10 ms
$v=\SI{10}{m/s}$\quad 45 1012 4
$v=\SI{10}{\tfrac{m}{s}}$\par
\ang{45}\quad \ang{10; 12; 4}
-
\text, .
SIstyle-2.3.pdf ( 2.3 -
) ,
.
SIunits (SIunits.pdf).
unitsdef (unitsdef.pdf) -
.
units (units.pdf).
15.1.2.
LATEX. ,
, http://arxiv.org2 .
hepparticles
, -
, (-
, ) ,
, , , .
2 ,
02/02/2008 461,639 , , ,
.
LATEX-. -
. , - -
pdf- PostScript-.
224 15.
hepparticles , -
:
\begin{itemize}
\item :
\HepParticle{B}{d}{0},
\HepAntiParticle{B}{d}{0}
\item : :
\HepGenParticle{q}{d}{}, B0d , B 0d
\HepGenAntiParticle{\ell}{\mu}{} -
\item SUSY"=: : qd,
\HepSusyParticle{\chi}{1}{},
SUSY-:
e 1, qe2
\HepGenSusyParticle{q}{2}{}
\item : : J/(1S)
\HepParticleResonance{J\!/\psi}{1S}{}{\star} : B0d K +.
\item :
\HepProcess{\HepParticle{B}{d}{0} \HepTo
\HepParticle{K}{}{-}\HepParticle{\pi}{}{+}}.
\end{itemize}
, , -
\HepProcess -
\HepTo.
hepparticles.pdf.
, , -
, ,
.
-
feyn. ,
feyn.pdf .
feyn:
:
\(\Feyn{fs f gl f glu f fs}\) : kf y
fz
f k
: :
\[\Diagram{\vertexlabel^a \\ a
fd \\
d g = ig (T c )ab
& g\vertexlabel_{\mu,c} \\ ,c
\vertexlabel_b fu\\ e
b
} = ig\gamma_\mu (T^c)_{ab}\]
feynmp feynmf . 1995 .
(Torsten Ohl), , () -
. LATEX -
15.1. 225
, -
MetaPost3 .
, + Br(/ + )
:
e+ e+
e + e Bre+ e
J/
e e
. 15.1. ( feynmp)
, , -
. eepsiee.tex:
% e e p s i e e . t e x
\ u s e p a c k a g e { feynmp } %
...
\ b e g i n { f m f f i l e }{ eep s i e e } % mp
\ b e g i n { fmfgraph } ( 1 1 0 , 6 2 ) %
\ f m f l e f t { e i , p i } % ( )
\ f m f r i g h t { eo , po} % ( )
\ f m f l a b e l {$ e^$}{ e i } %
\ f m f l a b e l {$ e^+$}{ p i } % +
\ f m f l a b e l {$ e^+$}{po} %
\ f m f l a b e l {$ e^$}{ eo } %
% ,
\ fmf { f e r m i o n }{ e i , J i , p i }
% ,
\ fmf { f e r m i o n }{ po , Jo , eo }
%
\ f m f l a b e l {$\Gamma_{\ e e }$}{ J i }
%
\ f m f l a b e l {$ Br_{\ e e }$}{ Jo }
%
\ fmf { heavy , l a b e l =$J /\ p s i $}{ J i , Jo }
3 Linux Format , MetaPost -
. CC-BY-SA 3.0
http://www.inp.nsk.su/~baldin/mpost/.
226 15.
\ end { fmfgraph }
\ end { f m f f i l e }
ei Jo
. .
fmffile mp-, -
META. -
ee-psi-ee.mp. ,
eepsiee.tex, :
# eep s i e e .mp
> l a t e x e e p s i e e . tex
# eps eep s i e e .mp
> mpost eep s i e e .mp
#
> l a t e x e e p s i e e . tex
mpost MetaPost. mpost -
LATEX.
xdvi dvi- PostScript pdf.
,
feynmf manual.ps.gz.
isotope
, , , -
. isotope (
isotope.dtx) \isotope,
:
228 228
\isotope{Ra}\quad \isotope[228]{Ra}\quad Ra Ra 88 Ra
\isotope[228][88]{Ra}
\[\isotope[A][Z]{X}\to X 4 4
2 Y + 2
\isotope[A-4][Z-2]{Y}+\isotope[4][2]{\alpha}\]
15.1.3.
- ,
, LATEX .
circ ,
, ,
. LATEX
circ . , -
. circ.
15.1. 227
\ u s e p a c k a g e [ b a s i c , box , gate , o l d g a t e , i c , o p t i c s , p h y s i c s ] { c i r c }
:
basic : , , -
, , ;
box , , ;
gate ;
oldgate , ;
ic ( );
optics ;
physics - .
circuit. \begin{circuit} -
0 4.
0. -
.
\begin{circuit}0
\npn1 {?} B l % .
\frompin npn1C %
\- 1 u % .
\nl\A1 {$I_C$} u % , A1.
\atpin npn1B %
\- 1 l % .
\R1 {510 } l % R1.
\- 1 l % . Ub
\centerto A1 % A1.
\nl\A2 {$I_B$} u % A2.
\frompin A2b % A2 () IB A IC A
\vtopin R1l % R1 ().
\frompin A1t % A2 ()
\- 1 u % .
R1
\.1 % ( ).
\frompin A2t % A2
510
\vtopin .1 % .
\htopin .1 %
\- 1 u %
\cc\connection1 {$U_b$} c u % .
\frompin npn1E %
\- 1 d %
\GND1 % .
\end{circuit}
circ.dvi.
.
228 15.
F1
F2
-, pst-circ.
pst-circ-doc.pdf
.
-
MetaPost makecirc.
MakeCirc-en.pdf
15.1.4.
,
.
circ, -
PSTricks, pst-optic ( pst-optic.pdf,
pst-optic-examples.pdf). , . 15.2 -
:
pst-osci. . 15.3
:
, -
, . ,
, pst-osci.pdf
15.2. 229
15.2.
. . : , ,
. , , ,
, .
15.2.1.
, -
, . -
.
PSTricks, pst-labo, 15.1.4,
.
\psset{glassType=ballon,
unit=0.5cm,
becBunsen,
pince=true}
\pstChauffageTube[becBunsen,
barbotage]
, , , -
, ,
pst-labo-docEN.pdf.
15.2.2.
, ,
. -
.
-
LATEX.
:
\(\frac{1}{2}\mathrm{H}_2\mathrm{O}\) 1
H O
2 2
3 Cr2 O2
7
\(3\,\mathrm{Cr}_2\mathrm{O}_7^{2-}\)
, .
230 15.
mhchem
mhchem : mhchem.sty rsphrase.sty.
mhchem \ce \bond, -
. :
\ u s e p a c k a g e [ v e r s i o n =3]{mhchem}
. -
,
, .
\ce -
:
H2 O \ce{H2O} Sb2 O3 \ce{Sb2O3}
H+ \ce{H+} CrO2
4 \ce{CrO4^2}
AgCl2 \ce{AgCl2} [AgCl2 ] \ce{[AgCl2]}
Y99+ \ce{Y^{99}+} Y99+ \ce{Y^{99+}}
H2(aq) \ce{H2_{(aq)}} NO3 \ce{NO3}
(NH4 )2 S \ce{(NH4)2S}
KCr(SO4 )2 12 H2 O \ce{KCr(SO4)212H2O}
KCr(SO4 )2 12 H2 O \ce{KCr(SO4)2.12H2O}
RNO 2 \ce{RNO2^{.}}
-Cl \ce{$\mu\hyphen$Cl}
1
2 H2 O \ce{2H2O} 2 H2 O \ce{1/2H2O}
227 +
90Th \ce{^{227}_{90}Th+}
C6 H5 CHO \ce{C6H5CHO} XY
Z \ce{X=Y#Z}
-
\bond:
\ce{A\sbond B\dbond C\tbond D}\\ ABC D
\ce{A\bond{-}B\bond{=}C\bond{#}D}\\ ABC D
\ce{A\bond{~}B\bond{~-}C}\\ A B
C
\ce{A\bond{~=}B\bond{~--}C\bond{-~-}D}\\ A B
C D
\ce{A\bond{...}B\bond{....}C}\\ ABC
\ce{A\bond{->}B\bond{<-}C} ABC
15.2. 231
-
dvi-.
\ce ,
\ce. -
, .
\centering CO2 + C 2 CO
\ce{CO2 + C -> 2CO}\\ CO2 + C 2 CO
\ce{CO2 + C <- 2CO}\\ CO2 + C
2 CO
\ce{CO2 + C <=> 2CO}\\ H+ + OH H2 O
\ce{H+ + OH- <=>> H2O}\\
\ce{$A$ <-> $A$}\\ CO2 + C
2 CO
\ce{CO2 + C ->[\alpha] 2CO}\\
CO2 + C
2 CO
\ce{CO2 + C ->[\alpha][\beta] 2CO}\\
+H2 O
\ce{$A$ ->[\ce{+H2O}] $B$}
rsphrase (Risk and Safety Phrases)
. -
, . mhchem.pdf.
15.2.3.
TEX -
-
. chemtex.
xymtex.
xymtex LATEX
. -
. ,
. , -
GUI-, ,
. , xymtex -
TEX Live
http://homepage3.nifty.com/xymtex/fujitas3/xymtex/indexe.html.
xymtex403b.lzh. -
( ) lha.
xymtex texmf-
:
#
> l h a x xymtex403b . l z h
# xymtex
> cp r xymtex texmf-local
#
> texhash
232 15.
.
xymtx402403.pdf doc402403. -
, :
%\ u s e p a c k a g e { xymtexps } %
%\ u s e p a c k a g e { chmstps }
%
%
\ b e g i n {XyMcompd} ( 2 1 0 0 , 1 8 0 0 ) ( 2 0 0 , 0 ) { } { }
\ p y r a n o s e {1 Sa==H; 2 Sb==H; 2 Sa==OH; 3 Sb==H; 3 Sa==OH;
4Sb==HO; 4 Sa==H; 5 Sb==H; 5 Sa==CH$_{3}$;%
1Sb==%
\ r y l ( 8 ==O) { 3 ==%
\ s t e r o i d {3== ( y l ) ; 5A==H; 8B==H; 9A==H;%
{{10}B}==\ l m o i e t y {OHC} ; { { 1 4 }A}==OH;%
{{13}B}==\ l m o i e t y {H$_{3}$C} ; { { 1 6 }B}==OH;%
{{17}B}==\ f i v e h e t e r o v [ e ] { 3 ==O}{4D==O; 1 == ( y l ) }
}
}
}
\ end {XyMcompd}
, , :
O
O
H3 C
OH
OHC H
H H OH
O O
HO
CH3 H
H H
H H
OH OH
. 15.4.
GUI- .
15.3. 233
15.3.
,
. , LATEX
. , -
, texshade, -
.
340
. 350
. 360
. 370
. 380
. 390
. 400
.
AF414973_Fusarium_sporotrichioi ACCCTCAAG..CCC.AGCTTGGTGTTGG.GATCTG.TGTGCAA.AC...ACAGT..C...CCC.AAATTGATTGGC
DQ026008_Fusarium_equiseti ACCCTCAAG..CTC.AGCTTGGTGTTGGGACTC.GCGGTA.AC..C..CGC.GT...T.CCCC.AAATCGATTGGC
AF111054_Fusarium_tricinctum ACCCTCAAGCCCCCGGGTTTGGTGTTGGGGATCGGCTCTGCCCTTCTGGGCGGTGCCGCCCCCGAAATACATTGGC
AF009185_Gibberella_avenacea ACCCTCAAGCCCCCGGGTTTGGTGTTGGGGATCGGCTCTG.CCTTCT.GGCGGTGCCGCCCCCGAAATACATTGGC
044-its1_2006-03-10 ACCCTCAAG..CTC.AGCTTGGTGTTGG.GACTCG.CGGTAAC.CC...GCGTT..C...CCC.AAATCGATTGGC
121-its1_2006-03-10 ACCCTCAAG..CTC.AGCTTGGTGTTGG.GACTCG.CGGTAAC.CC...GCGTT..C...CCC.AAATCGATTGGC
027_its1_2006-03-06 ACCCTCAAGCCCCCGGGTTTGGTGTTGGGGATCGGCTCTGCCCTTCTGGGCGGTGCCGCCCCCGAAATACATTGGC
090_its1_2006-03-01 ACCCTCAAG..CCC.AGCTTTTTGTGGGTGATCTG.TGTGCAA.AC...ACAGT..C...CCC.AAATTGATTGGC
025-its1_2006-03-17 ACCCTCAAGCCCCCGGGTTTGGTGTTGGGGATCGGCTCTGCCCTTCTGGGCGGTGCCGCCCCCGAAATACATTGGC
026_its1_2006-03-06 ACCCTCAAGCCCCCGGGTTTGGTGTTGGGGATCGGCTCTG.CCTTCT.GGCGGTGCCGCCCCCGAAATACATTGGC
consensus ACCCTCAAGccCcCg.G.TTggTGTtGGggatcgGct.tgc.cttCt.ggCggTgccgccCCCgAAATa.ATTGGC
. 15.5. (alignment) -
Fusarium/Gibberella texshade
texshade . . WWW-
http://herba.msu.ru/shipunov/software/tex/tex-ru.htm
TEX .
16
;
, .
-
. -
, -
, .
16.1.
, , . ,
, .
verse:
\begin{verse}
\\*
.
.
\emph{ }
\end{verse}
, -
\\. -
(\\),
.
236 16.
verse
verse .
verse.pdf -
.
\renewcommand{\poemtoc}{subsection}
\poemtitle{}
\settowidth{\versewidth}{ "---
.}
\begin{verse}[\versewidth]
,\\ ,
, ,\\ , ,
, ,\\ , ,
"--- . .
\vin \\
\vin \\
\vin ,\\ ,
\vin . .
,\\ ,
,\\ ,
\\
, .\\ , .
...
\ldots
. .
\emph{.\,. }
\end{verse}
\poemtoc , -
. \poemtitle .
\versewidth ,
. verse -
.
, -
. \vin .
, -
.
stage
, , , stage.
stage.sty -
16.1. 237
Act I
(Pause.)
Scene 1
( . , -
, -
.
-
. -
.)
. , ?
.
( ). .
?.. ?
( .)
The End
. 16.1. stage
( ),
.
stage:
% s t a g e
\ documentclass { stage }
\ u s e p a c k a g e [ T2A] { f o n t e n c }
\ u s e p a c k a g e [ k o i 8r ] { i n p u t e n c }
\ usepackage [ english , r u s s i a n ] { babel }
\ u s e p a c k a g e { i n d e n t f i r s t }%f i r s t paragraph i n d e n t
\ a u t h o r { . }
\ t i t l e { }
\ b e g i n { document }
238 16.
%
\ a d d c h a r a c t e r { }{ }
\ a d d c h a r a c t e r {}{ }
%
\ act
%
\ pause
%
\ scene
%
\ opensd { . , ,
.
.
. }
%
\ d i a l o g {}{ . , ?}
\ d i a l o g { }{ . }
\ d i a l o g { } { ( ) . . }
\ d i a l o g { }{ ? . . ?}
\ s t a g e { . }
\ end { document }
stage-documentation.pdf.
16.2.
-
-
. , LATEX
, .
guitar
.
guitar .
16.2. 239
guitar:
Gm E Gm
\begin{guitar} ,
[Gm] [Eb], [Gm] E D7 Gm
[Eb][D7] , [Gm] ,
A7 D7
, [A7] [D7] ,
[Eb] [D7], [Gm] E D7 Gm
\end{guitar} ,
guitar -
.
guitar.dvi
.
MusiXTEX
musixtex -
musictex. , -
.
musixdoc.pdf -
, , LATEX, -
musixtex. LATEX , -
. ,
, , ,
, . MusiXTEX -
LATEX [6].
, -, , ,
music:
G2
\begin{music}
\startextract
\notes\qu{abcdefghi}\ql{jk}\enotes
\endextract
\end{music}
(
). -
\startextract/\endextract. TEX-
. \notes \enotes .
, ,
\startpiece/\endpiece. LATEX -
. ,
.
240 16.
@ ) @ )
G2 34 @ @ ) @ ) @
2
> >
@ @ ) @ )
G2 @ ) @ ) @
3 4
> >
. 16.2. . . , -
musixtex
. 16.2 . . -
. :
\ b e g i n { music } % . .
\ p a r i n d e n t=0pt%
\ g e n e r a l m e t e r {\ m e t e r f r a c 34}% 3/4
\ g e n e r a l s i g n a t u r e {1}%
%
\newcommand{\ l i f t } [ 2 ] { \ r a i s e #1\ I n t e r l i g n e #2}
\ s t a r t p i e c e%
\ n o t e s%
\ z q l {d}\ l i f t {1}{\ qs }%
\ ibbu 0 s 5\ qb 0{km}\ tbu 0\ qb 0{ o }%
\ ibbu 0 s 0\ zqb 0{m}%
\ l i f t {3}{\qp}%
\qb 0{km}\ tbu 0\ qb 0{ k}%
\ i b l 0 j {6}\ zqb 0{h}%
\ l i f t {3}{\ qs }\ ccu {k}%
\ t b l 0\ zqb 0{ f } \ l i f t {2}{\ qs } \ ccu {k} %
\ e n o t e s%
\ bar%
.
\ e n d p i e c e%
\ end { music }
16.2. 241
musixtex ,
. -
MusiXTEX -
.
musixlyr
musixlyr MusiXTEX,
. . 16.3
- . . .
, :
%
% m u s i x l y r
\ u s e p a c k a g e { musixtex }
% m u s i x l y r LATEX
\ input { musixlyr }
\ b e g i n { music }
\ p a r i n d e n t=0pt%
\ g e n e r a l m e t e r {\ m e t e r f r a c 44}% 4/4
\ g e n e r a l s i g n a t u r e {1}%
\ nobarnumbers %
%
\ s e t l y r i c s { Egorov }{% Egorov
,
{ } , { } .
{ } ,
_
}
\ a s s i g n l y r i c s 1{ Egorov } %
\ s t a r t p i e c e%
% ,
\ l y r r a i s e {1}{b1.5mm}
\ Notes \qp\ ds \ ca { a c f }\ en \ bar
\ Notesp \ ca {hg }\ qp\ ca { f e }\ ds \ c c a { de }\ en \ a l a l i g n e
%
\ l y r r a i s e {1}{ b0mm}
\ Notesp \ha{ f }\ ds \ ca { d e f }\ en \ bar
\ Notesp \ ca { j i }\ qp\ ca { h g f e }\ en \ a l a l i g n e
242 16.
G2 44 > ? ( ( ( > ( ( ? ) )
( (
G2
- - - -
? ( ( ( > ( ( ( (
- -
G2 ( ( > (
, - - - - ,
? - - - ( - -
G2 -
. - - - - -
( > > ? ? ( ( ( (
- - - . .
G2 : ( > )
- , - - - - -
( > ( ( ( (
- - .
- - - - -
. 16.3. ,
mysixtex mysixlyr
, -
\setlyrics. (-) .
({}) .
(_) .
mxlyrdoc.dvi .
16.3. 243
16.3.
-
: , .
LATEX
. -
The Comprehensive
LATEX Symbol List (symbols-a4.pdf).
tipa
-
(International Phonetic Alphabet IPA).
tipa IPA . -
:
\textipa{},
\tipaencoding,
IPA.
, ,
:
:
[\textepsilon kspl\textschwa%
-
\textprimstress ne%
: [Ekspl@"neIS@n]
\textsci\textesh\textschwa n]
-
: [Ekspl@"neIS@n]
:
\textipa{[Ekspl@"neIS@n]}
, .
tipaman.pdf.
HieroTEX
HieroTEX TEX Live.
http://www.iut.univ-paris8.fr/~rosmord/archives/ -
. HieroTeX-3.5.tgz Type1-
HieroType1-3.1.4.tgz. -
. HieroTEX .
$
244 16.
$1
$ ) M)
!I
+
6
=
< N $
; $ ; ; <)
((
I
1 4 1 4
2 4
6 0 0
!
>B
2 %
2 6 3
0 0
2P 2 6 3
"
. 16.4. (HieroTEX)
- sesh, -
texmf-
texhash. -
EGypto.pdf. ( hierotex.htx)
:
% h i e r o t e x . htx
% EGypto . t e x h i e r o t e x
\ documentclass { a r t i c l e }
\ u s e p a c k a g e { egypto }
\ usepackage { h i e r o }
\ b e g i n { document }
\ EnColonne [ 1 . 2 \ Htm] {
\ begin { hieroglyph }
G5 <S E1 D40 xa m R1 9 ( t \ s 1 : niwt \ s 1 ) >!
nbty wAH sw \ ! t \ s 1 \ ! i i ( r a : Z1 ) mi m ( p t : pt ) !
sxmG8 F9F9 DsrxaZ2!
( sw : t ) ( b i t : t ) <ramnxpr >! zA \ ! \ ! \ ! ( r a : . )
<G26ms n f r xpr>! O10 nbt Mf (kA : t ) (N3 3 :N3 3 :N3 3 )
mr i i
\ end { h i e r o g l y p h }}
\ end { document }
16.3. 245
sesh LATEX- (
hierotex.tex):
> s e s h < h i e r o t e x . htx > h i e r o t e x . t e x
hieroglyph. -
pdflatex latex ,
. 16.4. , , -
, -
. .
arcs
- ,
arcs:
\underarc{}
\overarc{} . .
LATEX--
: http://www.essex.ac.uk/linguistics/external/clmt/latex4ling/, -
The LaTeX for Linguists.
17
TEX Live
-
.
.
.
TEX Live CTAN-
1 .
LATEX,
TEX Live .
,
X .
17.1.
, -
.
.
17.1.1.
X fontenc LATEX.
X inputenc , .
1 CTAN
X babel .
.
10.1 . 121.
, babel, -
LATEX ( ) (arabtex),
(armtex), (arosgn, bangtex), (burmese),
(vntex), (gurmukhi), (devanagari), (mala-
yalam), (itrans), (oinuit), -
(ocherokee), (cjk), (cjk), (manjutex),
(montex), (sanskrit), (sinhala), -
(adami), (ctib4tex, pecha), (enthiop), (os-
manian), (telugu) (cjk) .
ucs Unicode.
braille ( ).
17.1.2.
X anttor Antykwa Torunska. -
.
X concrete concrete ( ) euler ( -
). . .
. .
cyrillic LATEX. -
inputenc.
X lh Computer Modern. -
Type1 cm-super.
X indentfirst -
.
X t2 -
. misccorr (
), mathtext (
) citehack ( -
BibTEX).
X eskdx .
X gost780u gost71u gost 7.80-00 7.1-84
BibTEX.
17.1.3.
extdash ncctools ,
.
17.1. 249
X ncccomma nctools -
.
icomma was.
X underscore (_) .
17.1.4.
contour .
.
nccstretch ncctools .
X soul , , -
.
truncate .
ulem .
umoline -
.
17.1.5.
dashrule .
X mboxfill ncctools -
.
X nccrules ncctools .
17.1.6.
X lineno .
X ragged2e -
.
hanging .
X comment , -
.
shapepar . ,
- .
17.1.7.
X desclist ncctools description.
engrec
.
enumerate enumerate
.
enumitem .
250 17. TEX Live
X eqlist , description, -
.
etaremune .
expdlist description.
multenum .
X paralist .
17.1.8.
X alltt
LATEX .
fancyvrb -
.
moreverb verbatim.
X verbatim .
17.1.9.
balancedquotes "" ,
, .
csquotes . -
. .
X epigraph .
quotchap .
17.1.10.
alnumsec .
chappg
.
fncychap -
.
Lenny.
nccsect ncctools .
sectionbox . -
, .
titlesec ,
.
titletoc.
appendix .
17.1. 251
17.1.11.
authblk preprint \author, -
, ,
.
coverpage CoverPage, -
.
titling \maketitle.
abstract , .
17.1.12.
crossreference .
lastpage , -
.
X prettyref -
.
refcheck , ,
.
X showkeys . -
.
typedref \ref \figureref, \sectionref \eqref.
\label -
.
varioref tools -
.
X xr .
17.1.13.
fixfoot -
.
X footmisc
.
footnpag .
X ftnright tools -
.
manyfoot ncctools .
X nccfoots ncctools .
X savefnmark .
.
yafoot pfnote ( -
), fnpos (
) dblfnote ( ).
252 17. TEX Live
17.1.14.
endheads -
.
X endnotes .
X pagenote
.
17.1.15.
X marginnote -
.
X mparhack LATEX -
.
X changebar . -
.
17.1.16. WWW-
X breakurl .
X hyperref .
typehtml carlisle HTML LATEX.
HTML2 HTML3.
X url -
.
cooltooltips -
. Adobe Reader 7 .
17.1.17. PDF
cmap pdf-.
pdfcrypt oberdiek pdf-
.
17.1.18.
boites , , -
.
boxedminipage , --
.
boxhandler .
dashbox .
eqparbox ,
.
17.1. 253
fancybox .
nccboxes ncctools . -
. -
.
pst-fr3d 3D-.
X shadow \shabox, .
17.1.19.
X draftwatermark DRAFT
- .
draftcopy.
X fixme
.
prelim2e
, .
progress -
HTML-, -
.
.
pdfsync pdf-. -
pdf- . -
iTeXMac, iTeXMac2, TeXShop emacs (AucTeX) -
pdf iTeXMac, iTeXMac2, TeXShop, TeXniscope PDFView.
srcltx dvi-. -
DVI xdvi yap.
snapshot , -
, ,
. .
X svn svninfo LATEX
svn.
cvs, rcs rcsinfo.
svnkw svn-multi svn.
X vhistory .
vpe srcltx PDF. vpe -
.
17.1.20.
combine pdfpages.
X askinclude -
\include.
254 17. TEX Live
X excludeonly , -
, \include.
chapterfolder , -
,
.
import \input,
-
.
volumes , -
\includeonly.
17.1.21.
crop (cropmark)
. ncccropmark
ncctools.
fixltx2e LATEX 2 .
mylatex carlisle mylatex.ltx, -
, -
. ,
.
morse ( ).
pagesel oberdiek ,
. , -
/ .
totpages , -
.
wordlike , -
, . -
. , , .
17.2.
LATEX ,
, LATEX.
17.2.1.
X amsmath -LATEX. -
.
amsbsy ( ), amsopn ( -
) amstext ( \text,
17.2. 255
). -
, .
X amssymb . -
amsfonts (
). .
X amscd . .
amsthm . proof. -
.
X mh amsmath. -
mathtools , ntheorem
theorem empheq
.
mhequ .
bezos accents ( -
), tensind ( ),
dotlessi ( \dotlessi \dotlessj), esindex, checkend ( -
) arabicfront
( ).
breqn .
. .
X cancel \cancel, \bcancel \xcancel, ,
.
X cases numcases subnumcases -
.
X commath , ,
.
complexity .
dcpic LATEX.
deleq .
easy .
easy ( easy-), easyeqn ( -
), easymat ( ), easybmat ( -
), easytabl ( ), easyvector (C-
), easybib ( -
).
egameps pstricks
(extensive games).
eqname \eqname
.
X esdiff .
esvect , , -
.
256 17. TEX Live
eulervm Euler.
extarrows extpfeil .
faktor \faktor,
. amsmath.
flagderiv - (flag
notation).
gauss .
hhtensor , -
.
karnaugh Karnaugh Maps, Veitch diag-
ram.
maybemath \maybebm \maybeit. -
.
nath natural math notation. -
.
,
-
.
nccthm ncctools -
().
onlyamsmath -
, LATEX -
TEX-. .
X pb-diagram .
pst-3dplot . -
.
pst-bar .
pst-eucl .
pst-func . -
, , ,
.
qobitree .
sobolev .
sseq ,
spectral sequence charts.
subeqn subequations
.
t-angles (Hopf algebra).
X tableaux, tabvar variations
. -
.
X tensor .
vector .
17.2. 257
venn (MetaPost).
X was fixmath ( -
), gensymb ( -
, , ),
icomma ( -
), upgreek (
up ).
X wasysym . integrals -
.
17.2.2.
ascii IBM ASCII.
X algorithms, algorithmic, algorithmicx, algorithm2e,
clrscode pseudocode .
basix BASIC, TEX. -
: {CTAN}/macros/generic/basix/. TEX Live .
X bytefield .
cursor L- .
examplep LATEX MetaPost.
codep ( code, ,
) examplep (
).
, , .
keystroke . PostScript- -
pdf .
X lcd LCD-.
X listings .
method .
pst-dbicons ER--
.
pst-uml UML-.
semantic -
, T-.
17.2.3.
astro cmastro
, .
braket - .
X circ LATEX
METAFONT.
X feyn .
258 17. TEX Live
X feynmf
LATEX METAFONT/MetaPost.
X hepparticles -
.
X isotope .
pst-circ .
X pst-optic .
X pst-osci .
X SIstyle . -
SIunits.
slashed carlisle - . -
\slashed,
, : / def
= .
timing LATEX META-
FONT.
units . -
, .
unitsdef .
17.2.4.
bpchem , , -
.
chemarr oberdiek .
chemarrow .
chemcompounds -
. .
chemcono -
.
cryst .
X mhchem ,
(
).
X pst-labo
pstricks.
r-und-s ( -
).
X xymtex LATEX
. chemtex -
.
http://homepage3.nifty.com/xymtex/fujitas3/xymtex/indexe.html.
TEX Live-2007 .
17.3. 259
17.2.5.
biocon .
dichokey
.
dnaseq -.
pst-pdgr .
X texshade -
(nucleotide and peptide alignments).
textopo ,
(membrane protein topology plots).
labbook -
.
17.3.
answers
.
assignment .
courseoutline coursepaper
.
eCards -
- . pdf Adobe Reader.
X exam , -
.
examdesign .
exercise -
.
flashcards .
interactiveworkbook pdf-. -
pdf Adobe Reader.
probsoln
- , .
qcm .
17.4.
. -
LATEX.
260 17. TEX Live
17.4.1. ,
dramatist .
ednotes .
ledmac . -
TEX- edmac. ledpar -
.
play .
parrun , .
poemscol , -
.
sides -
. plari.
X stage .
verse .
17.4.2.
pst-tree
pstricks.
arcs (\underarc) (\overarc) .
cbcoptic .
covington , -
, --, ,
,
.
engpron , ,
(Daniel Jones English Pronouncing Dicti-
onary)
lexikon .
linguex .
phonetic .
rst .
synttree .
X tipa -
(International Phonetic Alphabet).
teubner babel, greek -
.
xytree .
17.4.3.
abc LATEX ABC- ( ASCII-). -
abcm2ps.
17.5. 261
ConcProg . -
concprog.
cd cd-cover CD-.
X guitar .
musictex MusicTEX ,
LATEX.
X musixtex MusiXTEX MusicTEX -
.
X musixlyr musixtex .
songbook
.
17.5.
- , - .
17.5.1.
TEX-
. .
, ,
.
cooking .
.
cuisine cooking.
17.5.2.
cchess .
chess .
skak PGN-
(Portable Game Notation) .
skaknew , skak.
texmate -
.
17.5.3. ,
backgammon .
crosswrd . -
cwpuzzle.
dice , .
, epsdice.
262 17. TEX Live
othello .
psgo .
sudoku sudoku.
17.5.4.
advdate ltxmisc , -
, , , \today.
calendar .
calxxxx . .
china2e .
clock .
datetime . -
isodate.
weekday .
17.5.5.
bizcard .
labels - .
ticket , , -
.
17.6.
, , ,
. .
17.6.1.
float . -
floatraw.
rotfloat float, -
.
17.6.2.
boxhandler figure table.
dpfloat ,
. .
X floatflt , .
nccfloats ncctools
.
17.6. 263
sidecap , -
.
X wrapfig , -
.
X miniplot , subfig, .
photo .
picinpar . -
wrapfig . -
, .
plates ,
, (). -
, .
X subfig . -
.
17.6.3.
capt-of
.
captcont .
X caption , -
. -
ccaption.
X mcaption .
subfloat -
, .
X topcapt \topcaption, \caption,
.
17.6.4.
X endfloat .
figcaps preprint -
, -
. ,
.
hvfloat
.
X placeins ,
.
264 17. TEX Live
17.7.
. , ,
.
17.7.1.
bmpsize oberdiek -
. -
.
figsize
.
X graphicx .
epstopdf oberdiek eps- -
pdflatex, epstopdf .
nccpic ncctools graphicx -
.
hilowres
, , .
, .
rotating .
watermark ncctools , ,
. -
bophook, eso-pic wallpaper.
17.7.2.
aurora dvips .
-
.
X color .
colorinfo -
.
xcolor .
17.7.3. LaTeX
bardiag PSTricks.
bez123 .
coordsys ,
. picture.
curve2e pict2e.
curves .
picture.
17.7. 265
ebezier . picture.
ecltree . picture.
epic picture.
epic eepic.
histogr . picture.
pdftricks pstricks -
pdflatex.
pict2e picture, -
.
pgf A Portable Graphic Format for TEX.
LATEX, tex-
.
pstricks Postcript LATEX.
pst-node ( ), pst-plot
( ), pst-tree ( ).
pst-3d -3D, , .
pst-barcode .
pst-blur .
pst-coil .
pst-eps eps-.
pst-fill .
pst-geo .
pst-gr3d 3D-.
pst-grad RGB- HSB-.
pst-infixplot -
.
pst-lens .
pst-light3d 3D- , .
pst-math ,
PostScript.
pst-pdf pdf-.
pst-poly .
pst-text .
pst-slpe .
pst-vue3d 3D- .
pst-xkey xkey - pstricks.
scalebar .
xypic TEX.
266 17. TEX Live
17.8.
, .
,
.
X booktabs .
.
17.8.1.
X arydshln .
delarray ( ) array.
X hhline .
17.8.2.
X cellspace ,
.
X colortbl , .
X makecell .
, , -
\makecell.
X multirow , . -
bigdelim ( ) bigstrut (-
).
X slashbox , -
.
17.8.3.
X dcolumn tools
. rccol warpcol.
X numprint
, .
17.8.4. tabular
array tabular array .
.
blkarray carlisle blockarray, -
array, tabular.
tabularht oberdiek tabular , -
.
17.9. 267
17.8.5.
X longtable . -
.
ltxtable carlisle longtable tabularx.
X supertabular
longtable, .
X xtab supertabular -
longtable.
17.8.6.
X listliketab .
17.8.7.
X csvtools CSV-.
17.9.
() , ,
, , -
. LATEX , ,
.
X afterpage
.
everypage .
microtype pdftext. -
.
( T2A). -
.
17.9.1.
X lscape landscape,
.
X portland .
268 17. TEX Live
17.9.2.
chngpage .
X geometry -
.
X layout .
pdfscreen pdf- .
X pgfpages pgf ,
-
.
pdfpages pdf- pdf--
.
X twoup .
booklet.
rmpage .
typearea KOMA-Script .
fullpage preprint 1.5 .
savetrees . -
, ?
stdpage , ,
.
X typogrid . -
.
X vmargin .
17.9.3.
X setspace .
nccparskip ncctools -
.
17.9.4.
X balance preprint
.
17.10. LATEX 269
dblfloatfix (-
midfloat sttools) (
fixltx2e).
X multicol tools -
.
X parallel .
.
parcolumns sauerj -
.
X sttools , ,
. stfloats (
), floatpag ( ,
), flushend ( -
), cuted ( -
/ ), marginal (-
) midfloat (
).
17.10. LATEX
article (), book (), report (), proc (-
), letter () slides ( ) -
, -
.
. -
.
X KOMA-Script -
. scrartcl (-
), scrreprt (), scrbook () scrlttr2 ().
X ncclatex, , -
ncc. , , -
, , . [10]
.
hc KOMA-Script hcart
(), hcreport (), hcletter ().
hcslides.
ntgclass -
(artikel1, artikel2 artikel3), (boek
boek3), (brief ) (rapport1 rapport3).
.
270 17. TEX Live
extsizes , -
10pt, 11pt 12pt 8pt, 9pt, 14pt, 17pt
20pt. extarticle, extbook, extletter, extproc, extreport.
X minimal , -
, .
17.10.1.
X eskdx . -
: eskdtext ( ), eskdbtab
( ) eskdgraph ( , ).
isostds ISO
(iso) ISO 10303 (iso10303).
17.10.2.
letter scrlttr2
KOMA-Script .
adrconv directory ,
BibTEX .
adrlist -
.
X akletter letter.
beletter .
X cdpbundl .
envlab US Postal Service.
dinbrief g-brief . dinbrief
dinbrief-gui Tcl/Tk.
facsimile fax .
formlett mailing .
lettre .
X newlfm ,
. fancyhdr geometry.
17.10.3.
book -
, , scrbook KOMA-Script.
X memoir ,
.
X octavo : , -
.
X sffms -
.
17.10. LATEX 271
17.10.4.
report, ,
, , scrreprt KOMA-Script.
X hitec HiTech.
refman refart refrep, -
-
, Adobe.
17.10.5.
X slides
.
a0poster .
X beamer -
.
powerdot .
prosper seminar slides. -
ppr-prv , -
prosper.
sciposter -
.
X seminar slides -
.
talk beamer . -
.
texpower , -
. powersem.
-
seminar ifmslide pdflatex. -
pdfslide.
ppower4,
PDF-.
17.10.6.
.
, -
.
X disser -
, , .
. ,
272 17. TEX Live
17.10.7.
X curve CurVe -
.
europecv , -
.
moderncv .
vita,
currvita cv.
17.10.8.
, -
.
aaai AAAI (American Association for Artificial Intelligence).
aastex AASTeX Ame-
rican Astronomical Society.
abstbook -
.
acmconf ACM (Association for Computing Ma-
chinery). acm.
active-conf ACTIVE ().
aguplus AGUTeX AGU (American Geophysical Union).
aiaa-tc , AIAA (American Institute of
Aeronautics and Astronautics). aaai-
named.
17.10. LATEX 273
17.10.9.
LATEX,
.
X papertex LATEX.
leaflet - .
274 17. TEX Live
17.11. -
. -
. -
.
17.11.1.
X minitoc .
multitoc .
X shorttoc .
X tocbibind , , -
.
X tocloft , -
, , .
tocvsec2 -
.
17.11.2.
X fancyhdr .
X nccfancyhdr ncctools fancyhdr.
X technics , fancyhdr
.
.
17.11.3.
amsrefs BibTEX .
authorindex .
backref hyperref , -
.
babelbib
babel. -
.
bibcheck ltxmisc ,
thebibliography .
bibtopic
.
bibunits
, , \part.
X breakcites ltxmisc \cite
. .
camel BibTEX .
17.11. - 275
cite , cite ( -
), overcite (
), drftcite ( -
) chapterbib (
).
X citehack t2 -
\cite.
citeref .
X compactbib thebibliography
.
custom-bib .
doipubmed (\doi, \pubmed \citeurl)
.
footbib
.
harvard Harvard.
multibbl .
multibib .
natbib . -
.
notoccite
, /-
BibTEX- unsrt.
17.11.4.
X gloss BibTEX.
index -
.
X makeidx LATEX .
X makeglos .
X nomencl . -
.
robustindex -
. ,
, .
X splitindex
.
X varindex . -
, , , -
.
276 17. TEX Live
17.12. LATEX
,
- .
, .
perltex PerlTEX. perl LATEX.
17.12.1.
arrayjob LATEX .
binhex , -
.
X chngcntr
.
clefval /
. - .
engord oberdiek
.
dcounter ncctools ,
.
fmtcount (, , -
) .
sublabel preprint
, 4a, 4b, 4c .
zahl2string sauerj -
.
17.12.2. LATEX
X calc -
.
fltpoint .
refcount oberdiek ,
.
fp , , -
.
17.12.3.
ifdraft oberdiek
draft/final.
ifmtarg ltxmisc -
. ,
.
17.12. LATEX 277
17.12.4.
acronym .
makecmds \makecommand, \makeenvironment
\provideenvironment, , -
, , .
optparams sauerj
. .
robustcommand .
toolbox ,
.
twoopt oberdiek
, .
17.12.5.
coolstr . ASCII-,
. \substr, -
,
.
keyval =.
processkv sauerj =.
.
X tokenizer .
xkeyval keyval.
=.
17.12.6.
attachfile2 oberdiek PDF.
fink ,
\finkfile.
embedfile oberdiek PDF.
278 17. TEX Live
extract , -
.
filecontents LATEX-
\include.
newfile / .
X optional -
, , .
versions ,
.
17.12.7. LATEX
afterpackage ncctools ,
.
X doc .
.
X docstrip , -
doc.
blindtext -
.
lipsum.
diagnose .
dialogl LATEX-.
export / LATEX .
makedtx dtx-.
msg . -
, .
xdoc , , doc.
TEX Live 279
TEX Live
CD TEX Live-2007. -
LATEX http://www.tug.org/texlive/.
CD, TEX Live -
:
i386-linux GNU/Linux x86;
powerpc-darwin MacOSX PowerPC1 ;
win32 32- Windows, 9x .
texmf-doc/doc/russian/texlive-ru/ -
html- pdf-: live.html live.pdf .
,
.
GNU/Linux
GNU/Linux, , Debian (Lenny), TEX Live -
LATEX .
, TEX Live.
GNU/Linux Mac OS X
CD :
> sh . / i n s t a l l t l . sh
. -
, -
. .
1 . ,
.
-
, -
PATH, , :
# bash . b a s h _ p r o f i l e
> TEXLIVE=/u s r / l o c a l / t e x l i v e /2007/
> PATH=$TEXLIVE/ b i n / i 3 8 6 l i n u x :$PATH
> e x p o r t PATH
1 , T X Live Mac OS X, -
E
MacTEX (http://www.tug.org/mactex/). -
TEX Live .
280 TEX Live
tex-
. - -
LATEX. ,
: emacs2 vim.
, , -
. , -
Kile (KDE Integrated
LATEX Environment) LyX (WYSIWYM ).
Windows3
Windows MiKTEX
(http://www.miktex.org/). LATEX
CTAN, TEX Live
MiKTEX.
TEX Live Windows
tlpmgui.exe, setup-win32
. CD, -
.
. tlpmgui.exe -
(scheme-full) , -
, Language
Collection. Install, -
perl , -
.
( ). -
, GhostScript
PostScript dvi- dviout. -
, .
.
, -
.
LATEX Windows -
.
gsview (http://www.ghostgum.com.au/).
PostScript. -
, -
2 L
AT X AucT X RefT X. -
E E E
preview-latex.
3 L AT X, , ,
E
GNU/Linux . ,.
TEX Live 281
.
Adobe Reader (http://www.adobe.com/products/reader/) -
pdf-.
tex-. :
TeXnicCenter (http://www.toolscenter.org/)
. -
dvi-;
WinEdt (http://www.winedt.com/) ShareWare -
. 5.5,
TEX Live-2007;
Notepad++ (http://notepad-plus.sourceforge.net/ru/site.htm)
, ;
emacs vim, GNU/Linux.
TEX Live-2007 -
. -
http://tug.org/texlive/bugs.html.
, -
. mktexmf TEX-.
lh.
texmf.cnf. :
MKTEXPK = 1
MKTEXMF = 1
MKTEXTFM = 1
MKTEXFMT = 1
/TeXLive2007/texmf-var/web2c/.
> kpsewhich texmf . c n f
. -
latex, -
. 4 , dvi-
. , ,
.
4 ,
V \vin, 236
\value, 76 \visible, 116
\varangle, 187 Vmatrix, 197
\varepsilon, 50, 187 vmatrix, 197
\varhexstar, 124 \voffset, 81
\varkappa, 50, 187 \vphantom, 200
\varnothing, 51, 187 \vspace, 91
\varphi, 50, 187 \vspace*, 91
\varpi, 187 \Vvdash, 192
\varpropto, 192
\varrho, 187 W
\varsigma, 187 \wasylozenge, 124
\varsubsetneq, 192 \wasypropto, 193
\varsubsetneqq, 192 \wasytherefore, 187
\varsupsetneq, 192 \wedge, 190
\varsupsetneqq, 192 \WHILE, 214
\vartheta, 187 \whiledo, 77, 277
\vartriangle, 187 \widehat, 188
\vartriangleleft, 193 \widetilde, 188
\vartriangleright, 193 \width, 128, 129
\Vdash, 192 \widthof, 75
\vDash, 192 \wordbox, 213
\vdash, 191 \wordgroupr, 213
\vdots, 189 \wp, 186
\vec, 51, 188 \wr, 190
\vee, 190 wrapfigure, 65, 66
\veebar, 191 X
\verb, 142, 208, 210 \XBox, 124
\verb*, 208 \xcancel, 189, 255
verbatim, 208 \Xi, 50, 187
verbatim*, 208 \xi, 50, 187
\verbatiminput, 208 \xleftarrow, 194
\verbatiminput*, 208 \xrightarrow, 194
verse, 235, 236 \xspace, 73
\versewidth, 236 xtab, 160
versionhistory, 217 xtabular, 159
\vfil, 91
\vfill, 91 Z
\vhantom, 200 \zeta, 50, 186, 187
\vhCurrentDate, 218
\vhCurrentVersion, 218
\vhEntry, 217
\vhListAllAuthorsLong, 218
A amsmath, 45, 47, 48, 137, 185, 188, 189,
a0poster, 104, 271 195, 198200, 202204, 254
aaai, 272 256
aaai-named, 272 amsopn, 254
aastex, 272 amsproc, 100, 273
abc, 260 amsrefs, 274
abstbook, 272 amssymb, 50, 51, 125, 185187, 190
194, 255
abstract, 251
amstext, 48, 254
accents, 255
amsthm, 255
acm, 272
amsxtra, 188
acmconf, 272 answers, 259
acronym, 277 anttor, 126, 248
active-conf, 272 apa, 273
adami, 248 apacite, 273
adrconv, 270 apalike, 273
adrlist, 270 appendix, 250
advdate, 262 arabicfront, 255
afterpackage, 278 arabtex, 248
afterpage, 63, 267 arcs, 245, 260
aguplus, 272 armtex, 248
aiaa-tc, 272 arosgn, 248
akletter, 101, 270 array, 153, 159, 198, 266
algorithm2e, 215, 257 arrayjob, 276
algorithmic, 214, 257 article, 33, 41, 42, 81, 83, 98, 141, 269
artikel1, 100, 269
algorithmicx, 215, 257
artikel2, 100, 269
algorithms, 214, 215, 257
artikel3, 100, 269
alltt, 250
arydshln, 155, 266
alnumsec, 250 asaetr, 104, 273
altt, 208 ascelike, 273
amsart, 100, 273 ascii, 257
amsbook, 100, 273 askinclude, 146, 253
amsbsy, 254 assignment, 106, 259
amscd, 198, 199, 255 astro, 257
amsfonts, 50, 185, 188, 255 attachfile2, 277
299
processkv, 277 Q
progress, 253 qcm, 106, 259
prosper, 103, 271 qobitree, 256
pscyr, 102 quotchap, 250
pseudocode, 216, 257
psgo, 262 R
pst-3d, 265 r-und-s, 258
pst-3dplot, 256 ragged2e, 90, 249
pst-bar, 256 rapport1, 100, 269
pst-barcode, 265 rapport3, 100, 269
pst-blur, 265 rccol, 158, 266
pst-circ, 228, 258 rcs, 218, 253
pst-coil, 265 rcsinfo, 218, 253
pst-dbicons, 257 refart, 271
pst-eps, 265 refcheck, 251
pst-eucl, 256 refcount, 276
pst-fill, 265 refman, 271
pst-fr3d, 253 refrep, 271
pst-func, 256 report, 33, 42, 81, 83, 98, 102, 269, 271
pst-geo, 265 revtex4, 33, 104, 273
pst-gr3d, 265 rmpage, 268
pst-grad, 265 robustcommand, 277
pst-infixplot, 265 robustindex, 275
pst-labo, 229, 258 rotating, 264
pst-lens, 265 rotfloat, 262
pst-light3d, 265 rotpages, 82, 268
pst-math, 265 rsphrase, 231
pst-node, 265 rst, 260
pst-optic, 228, 258
pst-osci, 228, 258 S
pst-pdf, 265 sanskrit, 248
pst-pdgr, 259 sauerj, 269, 276, 277
pst-plot, 265 savefnmark, 139, 251
pst-poly, 265 savetrees, 268
pst-slpe, 265 scalebar, 265
pst-text, 265 sciposter, 104, 271
pst-tree, 260, 265 scrartcl, 33, 42, 83, 84, 100, 269
pst-uml, 257 scrbook, 33, 42, 83, 84, 100, 102, 135,
pst-vue3d, 265 269, 270
pst-xkey, 265 scrlettr, 83
PSTricks, 228, 229 scrlttr2, 100, 101, 269, 270
pstricks, 255, 258, 260, 265 scrreprt, 33, 83, 100, 102, 269, 271
ptptex, 273 sectionbox, 250
306
V Z
variations, 256 zahl2string, 276
varindex, 275
varioref, 251
vector, 256
venn, 257
verbatim, 35, 116, 208, 250
verse, 236, 260
versions, 278
vhistory, 217, 218, 253
vita, 105, 272
vmargin, 83, 84, 268
vntex, 248
volumes, 254
vpe, 253
W
wallpaper, 145, 264
warpcol, 158, 266
was, 187, 249, 257
wasysym, 53, 124, 125, 187, 191, 193,
196, 257
[5] . , . , . . LATEX
LATEX 2 . . : , 1999. 606 . ISBN: 5-03-003325-4.
[6] . , . , . . LATEX
. . : , 2002. 621 . ISBN: 5-03-003388-
2.
[7] . , . . LATEX Web--
. . : , 2001. 604 . ISBN: 5-03-003387-4.
[8] . . . LATEX. . : , 2003.
448 . ISBN: 5-94057-091-7.
[9] . . , . . . LATEX -. : -
, 2004. 496 . ISBN: 5-87550-195-2.
[10] . . . LATEX / . . . .
: . , 2005. 398 . ISBN: 5-901548-25-6.
[11] . . . -. . : -,
2003. 500 . ISBN: 5-224-04560-6.