Skip to content

fenjalien/cirCeTZ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

circuitypst

THERES WORK ON THE DEV BRANCH THIS PROJECT ISN'T DEAD

A port of circuitikz to Typst using typst-canvas. Due to the size of circuitikz features will be ported as I need them for my own work, if theres a feature you need feel free to make an issue, PR or contact me through Typst's discord (same username)!

"Installation"

Because of Typst's current lack of package management the library expects to be placed in the same folder as typst-canvas.

typst-canvas/
circuitypst/

You can either clone the repository or download it as a .zip and extract it to the required location.

Usage

To get started node and to should be imported from circuitypst.typ, ideally inside typst-canvas's canvas function.

Here is a template:

#import "typst-canvas/canvas.typ": canvas

#canvas(length: 1cm, debug: false, {
  import "typst-canvas/draw.typ": *
  import "circuitypst/circuitypst.typ": node, to
  ...
})

Also see examples/ for some examples.

Requirements for First Stable Release

  • Reference manual (doesn't have to inclued tutorials, just a list of currently supported components)
  • Tests
  • CI
  • More components?

About

A port of circuitikz to Typst using CeTZ!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages