Technical requirements
You need either a local LaTeX installation on your PC or an online compiler such as Overleaf or the book’s website compiler. You can find all code examples for this chapter at https://tikz.net/contents/chapter-03.
The code is also available on GitHub at https://github.com/PacktPublishing/LaTeX-graphics-with-TikZ/tree/main/03-drawing-and-positioning-nodes.
Again, we sometimes just show code snippets to not spend too much book space on repetitive commands, such as \begin{tikzpicture}
and \end{tikzpicture}
. Every code snippet is available as a fully compilable document at TikZ.org and GitHub; you can use those code examples for exercises.
In this chapter, we will use the shapes
and positioning
libraries included in TikZ and the tikzpeople
and enumitem
packages.