Skip to content

Commit

Permalink
manual: Add a mini preamble
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Jul 20, 2024
1 parent cc063e7 commit 9541468
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Binary file modified manual.pdf
Binary file not shown.
20 changes: 20 additions & 0 deletions manual.typ
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@

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

= Introduction

CeTZ-Plot is a simple plotting library for use with CeTZ.

= Usage

This is the minimal starting point:
#pad(left: 1em)[```typ
#import "@preview/cetz:0.2.2"
#import "@preview/cetz-plot:0.1.0"
#cetz.canvas({
import cetz.draw: *
import cetz-plot: *
...
})
```]
Note that plot functions are imported inside the scope of the `canvas` block.
All following example code is expected to be inside a `canvas` block, with the `plot`
module imported into the namespace.

= Plot

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

0 comments on commit 9541468

Please sign in to comment.