# Venn and Euler diagrams

> Set diagrams in plain TikZ, so any region can be shaded, labeled, or counted. 4 examples, each rendered, with complete LaTeX source to copy or open in TeXeR.

A package in the TeXeR TikZ library: https://texer.org/library/set-diagrams

Category: Mathematics. On CTAN: https://ctan.org/pkg/pgf

Tags: venn, euler, sets, logic

## Examples

- [Symmetric difference](https://texer.org/library/set-diagrams/symmetric-difference.md): The elements in exactly one of A and B, shaded with the even-odd fill rule.
- [Set difference](https://texer.org/library/set-diagrams/set-difference.md): A minus B: the part of A outside B is shaded.
- [Three sets with counts](https://texer.org/library/set-diagrams/venn-counts.md): A survey of drink preferences with the number of people in each of the seven regions.
- [Euler diagram](https://texer.org/library/set-diagrams/euler-diagram.md): Subsets drawn inside the sets that contain them, and a disjoint set beside them.
