Skip to content

Commit 9541468

Browse files
committed
manual: Add a mini preamble
1 parent cc063e7 commit 9541468

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

manual.pdf

3.2 KB
Binary file not shown.

manual.typ

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@
3131

3232
#set page(numbering: "1/1", header: align(right)[CeTZ-Plot])
3333

34+
= Introduction
35+
36+
CeTZ-Plot is a simple plotting library for use with CeTZ.
37+
38+
= Usage
39+
40+
This is the minimal starting point:
41+
#pad(left: 1em)[```typ
42+
#import "@preview/cetz:0.2.2"
43+
#import "@preview/cetz-plot:0.1.0"
44+
#cetz.canvas({
45+
import cetz.draw: *
46+
import cetz-plot: *
47+
...
48+
})
49+
```]
50+
Note that plot functions are imported inside the scope of the `canvas` block.
51+
All following example code is expected to be inside a `canvas` block, with the `plot`
52+
module imported into the namespace.
53+
3454
= Plot
3555

3656
#doc-style.parse-show-module("/src/plot.typ")

0 commit comments

Comments
 (0)