Skip to content
forked from fenjalien/cirCeTZ

A port of circuitikz to Typst using CeTZ!

License

Notifications You must be signed in to change notification settings

peterkos/cirCeTZ

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cirCetZ

A revived fork of cirCetZ, which is a port of circuitikz to Typst with CetZ.

Installation

  1. Clone the repo into a directory called cirCetZ
  2. Import fletcher and cetz alongside this package

Note: this process can definitely be cleaned up! Feel free to open a PR :)

#import "@preview/fletcher:0.5.3" as fletcher: diagram, node, edge, cetz
#import "cirCetZ/src/lib.typ" as circetz: *
#import cetz.draw

#cetz.canvas({
  import components: *
  import draw: *
  resistor((2, 1), (0, 1), i: ("<", $i_1$))
  resistor((0, 0), (2, 0), i: ("<", $i_1$))
})

See demo.typ for an out-of-the-box demo.

Also see examples/ for examples with a surprise compilation status. Will it compile? Who knows! I didn't get that far yet.

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!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Typst 100.0%