Skip to content

Commit

Permalink
Prepare CeTZ v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
johannes-wolf committed Sep 6, 2024
1 parent 0bc5f61 commit 561babd
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 120 deletions.
27 changes: 3 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,39 +24,18 @@ CeTZ (CeTZ, ein Typst Zeichenpaket) is a library for drawing with [Typst](https:
<td>Karl's Picture</td>
<td>Tree Layout</td>
<td>Waves</td>
</tr><tr>
<td>
<a href="gallery/pie-chart.typ">
<img src="gallery/pie-chart.png" width="250px">
</a>
</td>
<td>
<a href="gallery/plot.typ">
<img src="gallery/plot.png" width="250px">
</a>
</td>
<td>
<a href="gallery/barchart.typ">
<img src="gallery/barchart.png" width="250px">
</a>
</td>
</tr><tr>
<td>Pie Chart</td>
<td>Plot</td>
<td>Clustered Barchart</td>
</tr>

</table>

*Click on the example image to jump to the code.*

## Usage

For information, see the [manual](https://github.com/cetz-package/cetz/blob/v0.2.2/manual.pdf?raw=true) for the current version. Future versions will use the new documentation website: https://cetz-package.github.io/docs
For information, see the [online manual](https://cetz-package.github.io/docs).

To use this package, simply add the following code to your document:
```
#import "@preview/cetz:0.2.2"
#import "@preview/cetz:0.3.0"
#cetz.canvas({
import cetz.draw: *
Expand All @@ -80,7 +59,7 @@ just install
The installed version can be imported by prefixing the package name with `@local`.

```typ
#import "@local/cetz:0.2.2"
#import "@local/cetz:0.3.0"
#cetz.canvas({
import cetz.draw: *
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sidebar_position: 1
This is the minimal starting point in a `.typ` file:

```typ
#import "@preview/cetz:0.2.2"
#import "@preview/cetz:0.3.0"
#cetz.canvas({
import cetz.draw: *
...
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/karl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ In CeTZ, to draw a picture, two imports and a function call is all you need. Kar

```typ
#set page(width: auto, height: auto)
#import "@preview/cetz:0.2.2"
#import "@preview/cetz:0.3.0"
We are working on
#cetz.canvas({
Expand Down
Binary file removed gallery/barchart.png
Binary file not shown.
26 changes: 0 additions & 26 deletions gallery/barchart.typ

This file was deleted.

3 changes: 1 addition & 2 deletions gallery/karls-picture.typ
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "@preview/cetz:0.2.2"

#import "@preview/cetz:0.3.0"
#set page(width: auto, height: auto, margin: .5cm)

#show math.equation: block.with(fill: white, inset: 1pt)
Expand Down
Binary file removed gallery/pie-chart.png
Binary file not shown.
35 changes: 0 additions & 35 deletions gallery/pie-chart.typ

This file was deleted.

Binary file removed gallery/plot.png
Binary file not shown.
26 changes: 0 additions & 26 deletions gallery/plot.typ

This file was deleted.

2 changes: 1 addition & 1 deletion gallery/tree.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/cetz:0.2.2": canvas, draw, tree
#import "@preview/cetz:0.3.0": canvas, draw, tree

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

Expand Down
2 changes: 1 addition & 1 deletion gallery/waves.typ
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "@preview/cetz:0.2.2": canvas, draw, vector, matrix
#import "@preview/cetz:0.3.0": canvas, draw, vector, matrix

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

Expand Down
2 changes: 1 addition & 1 deletion src/version.typ
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#let version = version(0,2,2)
#let version = version(0,3,0)
4 changes: 2 additions & 2 deletions typst.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cetz"
version = "0.2.2"
version = "0.3.0"
compiler = "0.11.0"
repository = "https://github.com/cetz-package/cetz"
entrypoint = "src/lib.typ"
Expand All @@ -11,5 +11,5 @@ authors = [
categories = [ "visualization" ]
license = "LGPL-3.0-or-later"
description = "Drawing with Typst made easy, providing an API inspired by TikZ and Processing. Includes modules for plotting, charts and tree layout."
keywords = [ "draw", "canvas", "plot", "chart", "tree" ]
keywords = [ "draw", "canvas", "tree" ]
exclude = [ "/gallery/*", "manual.pdf", "manual.typ" ]

0 comments on commit 561babd

Please sign in to comment.