forked from HEL/circuiteria
018192db861cce5c9e6a4facc13ecdc7526ceb78
Analogous to u-shape's u-side auto-detection: when zigzag-dir is auto (new default), deduce it from the endpoint port anchors by comparing each port's position with its element's .center anchor. East/west ports yield "vertical", north/south yield "horizontal". Panics on conflicting endpoints or when neither endpoint is a port anchor.
circuiteria
Circuiteria is a Typst package for drawing block circuit diagrams using the CeTZ package.
Examples
|
|
| A bit of everything | |
|
|
| Wires everywhere | |
|
|
| Groups | Rotated |
Note
These circuit layouts were copied from a digital design course given by prof. S. Zahno and recreated using this package
Click on the example image to jump to the code.
Usage
For more information, see the manual
To use this package, simply import circuiteria and call the circuit function:
#import "@preview/circuiteria:0.2.1"
#circuiteria.circuit({
import circuiteria: *
...
})
Description
Drawing block circuits with Typst made easy, using CeTZ
11 MiB
0 Stars
1 Watchers
0 Forks
Languages
Typst
99.8%
Just
0.2%
