23.02.2015 Views

TikZ PGF TikZ PGF

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

11 Design Principles 98<br />

11.1 Special Syntax For Specifying Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98<br />

11.2 Special Syntax For Path Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98<br />

11.3 Actions on Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98<br />

11.4 Key-Value Syntax for Graphic Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 99<br />

11.5 Special Syntax for Specifying Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99<br />

11.6 Special Syntax for Specifying Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99<br />

11.7 Grouping of Graphic Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100<br />

11.8 Coordinate Transformation System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100<br />

12 Hierarchical Structures: Package, Environments, Scopes, and Styles 101<br />

12.1 Loading the Package and the Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101<br />

12.2 Creating a Picture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101<br />

12.2.1 Creating a Picture Using an Environment . . . . . . . . . . . . . . . . . . . . . 101<br />

12.2.2 Creating a Picture Using a Command . . . . . . . . . . . . . . . . . . . . . . . 103<br />

12.2.3 Adding a Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103<br />

12.3 Using Scopes to Structure a Picture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104<br />

12.3.1 The Scope Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104<br />

12.3.2 Shorthand for Scope Environments . . . . . . . . . . . . . . . . . . . . . . . . . 104<br />

12.3.3 Single Command Scopes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105<br />

12.3.4 Using Scopes Inside Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105<br />

12.4 Using Graphic Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106<br />

12.4.1 How Graphic Options Are Processed . . . . . . . . . . . . . . . . . . . . . . . . 106<br />

12.4.2 Using Styles to Manage How Pictures Look . . . . . . . . . . . . . . . . . . . . 106<br />

13 Specifying Coordinates 108<br />

13.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108<br />

13.2 Coordinate Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108<br />

13.2.1 Canvas, XYZ, and Polar Coordinate Systems . . . . . . . . . . . . . . . . . . . 108<br />

13.2.2 Barycentric Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111<br />

13.2.3 Node Coordinate System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112<br />

13.2.4 Tangent Coordinate Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114<br />

13.2.5 Defining New Coordinate Systems . . . . . . . . . . . . . . . . . . . . . . . . . 115<br />

13.3 Coordinates at Intersections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115<br />

13.3.1 Intersections of Perpendicular Lines . . . . . . . . . . . . . . . . . . . . . . . . 115<br />

13.3.2 Intersections of Arbitrary Paths . . . . . . . . . . . . . . . . . . . . . . . . . . . 116<br />

13.4 Relative and Incremental Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118<br />

13.4.1 Specifying Relative Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . 118<br />

13.4.2 Relative Coordinates and Scopes . . . . . . . . . . . . . . . . . . . . . . . . . . 118<br />

13.5 Coordinate Calculations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119<br />

13.5.1 The General Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119<br />

13.5.2 The Syntax of Factors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120<br />

13.5.3 The Syntax of Partway Modifiers . . . . . . . . . . . . . . . . . . . . . . . . . . 120<br />

13.5.4 The Syntax of Distance Modifiers . . . . . . . . . . . . . . . . . . . . . . . . . . 121<br />

13.5.5 The Syntax of Projection Modifiers . . . . . . . . . . . . . . . . . . . . . . . . . 122<br />

14 Syntax for Path Specifications 123<br />

14.1 The Move-To Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124<br />

14.2 The Line-To Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125<br />

14.2.1 Straight Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125<br />

14.2.2 Horizontal and Vertical Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125<br />

14.3 The Curve-To Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125<br />

14.4 The Cycle Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126<br />

14.5 The Rectangle Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126<br />

14.6 Rounding Corners . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126<br />

14.7 The Circle and Ellipse Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127<br />

14.8 The Arc Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129<br />

14.9 The Grid Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129<br />

14.10 The Parabola Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131<br />

6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!