forked from HEL/circuiteria
d0b906ae073fe171e6aafe64fec73ffcd5ec0dc1
CeTZ 0.5.2 requires 3D coordinate vectors (x, y, z) for raw coordinate tuples passed to coordinate.resolve(). Update internal wire computations (dodge, guided) to use 3-element tuples, fix .last() to .at(1) for y-component access on resolved coordinates, and add a normalize-coord utility that automatically pads user- provided 2D points (x, y) to (x, y, 0) so users do not need to specify the z dimension.
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
Languages
Typst
99.7%
Just
0.3%
