The LATEX Graphics [second edition].pdf

(2204 KB) Pobierz
The L A T E XGraphics
Companion
Second Edition
Michel Goossens
FrankMittelbach
Sebastian Rahtz
Denis Roegel
Herbert Voß
Upper Saddle River, NJ
Boston
Indianapolis
San Francisco
New York
To r o n t o
Montreal
London
Munich
Paris
Madrid
Capetown
Sydney
To k y o
Singapore
Mexico City
1386343163.199.png 1386343163.210.png 1386343163.221.png 1386343163.232.png 1386343163.001.png 1386343163.012.png 1386343163.023.png 1386343163.034.png 1386343163.045.png 1386343163.056.png 1386343163.067.png 1386343163.078.png 1386343163.089.png 1386343163.100.png 1386343163.111.png 1386343163.122.png
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 o ers discounts on this book when ordered in quantity for bulk purchases and special
sales. For more information, please contact:
U.S. Corporate and Government Sales
(800) 382-3419
corpsales@pearsontechgroup.com
For sales outside of the United States, please contact:
International Sales
international@pearsoned.com
Visit Addison-Wesley on the Web: www.awprofessional.com
Library of Congress Cataloging-in-Publication Data
The LaTeX Graphics companion / Michel Goossens ... [et al.]. -- 2nd ed.
p. cm.
Includes bibliographical references and index.
ISBN 978-0-321-50892-8 (pbk. : alk. paper)
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--Computer programs.
I. Goossens, Michel.
Z253.4.L38G663 2008
686.2’2544536–dc22
2007010278
Copyright © 2008 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.
The foregoing notwithstanding, the examples contained in this book and obtainable online on
CTAN are made available under the L A T E X Project Public License (for information on the LPPL,
see www.latex-project.org/lppl).
For information on obtaining permission for use of material from this work, please submit a written
request to:
Pearson Education, Inc.
Rights and Contracts Department
75 Arlington Street, Suite 300
Boston, MA 02116
Fax: (617) 848-7047
ISBN 10: 0-321-50892-0
ISBN 13: 978-0-321-50892-8
Text printed in the United States on recycled paper at Courier in Westford, Massachusetts.
First printing, July 2007
1386343163.133.png 1386343163.144.png 1386343163.154.png 1386343163.164.png 1386343163.165.png 1386343163.166.png 1386343163.167.png 1386343163.168.png 1386343163.169.png 1386343163.170.png 1386343163.171.png 1386343163.172.png 1386343163.173.png 1386343163.174.png 1386343163.175.png
We dedicate this book to the hundreds of L A T E X developers
whose contributions are showcased in it,
and we salute their enthusiasm and hard work.
Wewouldalsoliketorememberwitha
ection and thanks
Daniel Taupin, whose MusiXT E X system is described in
Chapter 9, and who passed away in 2003, a great loss to our community.
1386343163.176.png 1386343163.177.png 1386343163.178.png 1386343163.179.png 1386343163.180.png 1386343163.181.png 1386343163.182.png 1386343163.183.png 1386343163.184.png 1386343163.185.png 1386343163.186.png 1386343163.187.png 1386343163.188.png 1386343163.189.png 1386343163.190.png
Rhapsodie
pour piano
Compose partiellement vers 1975, termin´eenaout 2002
Daniel TAUPIN
Allegro ( ˘ = 50)
EEEEEEE
EEEEEEE
EEEEEEE
EEEEEEE
EEEEEEE
1
tr
tr
tr
tr
tr
ˇ ă ă ˇ
2
ˇ ă ă ˇ
ˇ ă ă ˇ
G
2
ˇ ă ă ˇ
ˇ ă ă ˇ
EEEEEEE
ˇ ă ă ˇ
ff
EEEEEEE
EEEEEEE
EEEEEEE
EEEEEEE
Piano
ˇ ă ă ˇ
ˇ ă ă ˇ
ˇ ă ă ˇ
ˇ ă ă ˇ
tr
I
tr
tr
tr
tr
2
2
ğ ˇ
ğ ˇ
EEEEEE
EEEEEE
EEEEEE
ę ę ˇ ˇ ˇ ˇ
6
ę ę ˇ ˇ ˇ ˇ
˘ ; ˇ`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196.png 1386343163.197.png 1386343163.198.png 1386343163.200.png 1386343163.201.png 1386343163.202.png 1386343163.203.png 1386343163.204.png 1386343163.205.png 1386343163.206.png 1386343163.207.png 1386343163.208.png 1386343163.209.png 1386343163.211.png 1386343163.212.png 1386343163.213.png 1386343163.214.png 1386343163.215.png 1386343163.216.png 1386343163.217.png 1386343163.218.png 1386343163.219.png 1386343163.220.png 1386343163.222.png 1386343163.223.png 1386343163.224.png 1386343163.225.png 1386343163.226.png 1386343163.227.png 1386343163.228.png 1386343163.229.png 1386343163.230.png 1386343163.231.png 1386343163.233.png 1386343163.234.png 1386343163.235.png 1386343163.236.png 1386343163.237.png 1386343163.238.png 1386343163.239.png 1386343163.240.png 1386343163.241.png 1386343163.242.png 1386343163.002.png 1386343163.003.png 1386343163.004.png 1386343163.005.png 1386343163.006.png 1386343163.007.png 1386343163.008.png 1386343163.009.png 1386343163.010.png 1386343163.011.png 1386343163.013.png 1386343163.014.png 1386343163.015.png 1386343163.016.png 1386343163.017.png 1386343163.018.png 1386343163.019.png 1386343163.020.png 1386343163.021.png 1386343163.022.png 1386343163.024.png 1386343163.025.png 1386343163.026.png 1386343163.027.png 1386343163.028.png 1386343163.029.png 1386343163.030.png 1386343163.031.png 1386343163.032.png 1386343163.033.png 1386343163.035.png 1386343163.036.png 1386343163.037.png 1386343163.038.png 1386343163.039.png 1386343163.040.png 1386343163.041.png 1386343163.042.png 1386343163.043.png 1386343163.044.png 1386343163.046.png 1386343163.047.png 1386343163.048.png 1386343163.049.png 1386343163.050.png 1386343163.051.png 1386343163.052.png 1386343163.053.png 1386343163.054.png 1386343163.055.png 1386343163.057.png 1386343163.058.png 1386343163.059.png 1386343163.060.png 1386343163.061.png 1386343163.062.png 1386343163.063.png 1386343163.064.png 1386343163.065.png 1386343163.066.png 1386343163.068.png 1386343163.069.png 1386343163.070.png 1386343163.071.png 1386343163.072.png 1386343163.073.png 1386343163.074.png 1386343163.075.png 1386343163.076.png 1386343163.077.png 1386343163.079.png 1386343163.080.png 1386343163.081.png 1386343163.082.png 1386343163.083.png 1386343163.084.png 1386343163.085.png 1386343163.086.png 1386343163.087.png 1386343163.088.png 1386343163.090.png 1386343163.091.png 1386343163.092.png 1386343163.093.png 1386343163.094.png 1386343163.095.png 1386343163.096.png 1386343163.097.png 1386343163.098.png 1386343163.099.png 1386343163.101.png 1386343163.102.png 1386343163.103.png 1386343163.104.png 1386343163.105.png 1386343163.106.png 1386343163.107.png 1386343163.108.png 1386343163.109.png 1386343163.110.png 1386343163.112.png 1386343163.113.png 1386343163.114.png 1386343163.115.png 1386343163.116.png 1386343163.117.png 1386343163.118.png 1386343163.119.png 1386343163.120.png 1386343163.121.png 1386343163.123.png 1386343163.124.png 1386343163.125.png 1386343163.126.png 1386343163.127.png 1386343163.128.png 1386343163.129.png 1386343163.130.png 1386343163.131.png 1386343163.132.png 1386343163.134.png 1386343163.135.png 1386343163.136.png 1386343163.137.png 1386343163.138.png 1386343163.139.png 1386343163.140.png 1386343163.141.png 1386343163.142.png 1386343163.143.png 1386343163.145.png
 
CHAPTER 1
Graphics with L A T E X
1.1 Graphicssystemsandtypesetting............................. 2
1.2 Drawingtypes......................................... 3
1.3 T E X’sinterfaces......................................... 6
1.4 Graphicslanguages......................................10
1.5 Choosingapackage......................................21
The phrase “A picture paints a thousand words” seems to have entered the English lan-
guage thanks to Frederick R. Barnard in Printer’s Ink , 8 December 1921, retelling a Chinese
proverb. 1 However, while L A T E X is quite good at typesetting words in a beautiful manner,
L A T E X manuals usually tell you little or nothing about how to handle graphics. This book at-
tempts to fill that gap by describing tools and T E Xniques that let you generate, manipulate,
and integrate graphics with your text.
In these days of the multimedia PC, graphics appear in various places. With many prod-
ucts we get ready-to-use collections of clipart graphics; in shops we can buy CD-ROMs with
“the best photos” of important places; and so forth. As we shall see, all such graphics can be
included in a L A T E X document as long as they are available in a suitable format. Fortunately,
many popular graphic formats either are directly supported or can be converted via a pro-
gram that allows transformation into a supported representation.
If you want to become your own graphic artist, you can use stand-alone dedicated
drawing tools, such as the freely available dia ( www.gnome.org/projects/dia )and
xfig ( www.xfig.org/userman ) on Linux, or the commercial products Adobe Illustrator
( www.adobe.com/illustrator )or Corel Draw ( www.corel.com/coreldraw )on a
Mac or PC. Spreadsheet programs, or one of the modern calculation tools like Mathematica
1 Paul Martin Lester ( commfaculty.fullerton.edu/lester/writings/letters.html )statesthat
the literal translation of the “phony” Chinese proverb should rather be “A picture’s meaning can express ten thou-
sand words”. He, rightly, emphasizes that pictures cannot and should not replace words, but both are comple-
mentary and contribute equally to the understanding of the meaning of a work.
1386343163.146.png 1386343163.147.png 1386343163.148.png 1386343163.149.png 1386343163.150.png 1386343163.151.png 1386343163.152.png 1386343163.153.png 1386343163.155.png 1386343163.156.png 1386343163.157.png 1386343163.158.png 1386343163.159.png 1386343163.160.png 1386343163.161.png 1386343163.162.png 1386343163.163.png
Zgłoś jeśli naruszono regulamin