Learning Metapost By Doing


E-Book Content

Learning METAPOST by Doing Andr´e Heck c 2003, AMSTEL Institute ° Contents 1 Introduction 3 2 A Simple Example 2.1 Running METAPOST . . . . . . . . . . . . . . . . . . . 2.2 Using the Generated PostScript in a LATEX Document 2.3 The Structure of a METAPOST Document . . . . . . . 2.4 Numeric Quantities . . . . . . . . . . . . . . . . . . . . 2.5 If Processing Goes Wrong . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3 5 6 8 8 3 Basic Graphical Primitives 3.1 Pair . . . . . . . . . . . . . . . . . . . 3.2 Path . . . . . . . . . . . . . . . . . . . 3.2.1 Open and Closed Curves . . . . 3.2.2 Straight and Curved Lines . . . 3.2.3 Construction of Curves . . . . 3.3 Angle and Direction Vector . . . . . . 3.4 Arrow . . . . . . . . . . . . . . . . . . 3.5 Circle, Ellipse, Square, and Rectangle 3.6 Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 10 13 13 14 14 18 19 19 21 4 Style Directives 4.1 Dashing . . . . . . . . . 4.2 Coloring . . . . . . . . . 4.3 Specifying the Pen . . . 4.4 Setting Drawing Options . . . . . .
You might also like

Encyclopedia Of Biological Chemistry
Authors: William J. Lennarz , M. Daniel Lane , Paul Modrich , Jack Dixon , Ernesto Carafoli , John Exton , Don Cleveland    217    0


Radar Technology Encyclopedia
Authors: David K. Barton , David K. Barton , Sergey A. Leonov    183    0


E-ffective Writing For E-learning Environments
Authors: Katy Campbell    150    0


Maple 8 Learning Guide
Authors: Inc. Waterloo Maple    93    0


Drugs, Alcohol And Tobacco: Learning About Addictive Behavior
Authors: Rosalyn Carson-Dewitt    138    0


Comptia A+ Certification All-in-one Desk Reference For Dummies
Authors: Glen E. Clarke , Ed Tetz    130    0


How To Prepare For Ielts
Authors: Ray De Witt    120    0


Buying A Computer For Dummies
Authors: Dan Gookin    140    0


Over-the-road Wireless For Dummies
Authors: E. Phil Haley    141    0