ebook img

The LaTeX Graphics Companion: Illustrating Documents with TeX and Postscript(R) PDF

299 Pages·1997·14.86 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview The LaTeX Graphics Companion: Illustrating Documents with TeX and Postscript(R)

The PTEX Graphics Companion Illustrating documents with and Postscript Addison-Wesley Series on Tools and Techniques for Computer Typesetting The ETEX This recently inaugurated series focuses on tools and techniques needed for coniputer type- Graphics Companion setting and information processing with traditional and new media. Books in the series address the practical needs both of users and of system developers. Initial titles comprise handy references for ET# users; forthcoming works will expand that core, Ultimately, the series will cover other typesetting and information processing systems, ad well, especially insofar as those systems offer unique value to the scientific and technical dommunity. The series goal is to enhance your ability to produce, maintain, manipulate, or reuse articles, Illustrating documents with papers, reports, proposals, books, and other documents with professional quality. . Ideas for this series should be directed to the editor: mittelbachQaw com. and Postscript . All other comments and questions should be sent to Addison-Wesley: awcseQaw corn. Series Editor Frank Mittelbach Michel Goossens Manager LATEX3 Project, Germany CERN, Grneiln, 5.;i tzerlnnd Editorial Board Sebastian Rahtz Jacques Andre Peter Flynn Irisallnria-Re~r~reFs,r ance University College, Cork, Ireland Elsevier Science Ltd, OxJorli, United Kingrlonl Barbara Beeton Leslie Lamport Editor, TUGboat, USA Creator of PTEX, USA Frank Mittelbach David Brailsford Chris Rowley PTE,P~r~oj ect, Main:, Gerr~rarry University ofhrottingham, UK Open University, UK Tim Bray Richard Rubinstein Te.rtrralitySeri~icej,C anada H~rmanF actorslnternational, USA Series Titles The PTEX Companion, by Michel Goossens, Frank Mittelbach, and Alexander Samarin Tlre J?T$ GI-aphicsC ompnniorl,b y Michel Goossens, Sebastian Rahtz, and Frank Mittelbach An imprint of Addison M'ejley Longman, Inc. Reading, Massachusetts Harlow, Eneland hlenlo Park, California Also from Addison-Wesley: Berkeley, California Don Mills, Ontario LATEX: A Document PI-eparatiorlS ystem, Second Edition, by Leslie Lamport Sydney Bonn Amsterdam Tokyo a MexicoCity 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 Longman, Inc. was aware ofa trademark claim, they are printed in initial caps or all caps. The procedures and applications presented in this book have been included for their instructional value. They have been tested with care but are not guaranteed for any particular purpose. The publisher offers no warranties or representations, nor does it accept any liability with respect to the programs or applications. To those hundreds of LAGX developers Library of Congress cataloging-in-publication Data for their eiithusiasnz clnd hard work. Goossens Michel. The LaTeX graphics companion : illustrating documents with TeX and Special thanks to ourfamilies Postscript / Michel Goossens, Sebastian Rahtz, Frank Mittelbach without whose infinite patience p, cm. Includes bibliographical references and index. rl~isb ook would never have seen the light. ISBN 0-201-85469-4 1. LaTeX (Computer file) 2. Computerized typesetting. 3. Postscript (Computer program language) 4. Scientific illustration--Computer programs. 5. Mathematics printing-.-Computer programs. 6. Technical publishing--Computerp rograms. I. Rahtz, S. P. 4 11. Mittelbach, Frank. 111. Title. 2253.4.L386663 1997 686.2'2544536---dc21 98-39081 CIP Reproduced by Addison Wesley Longman, Inc., from camera-ready copy supplied by the authors. Copyright O 1997 by Addison Wesley Longman, 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 written permission of the publisher. Printed in the United States of America. ISBN 0-201-85469-4 2 3 4 5 6 7 CRS 00 99 98 97 2nd Printing November 1997 Contents Preface xxi 1 Graphics with I?T@ 1 1.1 Graphics systems and typesetting . . . . . . . . . . . . . . . . . . . . 2 1.2 Drawing types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.3 ?Js' interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3.1 Methods of integration . . . . . . . . . . . . . . . . . . . . 6 . . . . . . . . . . . . . . . . . . . 1.3.2 Methods of manipulation 9 1.3.3 WSg raphic hooks . . . . . . . . . . . . . . . . . . . . . . 9 1.4 Graphics languages . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 1.4.1 Ta-based graphics languages . . . . . . . . . . . . . . . . . 11 1.4.2 External graphics languages and drawing programs . . . . . . 20 I .5 Choosing a package . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 2 The LAQX2E graphics bundle 27 2.1 Loading the graphics packages . . . . . . . . . . . . . . . . . . . . . 27 2.1.1 Pacltage device driver options . . . . . . . . . . . . . . . . . 28 2.2 Inclusion of graphics files . . . . . . . . . . . . . . . . . . . . . . . . 29 ] 2.2.1 \includegraphics syntaxin thegraphics package . . . . . 30 2.2.2 \includegraphics syntax in the graphicx package . . . . . 32 2.2.3 Setting default key values for the graphicx package . . . . . . 38 2.2.4 Declarations guiding the inclusion of images . . . . . . . . . 39 2.3 Graphical manipulation of LAW objects . . . . . . . . . . . . . . . . 41 2.3.1 Scaling a BT@ box . . . . . . . . . . . . . . . . . . . . . . . 42 2.3.2 Resizing to a given size . . . . . . . . . . . . . . . . . . . . . 43 2.3.3 Rotating a L"T$ box . . . . . . . . . . . . . . . . . . . . . . 44 viii Contents Contents ix . 2.3.4 Colnbining eficts . . . . . . . . . . . . . . . . . . . . . . . 4.13.1 PSTricks basic dr;~wi~lgcom~nan.d.s . . . . . . . . . . . . . 154 2.3.5 Applications . . . . . . . . . . . . . . . . . . . . . . . . . . 4.13.2 PSTricks node-drawingconlmands . . . . . . . . . . . . . . 159 2.4 Other packages in the graphics bundle . . . . . . . . . . . . . . . . . 4.13.3 PSTricks node connection labeling commands . . . . . . . . . 161 2.4.1 The epsfig and rotating packages . . . . . . . . . . . . . . . 4.13.4 PSTricks drawing comnlands comparable to node connectors . 163 2.4.2 The lscape package . . . . . . . . . . . . . . . . . . . . . . 4.13.5 PSTricks tree-drawingcommands . . . . . . . . . . . . . . . 163 2.4.3 The trig package . . . . . . . . . . . . . . . . . . . . . . . . 4.13.6 PSTricks plotting co~nmands. . . . . . . . . . . . . . . . . . 165 2.4.4 The keyval package . . . . . . . . . . . . . . . . . . . . . . 4.13.7 PSTricks 3D commands . . . . . . . . . . . . . . . . . . . . 166 3 Working with METAFONT and METAPOST 5 The Xy-pic package 167 3.1 The META language . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 I~itroducingX y-pic . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 3.1.1 Examples of METR programs . . . . . . . . . . . . . . . . . 5.2 A first example of Xy-pic codc . . . . . . . . . . . . . . . . . . . . . . 168 3.2 Using the META programs . . . . . . . . . . . . . . . . . . . . . . . 5.3 Basic constl-ucts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 3.2.1 Running METRFONT . . . . . . . . . . . . . . . . . . . . . 5.3.1 Initial positions . . . . . . . . . . . . . . . . . . . . . . . . 169 3.2.2 An alternative to METAFONT - METAPOST . . . . . . . 5.3.2 Making connections . . . . . . . . . . . . . . . . . . . . . . 170 3.3 METRPOST macro libraries . . . . . . . . . . . . . . . . . . . . . . 5.3.3 Dropping objccts . . . . . . . . . . . . . . . . . . . . . . . 171 3.3.1 Boxing macros . . . . . . . . . . . . . . . . . . . . . . . . . 5.3.4 Entering text in youl.piitures . . . . . . . . . . . . . . . . . 173 3.3.2 The METAPOSTgraph package . . . . . . . . . . . . . . . 5.4 Extensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 3.4 FTEX interfaces to META . . . . . . . . . . . . . . . . . . . . . . . . 5.4.1 Curves and splines . . . . . . . . . . . . . . . . . . . . . . . 175 3.4.1 The mfpic package . . . . . . . . . . . . . . . . . . . . . . . 5.4.2 Frames and brackets . . . . . . . . . . . . . . . . . . . . . . 176 3.5 mftoeps: a direct link between METRFONT and Postscript . . . . . . 5.5 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 4 H4.1a rnessTihneg cPoomstpsocnreipntt si nosfi PdSeT ErTi@c:k s .th.e. P.ST.ric.ks. p.ac.k.ag.e. . . . . . . . . . . . 55..55..12 AI\.rIraotrwix s- li.ke. d.ia.g.ra.m.s . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. 117880 4.2 Basic PSTricks concepts . . . . . . . . . . . . . . . . . . . . . . . . . 5.5.3 Graphs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184 444...222...321 CSCeootomtirndmgina gnartdaepss h aaincndsd apurangriuatmsm ee.tne.trss . ... ... ... ... ... ....................................... 555...555...645 TAPowrcloys-g,c oceinlrlsc dlei.as,g. ar.namd. se. lli..ps..es.. .............................................................................. 111989580 4.3 T4.h2e.4 g raphCioc loobrijnecgt os bj.ec.ts. .............................. .. .. .. .. .. .. .. .. .. 55..55..78 LLainttkisc easn adn kdn woetsb s.tru.c.tu.re.s . . . . . . . . . . . . . . . . . . . 119978 4.4 Examples of basic graphic objects . . . . . . . . . . . . . . . . . . . . 6 Applications in chemistry. physics. and engineering 205 4.5 Mixing text and graphics . . . . . . . . . . . . . . . . . . . . . . . . 6.1 Typographical rules for scientific texts . . . . . . . . . . . . . . . . . 205 4.6 Nodes and their connections, and trees . . . . . . . . . . . . . . . . . 6.1.1 Typesetting chemical sylllbols . . . . . . . . . . . . . . . . . 207 4.6.1 blatrices - grid-based nodes . . . . . . . . . . . . . . . . . 6.2 The x Tsyste~m . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 4.6.2 Tree diagrams . . . . . . . . . . . . . . . . . . . . . . . . . 6.2.1 General conventions . . . . . . . . . . . . . . . . . . . . . . 210 4.6.3 Specifying tree bounding boxes . . . . . . . . . . . . . . . . 6.2.2 The carom package . . . . . . . . . . . . . . . . . . . . . . 214 4.7 Data plotting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2.3 The lowcycle package . . . . . . . . . . . . . . . . . . . . . 215 4.8 \\'orking with a third dimension . . . . . . . . . . . . . . . . . . . . 6.2.4 The hetarorn and hetaromh packages . . . . . . . . . . . . . 216 4.9 Iterating conimands . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.2.5 The ccycle and hcycle packages . . . . . . . . . . . . . . . . 218 4 Customizing and programming PSTricks . . . . . . . . . . . . . . . . 6.2.6 The aliphat package . . . . . . . . . . . . . . . . . . . . . . 219 4.10.1 New PSTricks objects and styles . . . . . . . . . . . . . . . . 6.2.7 Con~bi~lingstructure.s . . . . . . . . . . . . . . . . . . . . 220 4.10.2 PSTricks programming examples . . . . . . . . . . . . . . . 6.2.8 Defining your own structures . . . . . . . . . . . . . . . . . 220 4.1 1 Other PSTricks tools . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.3 The ppchtex package . . . . . . . . . . . . . . . . . . . . . . . . . . 222 4.12 Driver configuration for PSTricks . . . . . . . . . . . . . . . . . . . . 6.3.1 Structures . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 4.13 Summary of PSTricks commands and parameters . . . . . . . . . 6.3.2 Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 x Conlents Contents xi 6.3.3 Bonds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.3.1 Possible problems . . . . . . . . . . . 6.3.4 Combinations . . . . . . . . . . . . . . . . . . . . . . . . . 8.4 Backgammon . . . . . . . . . . . . . . . . . . 6.3.5 Chemical equations . . . . . . . . . . . . . . . . . . . . . . 8.5 Card games . . . . . . . . . . . . . . . . . . . 6.3.6 Special features . . . . . . . . . . . . . . . . . . . . . . . . 8.6 Bridge . . . . . . . . . . . . . . . . . . . . . . 6.4 Drawing Feynman diagrams . . . . . . . . . . . . . . . . . . . . . . 8.6.1 Card deals . . . . . . . . . . . . . . . 6.4.1 Using FeynMF . . . . . . . . . . . . . . . . . . . . . . . . . 8.6.2 Bidding . . . . . . . . . . . . . . . . 6.4.2 Writing FeynMF diagrams . . . . . . . . . . . . . . . . . . . 8.7 Crosslvords . . . . . . . . . . . . . . . . . . . 6.4.3 Extending FeynMF . . . . . . . . . . . . . . . . . . . . . . . 8.7.1 Recent developments . . . . . . . . . 6.5 Typesetting timing diagrams . . . . . . . . . . . . . . . . . . . . . . 6.5.1 Commands in the timing environment . . . . . . . . . . . 9 The world of color 6.5.2 Customization . . . . . . . . . . . . . . . . . . . . . . . . . 9.1 An introduction to color . . . . . . . . . . . . . . . . . . . . . . 6.6 Electronics and optics diagrams . . . . . . . . . . . . . . . . . . . . . 9.1.1 Color theories . . . . . . . . . . . . . . . . . . . . . . . 6.6.1 General circuit diagram commands . . . . . . . . . . . . . . 9.1.2 Color systems . . . . . . . . . . . . . . . . . . . . . . . . . 6.6.2 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.1.3 Symbolic values of color . . . . . . . . . . . . . . . . . . . . 6.7 Using the m4 macro processor for electronics diagrams . . . . . . . . 9.1.4 Color harmonies . . . . . . . . . . . . . . . . . . . . . . . . 6.7.1 Basic principles . . . . . . . . . . . . . . . . . . . . . . . . 9.1.5 Color and readability . . . . . . . . . . . . . . . . . . . . . 6.7.2 Customizing the diagram . . . . . . . . . . . . . . . . . . . 9.2 Colors and I?TEx - the color package . . . . . . . . . . . . . . . . . . 9.2.1 Supported options . . . . . . . . . . . . . . . . . . . . . . . 7 Preparing music scores 9.2.2 Using colors . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 Using for scores - an overview . . . . . . . . . . . . . . . . . . 9.2.3 Page color . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 Using MusiXTEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.2.4 Colored box backgrounds . . . . . . . . . . . . . . . . . . . 7.2.1 The structure ofa MusixT~Xs ource . . . . . . . . . . . . . . 9.2.5 Calculating colors . . . . . . . . . . . . . . . . . . . . . . . 7.2.2 Writing notes . . . . . . . . . . . . . . . . . . . . . . . . . 9.3 Coloring tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2.3 Note spacing . . . . . . . . . . . . . . . . . . . . . . . . . . 9.3.1 The colortbl package . . . . . . . . . . . . . . . . . . . . . . 7.2.4 A moderztely complete example . . . . . . . . . . . . . . . . 9.3.2 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2.5 Running MusiXTEX . . . . . . . . . . . . . . . . . . . . . . . 9.4 Color slides with ET#: the seminar class . . . . . . . . . . . . . . . . 7.3 abc2mtex - easy writing of tunes . . . . . . . . . . . . . . . . . . . 9.4.1 Using the seminar class . . . . . . . . . . . . . . . . . . . . 7.3.1 Writing abc2mtex source . . . . . . . . . . . . . . . . . . . 9.4.2 Frame styles . . . . . . . . . . . . . . . . . . . . . . . . . . 7.3.2 Running abc2mtex . . . . . . . . . . . . . . . . . . . . . . 9.4.3 Interleaving notes and selecting subsets . . . . . . . . . . . . 7.4 MPp, a MusixT~Xp reprocessor . . . . . . . . . . . . . . . . . . . . . . 9.4.4 Controlling slide size, fonts. and magnification . . . . . . . . 7.4.1 writing MPp-source . . . . . . . . . . . . . . . . . . . . . . 9.4.5 Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.4.2 ~unniMn~P ~. . . . . . . . . . . . . . . . . . . . . . . . . . 9.4.6 The local control file . . . . . . . . . . . . . . . . . . . . . . 7.5 midi2tex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9.5 Color in the printing industry and separation . . . . . . . . . . . . . . 7.5.1 Running midi2tex . . . . . . . . . . . . . . . . . . . . . . . 9.5.1 Color separation . . . . . . . . . . . . . . . . . . . . . . . . 9.5.2 Color separation using PTEX and dvips . . . . . . . . . . . . 8 Playing games 8.1 Chess . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Using Postscript fonts 8.1.1 A METRFONT chess font . . . . . . . . . . . . . . . . . . . 10.1 Using preconfigured PostScript fonts . . . . . . . . . . . . . . . . . . 8.1.2 chess - a package for typesetting chess . . . . . . . . . . . . 10.1.1 The PSNFSS system . . . . . . . . . . . . . . . . . . . . . . 8.1.3 Extensions to the chess package . . . . . . . . . . . . . . . . 10.1.2 Fonts, metric files - the l\.hole lot . . . . . . . . . . . . . . . 8.1.4 Interfacing chess databases . . . . . . . . . . . . . . . . . . 10.1.3 Installing PostScript fonts . . . . . . . . . . . . . . . . . . . 8.1.5 Using Adobe's cheq font . . . . . . . . . . . . . . . . . . . . 10.2 rn font technology . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2 Xiangqi - Chinese chess . . . . . . . . . . . . . . . . . . . . . . . . 10.2.1 Typesofmfonts . . . . . . . . . . . . . . . . . . . . . . . 8.3 Go . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.2.2 @'J font metric files . . . . . . . . . . . . . . . . . . . . . . ... xii Contents Contents XIII 10.2.3 @X virtual fonts . . . . . . . . . . . . . . . . . . . . . . . . A.2 tpic \special conventions . . . . . . . . . . . . . . . . . . . . . . . 10.3 Postscript font technology . . . . . . . . . . . . . . . . . . . . . . . A.3 The bm2font program . . . . . . . . . . . . . . . . . . . . . . . . . . 10.3.1 Types of Postscript fonts . . . . . . . . . . . . . . . . . . . . A.4 The dvips color separation lieadcr file . . . . . . . . . . . . . . . . . . 10.3.2 Adobe Font Metric files . . . . . . . . . . . . . . . . . . . . A.5 Catalogueoftypefaces\\. ith Forirrrnrneabbreviations . . . . . . . . . . 10.3.3 Encodingof Postscript fonts . . . . . . . . . . . . . . . . . . A.6 Font encoding tables . . . . . . . . . . . . . . . . . . . . . . . . . . 10.3.4 Rendering Postscript fonts . . . . . . . . . . . . . . . . . . A.7 fontinst reference information . . . . . . . . . . . . . . . . . . . . . 10.4 Classifying Postscript fonts . . . . . . . . . . . . . . . . . . . . . . . A.7.1 Encoding files . . . . . . . . . . . . . . . . . . . . . . . . . 10.5 Setting up new PostScript fonts . . . . . . . . . . . . . . . . . . . . . A.7.2 Metric files . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.5.1 '&X and encoding . . . . . . . . . . . . . . . . . . . . . . . A.7.3 Low-level fontinst conlnlands . . . . . . . . . . . . . . . . . 10.5.2 The TeXBasel encoding . . . . . . . . . . . . . . . . . . . . A.8 Ghostscript drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . 10.5.3 Makingmmetrics for PostScript fonts . . . . . . . . . . . . 10.5.4 AFM to TFM, and VF, conversion tools ............ B Getting all the goodies 10.5.5 The Y&Y font manipulation tools . . . . . . . . . . . . . . . B.l Connecting to CTAN . . . . . . . 10.5.6 The afm2tfm program . . . . . . . . . . . . . . . . . . . . . B.1.1 Finding files on the archive 10.5.7 The fontinst package . . . . . . . . . . . . . . . . . . . . . . B . Ge2tting apack age from the archi1.e 10.6 Multiple Master fonts - a case study . . . . . . . . . . . . . . . . . . B.3 List of packages and programs 10.6.1 Generating instance files using Ghostscript . . . . . . . . . . 10.6.2 The Multiple Master setup of this book . . . . . . . . . . . . Bibliography Index 11 PostScript drivers and tools 1 1.1 Introduction to dvi drivers . . . . . . . . . . . . . . . . . . . . . . . 11.2 The dvips Postscript driver . . . . . . . . . . . . . . . . . . . . . . . I 1.2.1 Command line and configuration file options . . . . . . . . . 11 .2.2 Paper sizes . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2.3 \special support . . . . . . . . . . . . . . . . . . . . . . 11.2.4 Font support . . . . . . . . . . . . . . . . . . . . . . . . . . 11.2.5 Special hooks . . . . . . . . . . . . . . . . . . . . . . . . . 11 .2.6 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.3 Postscript page-manipulation tools . . . . . . . . . . . . . . . . . . . 11.3.1 The psutils suite . . . . . . . . . . . . . . . . . . . . . . . . 11.4 Ghostscript, a Postscript interpreter . . . . . . . . . . . . . . . . . . . 11.4. I Ghostscript options and initialization . . . . . . . . . . . . . 11.4.2 Ghostscript and fonts . . . . . . . . . . . . . . . . . . . . . 11.4.3 Using different devices with Ghostscript . . . . . . . . . . . . 11.4.4 Interactive Ghostscript versions . . . . . . . . . . . . . . . . 11.4.5 Ghostscript applications . . . . . . . . . . . . . . . . . . . . 11.5 Postscript font to PK font fol-mat conversion . . . . . . . . . . . . . . 11 5.1 The ps2pk program . . . . . . . . . . . . . . . . . . . . . . 1 1.5.2 The gsftopk program . . . . . . . . . . . . . . . . . . . . . 11.6 Generating images for Web pages usingdvips and Ghostscript . . . . . 11.7 PSfrag - adding labels to included pictures . . . . . . . . . . . . . . A Technical appendixes A.1 e m w\ special commands . . . . . . . . . . . . List of Tables Overview of color and graphics capabilirirs of device drivers . . . . . . . . . 29 Arguments of \DeclareCraphicsRule . . . . . . . . . . . . . . . . . . 41 PSTricks supporting packages . . . . . . . . . . . . . . . . . . . . . . . . . PSTricks letter abbreviations for common angles . . . . . . . . . . . . . . . PSTricks line terminators. . . . . . . . . . . . . . . . . . . . . . . . . . . . PSTricks dot styles. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PSTricks basic graphical parameters . . . . . . . . . . . . . . . . . . . . . PSTricks graphical parameters for node connectors . . . . . . . . . . . . . PSTricks graphical parameters for trees . . . . . . . . . . . . . . . . . . . PSTricks graphical parameters for plots . . . . . . . . . . . . . . . . . . . . PSTricks 3D graphical parameters . . . . . . . . . . . . . . . . . . . . . . . The importance of typographic rules in scientific texts . . . . . . . . . . . . 207 Application commands of the hetarom package . . . . . . . . . . . . . . . 217 Bond identifiers for ppchtex . . . . . . . . . . . . . . . . . . . . . . . . . 225 FeynMF vertex and fill styles . . . . . . . . . . . . . . . . . . . . . . . . . 233 FeynMF linestyles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 FeynMF line-drawing options. . . . . . . . . . . . . . . . . . . . . . . . . 235 FeynMF vertex-drawing options . . . . . . . . . . . . . . . . . . . . . . . 235 FeynMF polygon options . . . . . . . . . . . . . . . . . . . . . . . . . . . 236 Symbol combinations in all font variants of the timing package . . . . . . . 242 Some basic electronic circuit symbols . . . . . . . . . . . . . . . . . . . . 244 Some integrated circuit symbols . . . . . . . . . . . . . . . . . . . . . . . 245 Some optic diagram symbols . . . . . . . . . . . . . . . . . . . . . . . . . 246 mi List of Tables Overview of MusiXT~xc ommands . . . . . . . . . . . . . . . . . . . . . . . 257 Variant forms of the \notes command . . . . . . . . . . . . . . . . . . . 260 Coding for chess pieces in the chess fonts. . . . . . . . . . . . . . . . . . 278 Coding for xiangqi pieces in the cchess46 font . . . . . . . . . . . . . . . 293 Effect of PSNFSS package files . . . . . . . . . . . . . . . . . . . . . . . Sample texts for standard Postscript fonts . . . . . . . . . . . . . . . . List of Figures The standard Postscript fonts in the Fontnantc scheme. . . . . . . . . Font suppliers defined in the Fontrrn~nes cheme. . . . . . . . . . . . . For7t17u117ew eight codes . . . . . . . . . . . . . . . . . . . . . . . . . . Forrtnntnevariant codes . . . . . . . . . . . . . . . . . . . . . . . . . . Fontr7nnle width codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . Multiple Master instance values matched to Fontnameand L"@ NFSS codes. Minion Multiple XIaster instances for Fontnan~eco mbinations . . . . . . . Overview of the tools in the psutils set. . . . . . . . . . . . . . . . . . . . 437 . Summal-y of tpic \special requirements Command-line options for bm2font. . . . Pen and ink drawing of a bead . . . . . . . . . . . . . . . . . . . . . . . . 4 Font encoding table. by name. . . . . . . . Bitmap dra~vingoutpotc reated with MacPaint . . . . . . . . . . . . . . . . 4 Font encoding table. by number. . . . . . Digitally transformed image (vertically srrstilied) . . . . . . . . . . . . . . 5 Location of the packages and programs mentioned in this book . . . . . . . 504 Object-oriented drawing. . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Scanned cartoon converted to font via pb- iorrnat . . . . . . . . . . . . . . 8 Color gif file converted to QX font files h! . bm2font . . . . . . . . . . . . . 8 Using ASCII symbols to make a histogram . . . . . . . . . . . . . . . . . . 12 Bitmap input to generate the symbol in Fig . 1.9. . . . . . . . . . . . . . . . 13 A "sprite" logo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 An expanded "sprite" . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Output of bit2spr . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 P~CTEXs ource code and graph outpi~.t . . . . . . . . . . . . . . . . . . . . 14 PICTEXs ource code and histogram outpur . . . . . . . . . . . . . . . . . . . 15 Histogram drswn~vithPI CTEX,i ncluding rorarion oftext . . . . . . . . . . 16 I'iechart produced with aldratex . . . . . . . . . . . . . . . . . . . . . . . 17 The Icircr~itl ibrary ofsymbols . . . . . . . . . . . . . . . . . . . . . . . . 18 Example offlow language. . . . . . . . . . . . . . . . . . . . . . . . . . . I9 AutoCAD plotter output converted to METFIFONT . . . . . . . . . . . . . 21 Graph generated by gnuplot using BTEX picture commands. . . . . . . . . 21 Simple example of pic code. . . . . . . . . . . . . . . . . . . . . . . . . . 23 Example of pic code showirlg use ofstored n'1lnt-s . . . . . . . . . . . . . . 23 Example ofgrap output . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 The contents of the file w . eps. . . . . . . . . . . . . . . . . . . . . . . . 30 A ETEX box and possible origin referenis points . . . . . . . . . . . . . . 46 xviii List of Figures List of Figures xix META picture after Naum Gabo. by Kees van der Laan . . . . . . . . . . Multiple Master typeface design space. . . . . . . . . . . . . . . . . . . . Finite-state diagram drawn with METAPOST . . . . . . . . . . . . . . Two-dimensional matrix showing Multiple Master Myriad font . . . . . . AutoCAD map converted to METAFONT. . . . . . . . . . . . . . . . . The three axis Multiple blaster Alinion serif font . . . . . . . . . . . . . . METAFONT drawing enhanced using Corel Draw . . . . . . . . . . . . . A font generated for 85 dpi (e.g.. computer screen). . . . . . . . . . . . . . A font generated for 300 dpi (e.g.. LaseriVriter) . . . . . . . . . . . . . . . . A processor grid. programnled by Denis Girou . . . . . . . . . . . . . . . . An outline font . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A random walk in PSTricks. programmed by Decis Girou . . . . . . . . . . The TeXBasel font layout (Lucida Bright) . . . . . . . . . . . . . . . . . . A polygon language written in PSTricks by Denis Girou . . . . . . . . . . . . Math test with mixture of Minion Multiple Master and Lucida New Math . . Minion instances from opposite ends of the optical size axis set at the same Periodic table typeset with LATEX and chemsym . . . . . . . . . . . . . . . size (exaggerated) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Some predefined structures in PPCHQX. . . . . . . . . . . . . . . . . . Simple cxample of the feynmf package . . . . . . . . . . . . . . . . . . . . Stamping pages using dvips . . . . . . . . . . . . . . . . . . . . . . . . . 430 Varying the tension parameter of a single line. . . . . . . . . . . . . . . . Mirror-image printing with dvips . . . . . . . . . . . . . . . . . . . . . . 432 Drawing a Feynman diagram in vertex mode. . . . . . . . . . . . . . . . . Multiple logical pages on one ph!. sical sheet. usingmulti .pro. . . . . . . 434 Vertex mode and improved version using immediate-mode commands . . . Nine logical pages on one output page . . . . . . . . . . . . . . . . . . . . 436 Timing diagram of a memory read followed by a memory write . . . . . . . Example of the use of ghostview . . . . . . . . . . . . . . . . . . . . . . . 451 Bitmap EPS file. enlarged and distorted . . . . . . . . . . . . . . . . . . . 456 Sequence of score pieces coded in MusiXTEX . . . . . . . . . . . . . . . . . Outline font EPS file. enlarged and distorted . . . . . . . . . . . . . . . . . 456 Chess example -- White to move without mating Black . . . . . . . . . . . A Perl script to transform an EPS file for Ghostscript. . . . . . . . . . . . . 459 Example of LiT~Xs ource and output of a chess game. . . . . . . . . . . . . ETEX to dvi to EPS to GIF . . . . . . . . . . . . . . . . . . . . . . . . . . 460 Chess tournament notation . . . . . . . . . . . . . . . . . . . . . . . . . . Additional chessboard visualization commands. . . . . . . . . . . . . . . A.l Examples of using bm2font . . . . . . . . . . . . . . . . . . . . . . . . . . 467 Chess-Postcard input for bdfchess . . . . . . . . . . . . . . . . . . . . . . B.1 Peter FlynnS CTAN Web interface . . . . . . . . . . . . . . . . . . . . . . 499 Chess postcards generated by bdfchess. . . . . . . . . . . . . . . . . . . . B.2 Graham Williams' CTAK catalogue on the Web . . . . . . . . . . . . . . . . 500 Font encodings for chess10 and cheq . . . . . . . . . . . . . . . . . . . B.3 Viewing CTAN files on the Web . . . . . . . . . . . . . . . . . . . . . . . . 501 Solution - IVhite to move without mating Black . . . . . . . . . . . . . . B.4 Transfer ofa directory as a zip archive . . . . . . . . . . . . . . . . . . . . 502 Initial setup of Chinese chess game (xiangqi). . . . . . . . . . . . . . . . . A mate situation after four moves . . . . . . . . . . . . . . . . . . . . . . . The Go symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Color Plates A Go game at an early stage. . . . . . . . . . . . . . . . . . . . . . . . . . Two-stage ko (favorable to Black) . . . . . . . . . . . . . . . . . . . . . . . METAPOST examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 A backgammon example. . . . . . . . . . . . . . . . . . . . . . . . . . . PSTricks examples 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 First moves of a backgammon game . . . . . . . . . . . . . . . . . . . . . PSTricks examples 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 ASo slaumtiopnle t ocr corsosslvsworodr dfo irn y Foiug .t o8. f1i6ll. in. .......................................... PPSSTTrriicckkss eexxaammpplleess 34 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. IvV PSTricks examples 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VI Exalnple ofsimple color separations. . . . . . . The relation between the RGB and CMYK color models . . . . . . . . . . . VII Color separation of a bitmap image using aurora . The HSB model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . VII Detail of color separation of a bitmap image . . . Symbolic connotation ofcolors in different countries . . . . . . . . . . . . VII Color harmony and the primary colors . . . . . . . . . . . . VIlI Math sample set in Times with Computer Modern font . . . . . . . . . . . . Color harmonies and the chromatic circle (after Itten. 1974). VIII Math sample set in Times with partial Times math (mathptm package) . . . Color contrasts for optimizing visibility and readability IX Files and processes used by LATEX. a dvi-to-Postscript driver and Postscript . Predefined "Crayola" colors in the na~i~ecodl or model for the dvips driver. X

Description:
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
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.