E-Book Content
TEX and AMS-TEX are trademarks of the American Mathematical Society.
Library of Congress Cataloging-in-Publication Data Spivak, Michael David. The joy of TeX, second ed.: a gourmet guide to typesetting with the AMS-TeX macro package / M.D. Spivak. p. cm. 1. TeX (Computer system) 2. Mathematics printing. 3. Computerized typesetting. I. Title. Z253.4.T47S673 1990 90-1082 686.2' 25445369--dc20 CIP ISBN 0-8218-2997-1 (alk. paper)
Reprinted with corrections by the American Mathematical Society, 2004. c 1990 by the American Mathematical Society. All rights reserved. Copyright c 1982, 1983, 1986 by the American Mathematical Previous editions copyright Society. All rights reserved. Any material in this guide may be reproduced or duplicated for personal or educational use.
For My Mother
CONTENTS
Preface . . . . . . . . . . . . . . . . . Acknowledgments . . . . . . . . . . . Personal Pronoun Pronouncement . . . Introduction. On Advanced Typesetting
Part 1. Starters 0.
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. . . .
. ix xi, xiii . xv . xvii
. . . . . . . . . . . . . . . . . . . . . . 1
Getting Acquainted; A Key Chapter . . . . . . . . . . . . .
3
Keys available on the keyboard
1.
Learning TEX’s Lingo . . . . . . . . . . . . . . . . . . . .
6
Ordinary text and control sequences
2.
Printers Do It With All Types . . . . . . . . . . . . . . . .
15
Changing fonts
3.
Your First TEX Experience
. . . . . . . . . . . . . . . . .
20
Running a file through TEX
4.
TEX’s Erroneous Zones . . . . . . . . . . . . . . . . . . .
27
Error messages, and how to respond to them
5.
Spaces That Separate, Ties That Bind
. . . . . . . . . . . .
32
. . . . . . . . . . . . . . . . . . . .
34
Subtleties of spacing and line breaking
6.
´ Doing It With Elan
Special symbols and accents
7.
Part 2. Main Courses . . . . . . . . . . . . . . . . . . .
47
TEX’s Brand Of Mathematics . . . . . . . . . . . . . . . .
43
Mathematical formulas in text
8.
Lousy Breaks? Try An Artful Display
. . . . . . . . . . . .
53
. . . . . . . . . . . . . . . .
58
Displayed formulas
9.
The 2nd Level Of Complexity Superscripts and subscripts
vii
viii
10.
Contents
Our Problems Mount . . . . . . . . . . . . . . . . . . . .
66
Fractions, binomial coefficients, etc.
11.
Benefitting From TEX’s Largess ,
12.
. . . . . . . . . . . . . . .
72
and other “large operators”
Creating Your Own Space . . . . . . . . . . . . . . . . . .
77
Controlling spacing in mathematical formulas
13.
Fascinating Things That Expand By Themselves . . . . . . . .
79
Delimiters and other variable size symbols
14.
A Roman Orgy
. . . . . . . . . . . . . . . . . . . . . .
88
Roman type in formulas
15.
Keeping Them In Line
. . . . . . . . . . . . . . . . . . .
97
Numbering formulas and aligning equations in a display
16.
Too Much Of A Good Thing
. . . . . . . . . . . . . . . . 103
Breaking formulas that are too long
17.
Sophisticated Positions . . . . . . . . . . . . . . . . . . . 108 Matrices
Part 3. Sauces & Pickles . . . . . . . . . . . . . . . . . 113 18.
Practicin