cetz-package / cetz

CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
https://cetz-package.github.io
GNU Lesser General Public License v3.0
809 stars 35 forks source link

Cannot get plot example to work #651

Closed sittim closed 1 month ago

sittim commented 1 month ago

Plot example here:

https://github.com/cetz-package/cetz/blob/master/gallery/plot.typ

does not compile, I get this:

error: unknown variable: cetz
  ┌─ test.typ:8:9
  │
8 │   import cetz.plot
  │          ^^^^

But, the code linked below works fine, this makes it a bit confusing:

https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.2.2/gallery/plot.typ

fenjalien commented 1 month ago

We're in the process of moving the plotting library to its own package here: https://github.com/cetz-package/cetz-plot. Its not yet been submitted to Typst Universe so it won't be in the preview namespace for a while. Please refer to the 0.2.2 tagged example as you have shared.