Skip to content

Commit a3768bd

Browse files
0.1.4 (#181)
2 parents 8002618 + cdcaffa commit a3768bd

44 files changed

Lines changed: 518 additions & 96 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
CeTZ-Plot is a library that adds plots and charts to [CeTZ](https://github.com/cetz-package/cetz), a library for drawing with [Typst](https://typst.app).
44

5-
CeTZ-Plot requires CeTZ version ≥ 0.4.2!
5+
CeTZ-Plot requires CeTZ version ≥ 0.5.0!
66

77
## Examples
88
<!-- img width is set so the table gets evenly spaced by GitHubs css -->
@@ -63,8 +63,8 @@ For information, see the [manual (stable)](https://github.com/cetz-package/cetz-
6363

6464
To use this package, simply add the following code to your document:
6565
```
66-
#import "@preview/cetz:0.4.2"
67-
#import "@preview/cetz-plot:0.1.3": plot, chart
66+
#import "@preview/cetz:0.5.2"
67+
#import "@preview/cetz-plot:0.1.4": plot, chart
6868
6969
#cetz.canvas({
7070
// Your plot/chart code goes here

doc/style.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#import "/src/lib.typ"
22

33
#import "@preview/tidy:0.4.3"
4-
#import "@preview/t4t:0.3.2": is
4+
#import "@preview/t4t:0.3.2": is as is_
55

66
#let show-function(fn, style-args) = {
77
[
88
#heading(fn.name, level: style-args.first-heading-level + 1)
99
#label(style-args.label-prefix + fn.name + "()")
1010
]
11-
let description = if is.sequence(fn.description) {
11+
let description = if is_.sequence(fn.description) {
1212
fn.description.children
1313
} else {
1414
(fn.description,)

gallery/barchart.png

17.1 KB
Loading

gallery/barchart.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#import "@preview/cetz:0.4.2": canvas, draw
2-
#import "@preview/cetz-plot:0.1.3": chart
1+
#import "@preview/cetz:0.5.2": canvas, draw
2+
#import "@preview/cetz-plot:0.1.4": chart
33

44
#set page(width: auto, height: auto, margin: .5cm)
55

gallery/bending.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.4.2" as cetz: draw
1+
#import "@preview/cetz:0.5.2" as cetz: draw
22
#import "/src/lib.typ": smartart
33

44
#set page(width: auto, height: auto, margin: .5cm)

gallery/chevron.png

13 Bytes
Loading

gallery/chevron.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.4.2" as cetz: draw
1+
#import "@preview/cetz:0.5.2" as cetz: draw
22
#import "/src/lib.typ": smartart
33

44
#set page(width: auto, height: auto, margin: .5cm)

gallery/circular.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.4.2" as cetz: draw
1+
#import "@preview/cetz:0.5.2" as cetz: draw
22
#import "/src/lib.typ": smartart
33

44
#set page(width: auto, height: auto, margin: .5cm)

gallery/cycles.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#import "@preview/cetz:0.4.2": canvas, draw
1+
#import "@preview/cetz:0.5.2": canvas, draw
22
#import "/src/lib.typ": smartart
33

44
#set page(width: auto, height: auto, margin: .5cm)

gallery/line.png

-246 Bytes
Loading

0 commit comments

Comments
 (0)