The LaTeX Graphics Companion

by ; ; ; ;
  • ISBN13:


  • ISBN10:


  • Edition: 2nd
  • Format: Paperback
  • Copyright: 2007-08-02
  • Publisher: Addison-Wesley Professional
  • Purchase Benefits
  • Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $64.99 Save up to $9.75
  • Buy New
    Add to Cart Free Shipping


Supplemental Materials

What is included with this book?

  • The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.


The LATEX typesetting system remains a popular choice for typesetting a wide variety of documents, from papers, journal articles, and presentations, to books--especially those that include technical text or demand high-quality composition. This book is the most comprehensive guide to making illustrations in LATEX documents, and it has been completely revised and expanded to include the latest developments in LATEX graphics. The authors describe the most widely used packages and provide hundreds of solutions to the most commonly encountered LATEX illustration problems. This book will show you how to Incorporate graphics files into a LATEX document Program technical diagrams using several languages, including METAPOST, PSTricks, and XY-pic Use color in your LATEX projects, including presentations Create special-purpose graphics, such as high-qualitymusic scores and games diagrams Produce complex graphics for a variety of scientific and engineering disciplines New to this edition: Updated and expanded coverage of the PSTricks and METAPOST languages Detailed explanations of major new packages for graphing and 3-D figures Comprehensive description of the xcolor package Making presentations with the beamer class The latest versions of gaming and scientific packages There are more than 1100 fully tested examples that illustrate the text and solve graphical problems and tasks--all ready to run! All the packages and examples featured in this book are freely downloadable from the Comprehensive TEX Archive Network (CTAN). The LATEX Graphics Companion, Second Edition, is more than ever an indispensable reference for anyone wishing to incorporate graphics into LATEX. As befits the subject, the book has been typeset with LATEX in a two-color design.

Author Biography

Michel Goossens is at present responsible for scientific text processing at CERN, the European Laboratory for Particle Physics, in Geneva, Switzerland. He is a coauthor of The LaTeX Companion, Second Edition, The LaTeX Graphics Companion, Second Edition, and The LaTeX Web Companion, and also is a past president of the TUG and GUTenberg TeX Users Groups.
     Michel began working at CERN after earning a Ph.D. in physics at Brussels University. At CERN, he soon realized the importance of good documentation and, since the middle 1980s, has been deeply involved with LaTeX. At the same time he has followed closely the development of other generic markup languages and was among the first users of SGML, HTML (invented at CERN), and later XML.

Frank Mittelbach is manager and technical director of the LaTeX3 Project, in which capacity he oversaw the release of LaTeX 2e and more than 15 subsequent releases of this software. In 1989 he joined Electronic Data Systems (EDS), working in a newly formed group for document processing using TeX and other tools. In his current position, he is responsible for concepts and implementation for remote monitoring and management of distributed systems and networks. Frank is a coauthor of The LaTeX Companion, Second Edition, and The LaTeX Graphics Companion, Second Edition, as well as the editor of the book series in which they appear, Tools and Techniques for Computer Typesetting.
     Frank studied mathematics and computer science at the Johannes-Gutenberg University, Mainz. His interest in the automated formatting of complex documents in general, and in LaTeX in particular, goes back to his university days and has become a major interest, perhaps a vocation, and certainly it is now his "second job." He is author or coauthor of many and varied LaTeX extension packages, such as AMS-LaTeX, doc, multicol, and NFSS: the New Font Selection Scheme. In 1990 Frank presented the paper E-TeX: Guidelines for further TeX extensions, which explained the most critical shortcomings of TeX and argued the need for its further development and for research into the many open questions of automated typesetting. This was the first time the topic of change or extension had been openly discussed within the TeX community and, after getting some early opposition, it helped to spawn several important projects, such as eTEX, Omega, and NTS. He is now interested in bringing together the fruits of these TeX extension developments to get a stable, well-maintained, and widely available successor of TeX on which a future LaTeX3 can be based.

Sebastian Rahtz is information manager for Oxford University Computing Services. He is a coauthor of The LaTeX Graphics Companion, Second Edition, and The LaTeX Web Companion.
     Sebastian started life in classics, moved to archaeology, and thence to computing. During the 1980s he taught humanities and archaeological computing at Southampton University, where he also came across TeX. The infection grew strong, and he spent most of the 1990s in TeX-related matters, working latterly for Elsevier Science in production support and in LaTeX to SGML conversion. During that time he was heavily involved in the international and UK TeX Users Groups in many capacities, and worked on a variety of LaTeX packages, most notably hyperref. His allegiance today has largely moved to XML, in which capacity he is Oxford's representative on the Board of the Text Encoding Initiative, but he retains a soft spot for the funny backslash and curly bracket language.

Denis Roegel is associate professor in computer science at the University of Nancy. He has been involved in LaTeX for the past 15 years and has a special interest in technical graphics.
     Denis discovered computers in the early 1980s, and after studying mathematics and physics, he earned an engineering degree from the École Supérieure d'Électricité and a Ph.D. in computer science from the Université Henri Poincaré in Nancy. He later was a postdoctoral fellow at the State University of New York at Stony Brook.

Herbert Voß is a teacher of mathematics, physics and computer science at a German high school and a lecturer at the Free University of Berlin. For the past three years, he has been heavily involved in maintaining PSTricks and using PostScript from within LaTeX.
     Herbert studied Electrical Engineering and Power Electronics in Hannover and Berlin. His first experience with a computer was in 1970 with an IBM machine and Algol60. The first text-processing program he used, in 1982, was Wordstar on a microcomputer with an 8080 chip. From this time on, he also was heavily involved in programming for various projects with Turbo Pascal. He came back to PostScript and LaTeX at the end of the 90s.

Table of Contents

List of Figuresp. xvii
List of Tablesp. xxi
Prefacep. xxv
Why LATEX, and why PostScript?p. xxvi
How this book is arrangedp. xxvii
Typographic conventionsp. xxix
Using the examplesp. xxxi
Finding all those packages and programsp. xxxiii
Graphics with LATEXp. 1
Graphics systems and typesettingp. 2
Drawing typesp. 3
TEX's interfacesp. 6
Graphics languagesp. 10
Choosing a packagep. 21
Standard LATEX Interfacesp. 23
Inclusion of graphics filesp. 23
Manipulating graphical objectsp. 36
Line graphicsp. 42
The META languagep. 52
Differences between METAPOST and METAFONTp. 60
Running the META programsp. 68
Some basic METAPOST librariesp. 74
The METAOBJ packagep. 80
TEX interfaces: getting the best of both worldsp. 120
From METAPOST and to METAPOSTp. 137
The future of METAPOSTp. 138
METAPOST Applicationsp. 141
A drawing toolkitp. 141
Representing data with graphsp. 157
Diagramsp. 176
Geometryp. 189
Science and engineering applicationsp. 196
3-D extensionsp. 207
Harnessing PostScript Inside LATEX: PSTricksp. 213
The components of PSTricksp. 214
Setting keywords, lengths, and coordinatesp. 217
The pspicture environmentp. 220
The coordinate systemp. 223
Gridsp. 224
Lines and polygonsp. 231
Circles, ellipses, and curvesp. 240
Dots and symbolsp. 249
Filling areasp. 53
Arrowsp. 259
Labelsp. 265
Boxesp. 269
User styles and objectsp. 279
Coordinatesp. 296
The PSTricks corep. 302
The Main PSTricks Packagesp. 313
pst-plot--Plotting functions and datap. 313
pst-node--Nodes and connectionsp. 334
pst-tree--Typesetting treesp. 366
pst-fill--Filling and tilingp. 383
pst-3d--Shadows, tilting, and three-dimensional representationsp. 388
pst-3d plot--3-D parallel projections of functions and datap. 400
Short overview of other PSTricks packagesp. 417
Summary of PSTricks commands and keywordsp. 459
The XY-pic Packagep. 467
Table of Contents provided by Publisher. All Rights Reserved.


More than a decade has passed since the publication of the first edition ofThe LATEX Graphics Companionand there have been many changes and new developments since 1996. The second edition has seen a major change in the authorship; Frank, Michel and Sebastian have been joined by Denis and Herbert as authors, enriching the book with their knowledge and experience in individual subject areas. As in the first edition this book describes techniques and tricks of extended LATEX typesetting in the area of graphics and fonts. We examine how to draw pictures with LATEX and how to incorporate graphics files into a LATEX document. We explain how to program pictures using METAFONT and METAPOST, as well as how to achieve special effects with small fragments of embedded PostScript. We look in detail at awhole range of tools for building graphics in TEX itself. TEX is the world's premiere markup-based typesetting system, and PostScript (on which PDF is based) is the leading language for describing the printed page. We describe how they can produce even more beautiful results when they work together. TEX's mathematical capability, its paragraph building, its hyphenation, and its programmable extensibility can cooperate with the graphical flexibility and the font-handling capabilities of PostScript and PDF to provide a rich partnership for both author and typesetter. To be able to do justice to the graphics packages that have been further developed since the first edition we have decided to no longer include in the printed version of this book a description of PostScript and PDF tools, and of font technologies. This material, covered in Chapters 10 and 11 of the first edition, has been substantially expanded and is now freely available from the LATEX Project home page. It covers .dvi-to-PostScript drivers, the free program Ghostscript to view PostScript and PDF files, tools for manipulating PostScript and PDF files, and how to combine the latest font technologies (PostScript Type 1 and Open-Type) with LATEX. This volume is not a complete consumer guide to packages. In trying to teach by example we present hundreds of self-contained code samples of the most useful types of solutions, based on proven and well-known implementations. But, in the space available, we cannot provide a full manual for every package. Our main aim is to show how easy it is to use a given package and whether or not it seems to do what is required, not to dwell on precise details of syntax or options. Nevertheless, we have described in more detail a few selected tools that we consider especially important. We assume you know some LATEX; you cannot read this book by itself if you have never used TEX before. We recommend that you start withLATEX: A Document Preparation System, Second Editionor theGuide to LATEX,and continue withThe LATEX Companion, Second Editionto explore some of the many (non-graphical) packages available. Why LATEX, and why PostScript? This book is about LATEX, graphics, PostScript, and its child PDF. We believe that the structured approach of a system like LATEX is the best way to use TEX, and LATEX is by far the most widely used TEX format. This means that it attracts those developing new packages, and thus some of what we describe works only in LATEX. We apologize in advance for our LATEX bias to those who appreciate the elegance of the original plain TEX format and its derivatives and promise them that most of the packages work well with any TEX dialect: the delights of systems like METAPOST, PSTricks, XY-pic, and MusiXTEX are open to all. We also want to explain why we talk about PostScript so much. This language has been established for almost two decades as an extremely flexible page-description language and it remains the tool of choice for professional typesetters. Among the features that make it so attractive are: the quantity, quality, and

Rewards Program

Write a Review