diff --git a/README.md b/README.md index 082f9bc..fced088 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # CeTZ Venn -A CeTZ library for drawing simple two- or three-set Venn diagrams. +A [CeTZ](https://github.com/cetz-package/cetz) library for drawing simple two- or three-set Venn diagrams. ## Examples @@ -24,11 +24,13 @@ A CeTZ library for drawing simple two- or three-set Venn diagrams. ## Usage -For information, see the [manual (stable)](https://github.com/johannes-wolf/cetz-venn/blob/stable/manual.pdf?raw=true). +This package requires CeTZ version >= 0.2.0! + +For information, see the [manual (stable)](https://github.com/cetz-package/cetz-venn/blob/stable/manual.pdf?raw=true). To use this package, simply add the following code to your document: ``` -#import "@preview/cetz:0.2.1" +#import "@preview/cetz:0.2.2" #import "@preview/cetz-venn:0.1.0" #cetz.canvas({ diff --git a/tests/cetz-version/ref/1.png b/tests/cetz-version/ref/1.png new file mode 100644 index 0000000..29c277f Binary files /dev/null and b/tests/cetz-version/ref/1.png differ diff --git a/tests/cetz-version/test.typ b/tests/cetz-version/test.typ new file mode 100644 index 0000000..f625c42 --- /dev/null +++ b/tests/cetz-version/test.typ @@ -0,0 +1,16 @@ +#set page(width: auto, height: auto) +#import "/src/lib.typ": venn2, venn3 +#import "/tests/helper.typ": * + +// Import the minimum supported cetz version +#import "@preview/cetz:0.2.0" + +#import cetz.draw: content, set-style + +#test-case({ + venn2() +}) + +#test-case({ + venn3() +})