Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
LaTeX Graphics with TikZ

You're reading from   LaTeX Graphics with TikZ A practitioner's guide to drawing 2D and 3D images, diagrams, charts, and plots

Arrow left icon
Product type Paperback
Published in Jun 2023
Publisher Packt
ISBN-13 9781804618233
Length 304 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Stefan Kottwitz Stefan Kottwitz
Author Profile Icon Stefan Kottwitz
Stefan Kottwitz
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Chapter 1: Getting Started with TikZ 2. Chapter 2: Creating the First TikZ Images FREE CHAPTER 3. Chapter 3: Drawing and Positioning Nodes 4. Chapter 4: Drawing Edges and Arrows 5. Chapter 5: Using Styles and Pics 6. Chapter 6: Drawing Trees and Graphs 7. Chapter 7: Filling, Clipping, and Shading 8. Chapter 8: Decorating Paths 9. Chapter 9: Using Layers, Overlays, and Transparency 10. Chapter 10: Calculating with Coordinates and Paths 11. Chapter 11: Transforming Coordinates and Canvas 12. Chapter 12: Drawing Smooth Curves 13. Chapter 13: Plotting in 2D and 3D 14. Chapter 14: Drawing Diagrams 15. Chapter 15: Having Fun with TikZ 16. Index 17. Other Books You May Enjoy

What this book covers

Chapter 1, Getting Started with TikZ, introduces TikZ. It discusses alternative graphics packages and emphasizes TikZ’s benefits. You’ll thoroughly understand what TikZ is all about and its unique philosophy. You’ll receive guidance on installing TikZ, and you will walk through creating a small drawing. Additionally, you will get helpful tips for accessing TikZ’s and other packages’ documentation.

Chapter 2, Creating the First TikZ Images, walks you through creating a LaTeX document with a drawing from scratch. You will gain a solid understanding of the TikZ syntax and learn about cartesian and polar coordinates in two and three dimensions. Additionally, you’ll learn how to create basic geometric shapes and incorporate color into your designs.

Chapter 3, Drawing and Positioning Nodes, introduces the fundamental concept of nodes. You’ll learn how to draw nodes in various shapes, position and align them, and add text, images, and labels.

Chapter 4, Drawing Edges and Arrows, shows how to connect nodes by edges, straight and curvy lines, and arrows. You’ll see how to add text labels on the edges and adjust alignment, position, and orientation. You’ll learn to use line styles and customized arrow tips in one or both directions.

Chapter 5, Using Styles and Pics, teaches you how to define and apply global and local styles for TikZ elements. You will learn how to use styles on nodes and edges and apply them to entire pictures or selected parts of a picture using scopes. Additionally, you will learn about using mini TikZ pictures as building blocks.

Chapter 6, Drawing Trees and Graphs, guides you through creating tree structures to depict parent-child relationships hierarchically. It shows how to draw mind maps to visualize ideas and introduces a concise syntax for generating graphs. Additionally, this chapter offers a practical technique for arranging objects in a matrix format similar to LaTeX’s tabular environment.

Chapter 7, Filling, Clipping, and Shading, starts with more advanced techniques. You’ll learn how to fill complex paths, clip pictures to specific areas, and add shading that transitions smoothly from one color to another.

Chapter 8, Decorating Paths, introduces techniques for adding creative effects to lines and curves, such as making them wavy, zigzag, or bumpy. You’ll also learn how to print text along a curved path and apply multiple actions on a single path.

Chapter 9, Using Layers, Overlays, and Transparency, demonstrates how to create drawings on different layers, allowing you to place objects behind text or images. You will learn how to use transparency to improve this effect. Additionally, you will discover how to superimpose TikZ annotations on top of regular LaTeX text and add background images to document pages, similar to watermarks.

Chapter 10, Calculating with Coordinates and Paths, shows the efficient way of letting TikZ calculate coordinate values. This chapter covers coordinate calculation, distance and projection calculation, and calculating intersections of paths. You’ll also discover how to save time and streamline your code by using loops to repeat commands.

Chapter 11, Transforming Coordinates and Canvas, focuses on shifting, rotating, and scaling nodes and coordinates using transformations. You’ll learn skills that enable you to make precise adjustments and repositioning, whether you need to make minor tweaks or complex changes to your drawings.

Chapter 12, Drawing Smooth Curves, explores different methods to draw easy curves smoothly with gentle slopes, smooth transitions, and without sharp corners or spikes, similar to freehand-like drawings.

Chapter 13, Plotting in 2D and 3D, deals with visualizing data in a coordinate system. It covers customizing Cartesian and polar axes and adding legends, plotting explicit and parametric functions in 2D and 3D, calculating plot intersections, and filling between plots.

Chapter 14, Drawing Diagrams, shows how to create flowcharts, relationship diagrams, descriptive diagrams, and quantitative diagrams. The emphasis is on using packages to generate whole diagrams in a more automated way.

Chapter 15, Having Fun with TikZ, showcases examples of how skilled TikZ users enjoyed programming add-on packages and sharing them with the TikZ community. You’ll see how to draw cute animals, human shapes, nation flags, and game pieces.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime