Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release CeTZ v0.3.0 #682

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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" ]
fenjalien marked this conversation as resolved.
Show resolved Hide resolved
keywords = [ "draw", "canvas", "tree" ]
exclude = [ "/gallery/*", "manual.pdf", "manual.typ" ]
Loading