2

Creating the First TikZ Images

This chapter will work with the most basic but essential concepts.

Specifically, our topics are as follows:

  • Using the tikzpicture environment
  • Working with coordinates
  • Drawing geometric shapes
  • Using colors

This gives us the foundation to move on to more complex drawings in the upcoming chapters.

It’s good if you already know the basics of geometry and coordinates, but we will have a quick look at the parts we need.

By the end of this chapter, you’ll learn how to create colored drawings with lines, rectangles, circles, ellipses, and arcs and how to position them in a coordinate system.

Technical requirements

You need to have LaTeX on your computer, or you can use Overleaf to compile the code examples of this ...

Get LaTeX Graphics with TikZ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.