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.

64 Repeating Things: The Foreach Statement 657<br />

65 Date and Calendar Utility Macros 662<br />

65.1 Handling Dates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 662<br />

65.1.1 Conversions Between Date Types . . . . . . . . . . . . . . . . . . . . . . . . . . 662<br />

65.1.2 Checking Dates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 663<br />

65.1.3 Typesetting Dates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 664<br />

65.1.4 Localization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665<br />

65.2 Typesetting Calendars . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 665<br />

66 Page Management 668<br />

66.1 Basic Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 668<br />

66.2 The Predefined Layouts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669<br />

66.3 Defining a Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671<br />

66.4 Creating Logical Pages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 674<br />

67 Extended Color Support 675<br />

68 Parser Module 676<br />

VIII Mathematical and Object-Oriented Engines 677<br />

69 Design Principles 678<br />

69.1 Loading the Mathematical Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678<br />

69.2 Layers of the Mathematical Engine . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 678<br />

69.3 Efficiency and Accuracy of the Mathematical Engine . . . . . . . . . . . . . . . . . . . . 678<br />

70 Evaluating Mathematical Expressions 679<br />

70.1 Commands for Parsing Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 679<br />

71 Syntax for mathematical expressions 680<br />

71.1 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 680<br />

71.2 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 682<br />

71.2.1 Basic arithmetic functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 683<br />

71.2.2 Rounding functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 685<br />

71.2.3 Integer arithmetics functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686<br />

71.2.4 Trigonometric functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686<br />

71.2.5 Comparison and logical functions . . . . . . . . . . . . . . . . . . . . . . . . . . 688<br />

71.2.6 Pseudo-random functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 689<br />

71.2.7 Base conversion functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690<br />

71.2.8 Miscellaneous functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 690<br />

72 Additional Mathematical Commands 693<br />

72.1 Basic arithmetic functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693<br />

72.2 Comparison and logical functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693<br />

72.3 Pseudo-Random Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693<br />

72.4 Base Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 694<br />

73 Customizing the Mathematical Engine 695<br />

74 Number Printing 697<br />

74.1 Changing display styles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 702<br />

75 Object-Oriented Programming 707<br />

75.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707<br />

75.2 A Running Example: The Stamp Class . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707<br />

75.3 Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 707<br />

75.4 Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 708<br />

75.5 Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 709<br />

16

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

Saved successfully!

Ooh no, something went wrong!