# tikzpizza

Pizzas for fraction problems, drawn with TikZ.

`tikzpizza` draws cartoon pizzas for maths worksheets, tests and slides. You
choose the shape, how it is cut, what goes on each slice and how much has been
eaten:

- **shapes**: round, square, rectangular, or any regular polygon; polygons are
  sized to hold as much pizza as a round one, so comparisons are fair;
- **cuts**: equal slices (equal in area, whatever the shape), slices of any
  sizes you list, grids and strips (the tavern cut on a round pizza),
  off-centre cuts that are fair by area or unfair by angle, sloppy cuts, or
  hidden cuts;
- **toppings**: four sauces, three cheeses and fourteen toppings (shrimp,
  spinach and rounds of fresh mozzarella among them), each on exactly the
  slices you choose, spread thick or thin, or an exact number per slice for
  counting; add your own with `\pizzanewtopping`;
- **eating**: eaten or removed slices (with a dashed ghost of the whole if you
  like), separated and pulled-out slices, bites from the crust or the tip, and
  a tray, sheet or board with the crumbs left behind.

```latex
\usepackage{tikzpizza}
...
\begin{tikzpicture}
  \pizzatray[slices=8, eaten={2,3}, pepperoni={on=1}, mushroom={on=4-8}]
\end{tikzpicture}

Ali ate \pizzapic[scale=0.15, slices=4, eaten=1] of a pizza.
```

See `tikzpizza-doc.pdf` for every option, with examples.

## Author

Vernon Merrick Fanning

## Requirements

TikZ only. Works with pdfLaTeX, XeLaTeX and LuaLaTeX.

## Licence

Copyright (C) 2026 Vernon Merrick Fanning.

This work may be distributed and/or modified under the conditions of the LaTeX
Project Public License, either version 1.3c of this license or (at your
option) any later version. The latest version of this license is in
https://www.latex-project.org/lppl.txt and version 1.3c or later is part of
all distributions of LaTeX version 2008 or later.

This work has the LPPL maintenance status `maintained`. The Current Maintainer
of this work is Vernon Merrick Fanning.

This work consists of the files `tikzpizza.sty`, `tikzpizza-doc.tex` and
`README.md`, and the derived file `tikzpizza-doc.pdf`.

All drawings in this work are original. They were made from scratch with TikZ
paths for this package; none is traced from or based on a photograph or on
anyone else's artwork.
