Home > Store

LaTeX Graphics Companion, The: Illustrating Documents with TeX and Postscript

Register your product to gain access to bonus material or receive a coupon.

LaTeX Graphics Companion, The: Illustrating Documents with TeX and Postscript

Book

  • This product currently is not for sale.
Not for Sale

About

Features

LaTeX documents, and answers common user questions about graphics and PostScript fonts. It provides the first full description of the standard LaTeX color and graphics packages, and shows how you can combine TeX and PostScript capabilities to produce beautifully illustrated pages. Following the successful format of The LaTeX Companion, this new book will be an invaluable LaTeX resource for incorporating pictures into text.

You will learn how to:

  • Incorporate graphic files into a LaTeX document
  • Program technical diagrams using several different languages
  • Produce color pictures
  • Achieve special effects with fragments of embedded PostScript
  • Make high-quality musical scores and games diagrams

You will find detailed descriptions of:
  • Important packages like XYPIC, PSTricks, and METAPOST
  • The standard LaTeX color and graphics packages
  • PostScript fonts and how to use them in LaTeX
  • The dvips dvi to PostScript driver
  • Ghostscript, the free interpreter that lets you view or print
    PostScript files, even if you do not have a PostScript printer

The authors examine a number of packages that extend or modify LaTeX's basic illustration features, and present hundreds of examples of useful solutions to graphics and font problems. In addition to packages for general drawing, the book also presents specific tools for mathematicians, physicists, chemists, engineers, and for people interested in games and music typesetting.

All the packages and programs described in this book are freely available in public software archives, and the source code for all examples has been placed on CTAN, the TeX archives. (Details in Appendix B)

Description

  • Copyright 1997
  • Dimensions: 7-3/8x9-1/4
  • Pages: 608
  • Edition: 1st
  • Book
  • ISBN-10: 0-201-85469-4
  • ISBN-13: 978-0-201-85469-5

This handy reference describes techniques and tricks needed to illustrate LaTeX documents, and answers common user questions about graphics and PostScript fonts. It provides the first full description of the standard LaTeX color and graphics packages, and shows how you can combine TeX and PostScript capabilities to produce beautifully illustrated pages. Following the successful format of The LaTeX Companion, this new book will be an invaluable LaTeX resource for incorporating pictures into text.

You will learn how to:
  • Incorporate graphic files into a LaTeX document
  • Program technical diagrams using several different languages
  • Produce color pictures
  • Achieve special effects with fragments of embedded PostScript
  • Make high-quality musical scores and games diagrams

You will find detailed descriptions of:
  • Important packages like XYPIC, PSTricks, and METAPOST
  • The standard LaTeX color and graphics packages
  • PostScript fonts and how to use them in LaTeX
  • The dvips dvi to PostScript driver
  • Ghostscript, the free interpreter that lets you view or print
    PostScript files, even if you do not have a PostScript printer

The authors examine a number of packages that extend or modify LaTeX's basic illustration features, and present hundreds of examples of useful solutions to graphics and font problems. In addition to packages for general drawing, the book also presents specific tools for mathematicians, physicists, chemists, engineers, and for people interested in games and music typesetting.

All the packages and programs described in this book are freely available in public software archives, and the source code for all examples has been placed on CTAN, the TeX archives. (Details in Appendix B)



0201854694B04062001

Sample Content

Table of Contents



Preface.


1. Graphics With Latex.

Graphics Systems and Typesetting.

Drawing Types.

Tex's Interfaces.

Methods of integration.

Methods of manipulation.

TeX's graphic hooks.

Graphics Languages.

TeX-based graphics languages.

External graphics languages and drawing programs.

Choosing a Package.



2. The Latexe Graphics Bundle.

Loading the Graphics Packages.

Package device driver options.

Inclusion of Graphics Files.

includegraphics syntax in the graphics package.

includegraphics syntax in the graphicx package.

Setting default key values for the graphicx package.

Declarations guiding the inclusion of images.

Graphical Manipulation of Latex Objects.

Scaling a LaTeX box.

Resizing to a given size.

Rotating a LaTeX box.

Combining effects.

Applications.

Other Packages in the Graphics Bundle.

The epsfig and rotating packages.

The lscape package.

The trig package.

The keyval package.



3. Working With Metafont and Metapost.

The META Language.

Examples of META programs.

Using the META Programs.

Running METAFONT.

An alternative to METAFONT --- METAPOST.

METAPOST Macro Libraries.

Boxing macros.

The METAPOST graph package.

Latex Interfaces to META.

The mfpic package.

Mftoeps: A Direct Link Between METAFONT and Postscript.



4. Harnessing Postscript Inside Latex : The Pstricks Package.

The Components of Pstricks.

Basic Pstricks Concepts.

Commands and arguments.

Setting graphics parameters.

Coordinates and units.

Coloring objects.

The Graphic Objects.

Examples of Basic Graphic Objects.

Mixing Text and Graphics.

Nodes and Their Connections, and Trees.

Matrices --- grid-based nodes.

Tree diagrams.

Specifying tree bounding boxes.

Data Plotting.

Working With a Third Dimension.

Iterating commands.

Customizing and Programming Pstricks.

New PSTricks objects and styles.

PSTricks programming examples.

Other Pstricks Tools.

Driver Configuration for Pstricks.

Summary of Pstricks: Commands and Parameters.

PSTricks basic drawing commands.

PSTricks node-drawing commands.

PSTricks node connection labeling commands.

PSTricks drawing commands comparable to node connectors.

PSTricks tree-drawing commands.

PSTricks plotting commands.

PSTricks 3D commands.



5. The Xypic Package.

Introducing Xypic.

A First Example of XYPIC Code.

Basic Constructs.

Initial positions.

Making connections.

Dropping objects.

Entering text in your pictures.

Extensions.

Curves and splines.

Frames and brackets.

Features.

Arrows.

Matrix-like diagrams.

Graphs.

Two-cell diagrams.

Polygons.

Arcs, circles, and ellipses.

Lattices and web structures.

Links and knots.



6. Applications in Chemistry, Physics, and Engineering.

Typographical Rules for Scientific Texts.

Typesetting chemical symbols.

The Xymtex System.

General conventions.

The carom package.

The Ppchtex Package.

Structures.

Definitions.

Bonds.

Combinations.

Chemical equations.

Special features.

Drawing Feynman Diagrams.

Using FeynMF.

Writing FeynMF diagrams.

Extending FeynMF.

Typesetting Timing Diagrams.

Commands in the timing environment.

Customization.

Electronics and Optics Diagrams.

General circuit diagram commands.

Examples.

Using the M4 Macro Processor for Electronics Diagrams.

Basic principles.

Customizing the diagram.



7. Preparing Music Scores.

Using Tex for Scores---An Overview.

Using Musixtex.

The structure of a MusiXTeX source.

Writing notes.

Note spacing.

A moderately complete example.

Running MusixTeX.

Abc2mtex ---Easy Writing of Tunes.

Writing abc2mtex source.

Running abc2mtex.

MPP, a Musixtex Preprocessor.

Writing MPP-source.

Running MPP.

Midi2tex.

Running midi2tex.



8. Playing Games.

Chess.

A METAFONT chess font.

chess --- a package for typesetting chess.

Extensions to the chess package.

Interfacing chess databases.

Using Adobe's cheq font.

Xiangqi --- Chinese Chess.

Go.

Possible problems.

Backgammon.

Card Games.

Bridge.

Card deals.

Bidding.

Crosswords.

Recent developments.



9. The World of Color.

An Introduction to Color.

Color theories.

Color systems.

Symbolic values of color.

Color harmonies.

Color and readability.

Colors and Latex ---The Color Package.

Supported options.

Using colors.

Page color.

Colored box backgrounds.

Calculating colors.

Coloring Tables.

The colortbl package.

Examples.

Color Slides With Latex : The Seminar Class.

Using the seminar class.

Frame styles.

Interleaving notes and selecting subsets.

Controlling slide size, fonts, and magnification.

Fonts.

The local control file.

Color in the Printing Industry and Separation.

Color separation.

Color separation using LaTeX and dvips.



10. Using Postscript Fonts.

Using Preconfigured Postscript Fonts.

The PSNFSS system.

Fonts, metric files --- the whole lot.

Installing PostScript fonts.

Tex Font Technology.

Types of TeX fonts.

TeX font metric files.

TeX virtual fonts.

Postscript Font Technology.

Types of PostScript fonts.

Adobe Font Metric files.

Encoding of PostScript fonts.

Rendering PostScript fonts.

Classifying Postscript Fonts.

Setting Up New Postscript Fonts.

TeX and encoding.

The TeXBase1 encoding.

Making TeX metrics for PostScript fonts.

AFM to TFM, and VF, conversion tools.

The Y&Y font manipulation tools.

The afm2tfm program.

The fontinst package.

Multiple Master Fonts---a Case Study.

Generating instance files using Ghostscript.

The Multiple Master setup of this book.



11. Postscript Drivers and Tools.

Introduction to DVI Drivers.

The Dvips Postscript Driver.

Command line and configuration file options.

Paper sizes.

special support.

Font support.

Special hooks.

Debugging.

Postscript Page-Manipulation Tools.

The psutils suite.

Ghostscript, a Postscript Interpreter.

Ghostscript options and initialization.

Ghostscript and fonts.

Using different devices with Ghostscript.

Interactive Ghostscript versions.

Ghostscript applications.

Postscript Font to PK Font Format Conversion.

The ps2pk program.

The gsftopk program.

Generating Images for Web Pages Using Dvips and Ghostscript.

Psfrag --- Adding Labels to Included Pictures.



A. Technical Appendixes.

Emtex \Special Commands.

Tpic \Special Conventions.

The Bm2font Program.

The Dvips Color Separation Header File.

Catalogue of Typefaces With Fontname Abbreviations.

Font Encoding Tables.

Fontinst Reference Information.

Encoding files.

Metric files.

Low-level fontinst commands.

Ghostscript Drivers.



B. Getting All the Goodies.

Connecting to CTAN.

Finding files on the archive.

Getting a Package From the Archive.

List of Packages and Programs. 0201854694T04062001

Preface

LaTeX is a generic typesetting system that uses TeX as its formatting engine. This companion is a detailed guide through the visible and not-so-visible beauties of LaTeX. As such, it is a comprehensive treatise of those points not fully discussed in Leslie Lamport's LaTeX: A Document Preparation System (henceforth referred to as the LaTeX book) . Extensions to basic LaTeX, as described in that book, are discussed, so that the LaTeX book, together with this companion, provide a ready reference to the full functionality of the LaTeX system.

Due to its flexibility, ease of use, and professional typographic quality, LaTeX is presently used in almost all areas of science and the humanities. Unlike many word processors, LaTeX (and its underlying formatting engine TeX) comes free of charge and is not linked to any particular computer architecture or operating system. Since LaTeX source files are plain text files, it is possible to ship them, and the packages referenced, from any computer to any other computer in the world (over electronic networks or via normal mail). The recipient will be able to obtain a final output copy identical to the one generated at the sender's site, independently of the hardware used. Thus members of groups, geographically spread over several sites in different countries, or even on different continents, can now work together in composing complex documents where different parts can be dealt with by different individuals, and then brought together without problems. Moreover, the use of electronic manuscripts has the potential to speed up the publication of papers by publishers.

LaTeX is not difficult to learn and a beginner can benefit from the system after reading through the first few chapters of Leslie Lamport's LaTeX book, the basic reference on LaTeX. After some experience, you will probably have to solve some more advanced problems whose solution cannot be found directly in that book. If you are one of those users who would like to know how LaTeX can be extended to create the nicest documents possible without becoming a (La)TeX guru, then this book is for you.

You will be guided, step by step, through the various important areas of LaTeX and be shown the links that exist between them. The structure of a LaTeX document, the basic formatting tools,and the layout of the page are all dealt with in great detail. A sufficient library of packages in the area of floats, graphics, tables, PostScript, and multi-language support are presented in a convenient way. This book is the first volume to include all of the important LaTeX tools, such as: up-to-date descriptions of version 2 of the New Font Selection Scheme(NFSS2), the AMSLaTeX mathematics extensions, the epic and eepic extensions to LaTeX's picture environment, and the MakeIndex and BibTeX programs for producing and controlling the generation of indices and bibliographic references. Finally, an overview of ways to define new commands and environments, lengths, boxes, general lists, etc., as well as ways of facilitating the handling of these objects, complete the picture.

All three of us have been involved for several years in the support and development of LaTeX applications in various professional environments and countries. We have taught the secrets of LaTeX tomany different audiences, and have been listening to the user community by following the discussions in the text processing related news groups and at TeX conferences. This has allowed us to gather a coherent view of a vast collection of subjects, which, we think, you migh t need one day if you want to fully exploit the richness and strengths of the LaTeX system. Note, however, that this book is not a replacement for, but a companion to, the LaTeX book. You are assumed to have read the first part of that book, and in any case, it should be considered a reference for precise and full description of the LaTeX commands.

To make the presented information even more complete and useful, our readers are kindly invited to send their comments, suggestions, or remarks to any one of the authors. We shall be glad to correct any remaining mistakes or oversights in a future edition, and are open to suggestions for improvements or the inclusion of important developments that we may have overlooked.

LaTeX2e--The New LaTeX Release

Over the years many extensions have been developed for LaTeX with one unfortunate result: incompatible LaTeX formats came into use at different sites. Thus, to process documents from various places, a site maintainer was forced to keep LaTeX (with and without NFSS),SliTeX, AMSLaTeX, and so on. In addition, when looking at a sourcefile it was not always clear what format the document was written for.

To put an end to this unsatisfactory situation a new LaTeX release was announced for fall 1993 that brings all such extensions back under a single format and thus prevents the proliferation of mutually incompatible dialects of LaTeX 2.09. With LaTeX2e the new font selection will be standard and style files like amstex (formerly AMSLaTeX format) or slides (formerly SliTeXformat) will become extension packages, all working with the same baseformat. The introduction of a new release also made it possibleto add a small number of often-requested features (like an extendedversion of #79#>newcommand). All the new possibilities aredescribed in this book, thus allowing you to make full use of the newLaTeX release.

To make it easy to distinguish between old LaTeX 2.09 sources and newsources (making use of new features), the first command in aLaTeX document was changed from \documentstyle to \documentclass , thus enabling the software to automaticallydetect an old source file and switch to compatibility mode ifnecessary.

The LaTeX3 Project

LaTeX is presently being rewritten under the coordination of one of theauthors (Frank Mittelbach), Chris Rowley and Rainer Schöpf.This endeavor is called theLaTeX3 Project . A lot of the functionality described in this book as extensions tobasic LaTeX will be available in that system: as part of the kernel, orin one of the extension packages.To help funding, half of the royalties fromthis book will go directly to the LaTeX3 Project.Therefore, when buying this book, you not only obtain a handy, complete,and up-to-date reference to many important and useful packagesavailable with LaTeX today, but you also actively contributeto making LaTeX more powerful and user-friendly in the future.

How to Read This Book

The titles of the various chapters should conveyrelatively clearly the subject area addressed in each case.In principle, all chapters can be read more or less independently and,if necessary, pointers are given to where complementary informationcan be found in other parts of the book.

Chapter 1
gives a short introduction to the LaTeX system.

Chapter 2
discusses generic and document-oriented markup.

Chapter 3
describes LaTeX's basic typesetting commands.

Chapter 4
explains which tools are available to globally define the visual layout of the pages of a document by using pagestyles.

Chapter 5
shows how to assemble material into columns and rows with the extended ta

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020