forked from HEL/circuiteria
1f247c2efcbe086f835bf7ebaa06e07df4e3333d
Add the "u-shape" wire style, which connects two ports facing the same cardinal side with a U-shaped bend. `u-side` selects the side and is auto-detected from the port anchors with `detect-port-side` when set to `auto`. `u-depth` sets the distance of the bend from the outermost endpoint. Add `u-at` for anchor-based placement of the crossbar, analogous to `zigzag-at`. It overrides `u-depth`, which defaults to `auto` so the two are mutually exclusive. Add the `u-shape-wire` and `u-at` examples, extend the `wires` example and add the `gallery/test_ushape` gallery entry.
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%
