diff --git a/README.md b/README.md index fced088..c286c14 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ A [CeTZ](https://github.com/cetz-package/cetz) library for drawing simple two- o ## Usage -This package requires CeTZ version >= 0.2.0! +This package requires CeTZ version >= 0.2.2! For information, see the [manual (stable)](https://github.com/cetz-package/cetz-venn/blob/stable/manual.pdf?raw=true). diff --git a/doc/example.typ b/doc/example.typ index 87b9753..a0be3b1 100644 --- a/doc/example.typ +++ b/doc/example.typ @@ -1,5 +1,5 @@ #import "/src/lib.typ" -#import "@preview/cetz:0.2.1" +#import "@preview/cetz:0.2.2" // String that gets prefixed to every example code // for compilation only! diff --git a/gallery/venn2.typ b/gallery/venn2.typ index 077133a..1ff4efd 100644 --- a/gallery/venn2.typ +++ b/gallery/venn2.typ @@ -1,6 +1,6 @@ #set page(width: auto, height: auto, margin: .5cm) -#import "@preview/cetz:0.2.1" -#import "@preview/cetz-venn:0.1.0": venn2 +#import "@preview/cetz:0.2.2" +#import "@preview/cetz-venn:0.1.1": venn2 #cetz.canvas({ import cetz.draw: * diff --git a/gallery/venn3.png b/gallery/venn3.png index bac1f45..e5ea667 100644 Binary files a/gallery/venn3.png and b/gallery/venn3.png differ diff --git a/gallery/venn3.typ b/gallery/venn3.typ index 93de979..9040b11 100644 --- a/gallery/venn3.typ +++ b/gallery/venn3.typ @@ -1,6 +1,6 @@ #set page(width: auto, height: auto, margin: .5cm) -#import "@preview/cetz:0.2.1" -#import "@preview/cetz-venn:0.1.0": venn3 +#import "@preview/cetz:0.2.2" +#import "@preview/cetz-venn:0.1.1": venn3 #cetz.canvas({ import cetz.draw: * diff --git a/manual.pdf b/manual.pdf index 28220cc..ea7225e 100644 Binary files a/manual.pdf and b/manual.pdf differ diff --git a/manual.typ b/manual.typ index 38cb8e9..b33a52d 100644 --- a/manual.typ +++ b/manual.typ @@ -35,6 +35,8 @@ CeTZ Venn is a tiny package for drawing two- and three-set Venn diagrams using Typst and CeTZ. +*CeTZ version $>=$ 0.2.2 is required!* + = Examples A simple two set Venn diagram: diff --git a/src/lib.typ b/src/lib.typ index ff51d78..bd1b35d 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -1,2 +1,2 @@ -#let version = version(0,1,0) +#let version = version(0,1,1) #import "/src/venn.typ": venn2, venn3 diff --git a/src/venn.typ b/src/venn.typ index e6bd8d1..1de685c 100644 --- a/src/venn.typ +++ b/src/venn.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.2.1" +#import "@preview/cetz:0.2.2" #let default-style = ( stroke: auto, diff --git a/tests/cetz-version/test.typ b/tests/cetz-version/test.typ index f625c42..36c16ff 100644 --- a/tests/cetz-version/test.typ +++ b/tests/cetz-version/test.typ @@ -2,15 +2,16 @@ #import "/src/lib.typ": venn2, venn3 #import "/tests/helper.typ": * -// Import the minimum supported cetz version -#import "@preview/cetz:0.2.0" +// Import all supported cetz versions +#for ver in ("0.2.2",) { + import ("@preview/cetz:" + ver) + import cetz.draw: content, set-style -#import cetz.draw: content, set-style + test-case({ + venn2() + }) -#test-case({ - venn2() -}) - -#test-case({ - venn3() -}) + test-case({ + venn3() + }) +} diff --git a/tests/helper.typ b/tests/helper.typ index 3acdd93..a2cf5e0 100644 --- a/tests/helper.typ +++ b/tests/helper.typ @@ -1,4 +1,4 @@ -#import "@preview/cetz:0.2.1" +#import "@preview/cetz:0.2.2" #import "/src/lib.typ" as venn /// Test case canvas surrounded by a red border diff --git a/typst.toml b/typst.toml index d5bbe1e..171bae1 100644 --- a/typst.toml +++ b/typst.toml @@ -1,6 +1,6 @@ [package] name = "cetz-venn" -version = "0.1.0" +version = "0.1.1" repository = "https://github.com/johannes-wolf/cetz-venn" entrypoint = "src/lib.typ" authors = [