MyGit

cetz-package/cetz

Fork: 36 Star: 893 (更新于 2024-11-02 09:35:10)

license: LGPL-3.0

Language: Typst .

CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.

最后发布版本: v0.2.2 ( 2024-03-18 05:41:13)

官方网址 GitHub网址

CeTZ

CeTZ (CeTZ, ein Typst Zeichenpaket) is a library for drawing with Typst with an API inspired by TikZ and Processing.

Examples

Karl's Picture Tree Layout Waves

Click on the example image to jump to the code.

Usage

For information, see the online manual.

To use this package, simply add the following code to your document:

#import "@preview/cetz:0.3.1"

#cetz.canvas({
  import cetz.draw: *
  // Your drawing code goes here
})

CeTZ Libraries

Installing

To install the CeTZ package under your local typst package dir you can use the install script from the repository.

just install

The installed version can be imported by prefixing the package name with @local.

#import "@local/cetz:0.3.1"

#cetz.canvas({
  import cetz.draw: *
  // Your drawing code goes here
})

Just

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).

Testing

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 typst-test in your PATH: cargo install typst-test --git https://github.com/tingerrr/typst-test.

Projects using CeTZ

  • cirCeTZ A port of circuitikz to Typst.
  • conchord Package for writing lyrics with chords that generates fretboard diagrams using CeTZ.
  • finite Finite is a Typst package for rendering finite automata.
  • fletcher Package for drawing commutative diagrams and figures with arrows.
  • riesketcher Package for drawing Riemann sums.

最近版本更新:(数据更新于 2024-09-23 11:00:59)

2024-03-18 05:41:13 v0.2.2

2024-02-23 23:38:10 v0.2.1

2024-01-17 00:39:10 v0.2.0

2023-10-10 02:39:58 v0.1.2

2023-09-10 20:18:05 v.0.1.1

2023-08-18 15:42:47 v0.1.0

2023-08-01 07:26:14 v0.0.2

2023-07-06 21:44:29 v0.0.1

主题(topics):

cetz, typst, typst-canvas

cetz-package/cetz同语言 Typst最近更新仓库

2024-08-21 01:55:24 mintyfrankie/brilliant-CV

2024-07-07 20:49:57 Enter-tainer/typst-preview

2024-05-20 00:37:24 johanvx/typst-undergradmath

2024-04-02 10:09:33 Leedehai/typst-physics

2024-02-25 19:42:03 sahasatvik/typst-theorems

2024-01-12 23:23:59 PgBiel/typst-tablex