CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
1,839
stars
763
commits
Typst
primary language
Aug 31, 2026
updated
CeTZ (CeTZ, ein Typst Zeichenpaket) is a library for drawing with Typst with an API inspired by TikZ and Processing.
|
|
|
| Karl's Picture | Pacioli's construction of the icosahedron | Plate Capacitor |
|
|
|
| Tree Layout | Periodic Table of Elements | Waves |
| ||
| Torus |
Click on the example image to jump to the code.
You can explore an example gallery of scientific diagrams at janosh.github.io/diagrams.
For information, see the API Reference (PDF) or the online manual.
To use this package, simply add the following code to your document:
#import "@preview/cetz:0.5.2"
#cetz.canvas({
import cetz.draw: *
// Your drawing code goes here
})
To install the CeTZ package under your local typst package dir you can use the install script from the repository.
Make sure to first perform a recursive git clone
# to fetch a clean clone:
git clone --recursive https://github.com/cetz-package/cetz.git
# or if you forgot the `--recursive` flag before:
git submodule update --init
and also ensure you have just and cargo installed.
After enabling flakes, use:
nix --extra-experimental-features 'nix-command flakes' develop
Now use the installation script:
just install
The installed version can be imported by prefixing the package name with @local.
#import "@local/cetz:0.5.2"
#cetz.canvas({
import cetz.draw: *
// Your drawing code goes here
})
This project uses just, a handy command runner.
You can run all commands without having just installed, just have a look into the justfile.
To install just on your system, use your systems package manager. On Windows, Cargo (cargo install just), Chocolatey (choco install just) and some other sources can be used. You need to run it from a sh compatible shell on Windows (e.g git-bash).
This package comes with some unit tests under the tests directory.
To run all tests you can run the just test target. You need to have
tytanic in your PATH: cargo install tytanic.
(top 30 of 51)
Typst
90.6%
Rust
9.0%
CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
1,839
stars
763
commits
Typst
primary language
Aug 31, 2026
updated
CeTZ (CeTZ, ein Typst Zeichenpaket) is a library for drawing with Typst with an API inspired by TikZ and Processing.
|
|
|
| Karl's Picture | Pacioli's construction of the icosahedron | Plate Capacitor |
|
|
|
| Tree Layout | Periodic Table of Elements | Waves |
| ||
| Torus |
Click on the example image to jump to the code.
You can explore an example gallery of scientific diagrams at janosh.github.io/diagrams.
For information, see the API Reference (PDF) or the online manual.
To use this package, simply add the following code to your document:
#import "@preview/cetz:0.5.2"
#cetz.canvas({
import cetz.draw: *
// Your drawing code goes here
})
To install the CeTZ package under your local typst package dir you can use the install script from the repository.
Make sure to first perform a recursive git clone
# to fetch a clean clone:
git clone --recursive https://github.com/cetz-package/cetz.git
# or if you forgot the `--recursive` flag before:
git submodule update --init
and also ensure you have just and cargo installed.
After enabling flakes, use:
nix --extra-experimental-features 'nix-command flakes' develop
Now use the installation script:
just install
The installed version can be imported by prefixing the package name with @local.
#import "@local/cetz:0.5.2"
#cetz.canvas({
import cetz.draw: *
// Your drawing code goes here
})
This project uses just, a handy command runner.
You can run all commands without having just installed, just have a look into the justfile.
To install just on your system, use your systems package manager. On Windows, Cargo (cargo install just), Chocolatey (choco install just) and some other sources can be used. You need to run it from a sh compatible shell on Windows (e.g git-bash).
This package comes with some unit tests under the tests directory.
To run all tests you can run the just test target. You need to have
tytanic in your PATH: cargo install tytanic.
(top 30 of 51)
Typst
90.6%
Rust
9.0%