Skip to content

Commit

Permalink
Release CeTZ v0.3.0 (#682)
Browse files Browse the repository at this point in the history
* Prepare CeTZ v0.3.0

* Add homepage field and remove old manual link

---------

Co-authored-by: fenjalien <[email protected]>
  • Loading branch information
johannes-wolf and fenjalien authored Oct 9, 2024
1 parent c9db6fc commit 57a73be
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 122 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: 0 additions & 2 deletions docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,4 @@ CeTZ, ein Typst Zeichenpaket, is a drawing package for [Typst](https://typst.app

These docs are a work in progress! Please submit issues for parts that don't make sense or need improving :)

THE LINK TO THE EXISTING STABLE MANUAL IS [HERE](https://raw.githubusercontent.com/cetz-package/cetz/stable/manual.pdf)

We are also still trying to find a logo for CeTZ so if you have any ideas please let us know through the Typst discord server.
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)
5 changes: 3 additions & 2 deletions typst.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[package]
name = "cetz"
version = "0.2.2"
version = "0.3.0"
compiler = "0.11.0"
repository = "https://github.com/cetz-package/cetz"
homepage = "https://cetz-package.github.io/"
entrypoint = "src/lib.typ"
authors = [
"Johannes Wolf <https://github.com/johannes-wolf>",
Expand All @@ -11,5 +12,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 57a73be

Please sign in to comment.