forked from HEL/circuiteria
94268c0a22f8ba481e8b3a7e2f1b00802db524bd
Add `port-names-outside` to draw port name labels outside the block border. It defaults to `auto`, which follows the new `shell` setting. Add `shell` to `block` so it can act as a container, as an alternative to `group`. Placing elements into such a block lets them be aligned to the ports of the outer block. A shell block draws its port names outside and, through the existing `wire-inside` behaviour, attaches wires to the inner tip of pentagon ports. Child elements can be passed as a positional body argument. Add the `port-names-outside` and `shell` examples.
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%
