23.02.2015 Views

TikZ PGF TikZ PGF

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3 Tutorial: A Petri-Net for Hagen 25<br />

3.1 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

3.2 Setting up the Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

3.2.1 Setting up the Environment in L A TEX . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

3.2.2 Setting up the Environment in Plain TEX . . . . . . . . . . . . . . . . . . . . . 25<br />

3.2.3 Setting up the Environment in ConTEXt . . . . . . . . . . . . . . . . . . . . . . 26<br />

3.3 Introduction to Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26<br />

3.4 Placing Nodes Using the At Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br />

3.5 Using Styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br />

3.6 Node Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />

3.7 Naming Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />

3.8 Placing Nodes Using Relative Placement . . . . . . . . . . . . . . . . . . . . . . . . . . . 29<br />

3.9 Adding Labels Next to Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29<br />

3.10 Connecting Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31<br />

3.11 Adding Labels Next to Lines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33<br />

3.12 Adding the Snaked Line and Multi-Line Text . . . . . . . . . . . . . . . . . . . . . . . . . 33<br />

3.13 Using Layers: The Background Rectangles . . . . . . . . . . . . . . . . . . . . . . . . . . 34<br />

3.14 The Complete Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />

4 Tutorial: Euclid’s Amber Version of the Elements 37<br />

4.1 Book I, Proposition I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />

4.1.1 Setting up the Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />

4.1.2 The Line AB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />

4.1.3 The Circle Around A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38<br />

4.1.4 The Intersection of the Circles . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

4.1.5 The Complete Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

4.2 Book I, Proposition II . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42<br />

4.2.1 Using Partway Calculations for the Construction of D . . . . . . . . . . . . . . 42<br />

4.2.2 Intersecting a Line and a Circle . . . . . . . . . . . . . . . . . . . . . . . . . . . 43<br />

4.2.3 The Complete Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44<br />

5 Tutorial: Diagrams as Simple Graphs 45<br />

5.1 Styling the Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45<br />

5.2 Aligning the Nodes Using Positioning Options . . . . . . . . . . . . . . . . . . . . . . . . 47<br />

5.3 Aligning the Nodes Using Matrices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49<br />

5.4 The Diagram as a Graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50<br />

5.4.1 Connecting Already Positioned Nodes . . . . . . . . . . . . . . . . . . . . . . . 50<br />

5.4.2 Creating Nodes Using the Graph Command . . . . . . . . . . . . . . . . . . . . 51<br />

6 Tutorial: A Lecture Map for Johannes 54<br />

6.1 Problem Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54<br />

6.2 Introduction to Trees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54<br />

6.3 Creating the Lecture Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57<br />

6.4 Adding the Lecture Annotations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61<br />

6.5 Adding the Background . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62<br />

6.6 Adding the Calendar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63<br />

6.7 The Complete Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65<br />

7 Guidelines on Graphics 69<br />

7.1 Planning the Time Needed for the Creation of Graphics . . . . . . . . . . . . . . . . . . . 69<br />

7.2 Workflow for Creating a Graphic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69<br />

7.3 Linking Graphics With the Main Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70<br />

7.4 Consistency Between Graphics and Text . . . . . . . . . . . . . . . . . . . . . . . . . . . 70<br />

7.5 Labels in Graphics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71<br />

7.6 Plots and Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71<br />

7.7 Attention and Distraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74<br />

II Installation and Configuration 76<br />

4

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

Saved successfully!

Ooh no, something went wrong!