You are on page 1of 1119
yy vv AUTRES. erin Second Edition Frank Mittelbach and Michel Goossens with Johannes Braams, David Carlisle, and Chris Rowley The TeX Companion Second Edition Frank Mittelbach with Johannes Braam: nd Michel Go David The BTEX Companion has long been the essential resource for anyone using IX to create high-quality printed Cocuments. This completely updated edition brings you al the latest information about TEX and the vast range of add-on packages now available—over 200 are covered! Full of new tips and tricks for using 1X in both traditional and modern typesetting, this bock will also show you how to customize layout features to your own needs—from phrases and paragraphs to headings, lists, and pages. Inside, you will find: + Expert advice on using IT's basic formatting, tools to create all types of publications —from _memos to encyclopedias + In-depth coverage of important extension packages for tabular and technical typesetting, floats and captions, multicolumn layouts—including reference guides and discussions of the underlying typographic and TeXnical concepts + Detailed techniques for generating and typesetting contents lists, bibliographies, indexes, etc. + ‘Tips and tricks for TEX programmers and systems support ‘The accompanying CD-ROM contains a complete plug-and-play [5X installation, including all the packages and examples featured in the book \wwwwsawyprofessional.com ‘Cover design by Melanie Buck (Cover stration by © aid Arky/CORBIS ©iText printed on recycled paper Addison-Wesley Pearson Educatiot New to this edition: + Nearly 1,000 fully tested examples that illustrate the text and solve typographical and technical problems— all ready to run! + Anadditional chapter on citations and bibliographies + Expanded material on the setup and use of fonts to access a huge collection of glyphs, and to typeset text from a wide range of languages and cultures *+ Major new packages for graphics, “verbatim listings, floats,and page layout + Fall coverage of the latest packages forall types of documents —mathematicel, multilingual, and many more + Detailed help on al error messages, including those troublesome low-level THX errors Like its predecessor, The L'TEX Companion, Second Edition, is an indispensable reference for anyone wishing to use TEX productively. Al of the authors have over 10 years of varied experience working with LX-related software systems. All but ‘one are active members of the “:X3 Project Team, developing and maintaining the core ISTEX system. The authors are donating a portion of the book’s royalties to the [X]X3 project fund, which supports the maintenance and future development of ISTEX. HUN i 020 ISBN 0-201-36299-6 $59.99 US $86.99 CANADA The IATEX Companion Second Edition Addison-Wesley Series on Tools and Techniques for Computer Typesetting ‘This series focuses on tools and techniques needed for computer typesetting and informa- tion processing with traditional and new media. Books in the series address the practical needs of both users and system developers. Initial titles comprise handy references for 1SX users; forthcoming works will expand that core. Ultimately, the series will cover other typesetting and information processing systems, as well, especially insofar as those sys- tems offer unique value to the scientific and technical community. The series goal is to enhance your ability to produce, maintain, manipulate, or reuse articles, papers, reports, proposals, books, and other documents with professional quality Ideas for this series should be directed to the editor: mittelbach®av com, Send all other comments to the publisher: auprofessional@aw. com. Series Editor Frank Mittelbach, ‘Manager ISTX3 Project, Germany Editorial Board Jacques André ‘Tim Bray Chris Rowley Irisa/Inria-Rennes, France Textuallty Services, Canada Open University, UK Barbara Beton Peter Flynn Richard Rubinstein Editor, TUGboat, US University College, Cork, Human Factors David Brailsford Ireland International, USA University of Nottingham, Leslie Lamport Paul Stiff UK Creator of IT, USA University of Reading, UK Series Titles Guide to LX, Fourth Edition, by Helmut Kopka and Patrick W. Daly The I6TgX Companion, Second Edition, by Frank Mittelbach and Michel Goossens ‘with Johannes Braams, David Carlisle, and Chris Rowley The L&X Graphics Companion, by Michel Goossens, Sebastian Rahtz, and Frank Mittelbach The IsTX Web Companion, by Michel Goossens and Sebastian Rahtz Also from Addison-Wesley: LagX: A Document Preparation System, Second Edition, by Leslie Lamport The Unicode Standard, Version 4.0, by the Unicode Consortium The IATEX Companion Second Edition Frank Mittelbach BIEX3 Project, Manz, Germany Michel Goossens CERN, Geneva, Switzerland with Johannes Braams, David Carlisle, and Chris Rowley and contributions by Christine Detig and Joachim Schrod vv Addison-Wesley Boston ¢ San Francisco « New York e Toronto ¢ Montreal London « Munich « Paris « Madrid Capetown « Sydney « Tokyo « Singapore e Mexico City Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Addison-Wesley was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals, ‘The authors and publisher have taken care in the preparation of this book, but make no expressed! or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection ‘with or arising out of the use of the information or programs contained herein, ‘The publisher offers discounts on this book when ordered in quantity for bulk purchases and special sales. For more Information, please contact: US. Corporate and Government Sales (800) 382-3419 corpsales@pearsontechgroup.com For sales outside of the U.S,, please contact: International Sales (317) 581-3793 international @pearsontechgroup. com Visit Addison-Wesley on the Web: wy. auprofessional.com Library of Congress Cataloging-in-Publication Data Mittelbach, Frank ‘The LaTeX Companion.- 2nd ed. / Frank Mittelbach and Michel Goossens, with Johannes Braams, David Carlisle, and Chris Rowley Pp. cn Goossens’ name appears first on the earlier edition. Includes bibliographical references and index. ISBN 0-201-36299-6 (pbk. : alk. paper) 1. LaTex (Computer file) 2. Computerized typesetting. I. Goossens, Michel. II. Rowley, Chris, 1948- IIT. Title 2253.4.138066 2004 686.2 2544536-dc22 2003070810 Copyright © 2004 by Pearson Education, Inc. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior consent of the publisher. Printed in the United States of America. Published simultaneously in Canada, For information on obtaining permission for use of material from thi submit a written request to: work, please Pearson Education, Inc. Rights and Contracts Department 75 Arlington Street, Suite 300 Boston, MA 02116 Fax: (617) 848-7047 ‘Text printed on recycled and acid-free paper. ISBN 0201362996 3.45678 CRW 070605 We dedicate this book to the memory of Michael Downes (1958-2003), a great friend and wonderful colleague on the EXijX Tear. His thoughtful contributions to our work and our lives are diverse and profound. Moreover, he brightens the lives of countless grateful (A) TeX users through the wisdom built into his support for all aspects of mathematical typesetting—very many masterpieces of the publishing art will stand for ever as superb memorials to his quiet but deep insights. Contents List of Figures xix List of Tables xxi Preface xxv Introduction i: 11] Abeba eee ‘12a Odmys 6YSOM ctr 1.3 Working with this book 13.1 sue 1.3.2 Typographic conventions......... os 1.3.3 Using the examples. ‘The Structure of a IXTIEX Document 2.1 The structure of a source file... . 241 What's here... 6.6 e000 eee ee Processing of options and packages 2.1.2 Splitting the source file into parts ..... 2.2.0.0. 2.1.3 Combining several files... 0... 00 0c eee cee eae 2.1.4 — optional—Providing variants in the document source 2.2 Sectioning commands ... . . enna 2.2.1 Numbering headings 2.2.2 Formatting headings 2.2.3 Changing fixed heading texts. 2.24 fncychap~Predefined chapter heading layouts 2.2.5 quotchap—Mottos on chapters . . . 226 titlesec—A different approach to headings . ..

You might also like