2024-05-16 21:34:50 +00:00
# circuiteria
2024-05-18 21:50:29 +00:00
Circuiteria is a [Typst ](https://typst.app ) package for drawing block circuit diagrams using the [CeTZ ](https://typst.app/universe/package/cetz ) package.
< p align = "center" >
2024-05-18 21:55:06 +00:00
< img src = "./gallery/platypus.png" alt = "Perry the platypus" >
2024-05-18 21:50:29 +00:00
< / p >
## Examples
< table >
< tr >
< td colspan = "2" >
2024-05-18 21:55:06 +00:00
< a href = "./gallery/test.typ" >
< img src = "./gallery/test.png" width = "500px" >
2024-05-18 21:50:29 +00:00
< / a >
< / td >
< / tr >
< tr >
< td colspan = "2" > A bit of eveything< / td >
< / tr >
< tr >
< td colspan = "2" >
2024-05-18 21:55:06 +00:00
< a href = "./gallery/test5.typ" >
< img src = "./gallery/test5.png" width = "500px" >
2024-05-18 21:50:29 +00:00
< / a >
< / td >
< / tr >
< tr >
< td colspan = "2" > Wires everywhere< / td >
< / tr >
< tr >
< td >
2024-05-18 21:55:06 +00:00
< a href = "./gallery/test4.typ" >
< img src = "./gallery/test4.png" width = "250px" >
2024-05-18 21:50:29 +00:00
< / a >
< / td >
< td >
2024-05-18 21:55:06 +00:00
< a href = "./gallery/test6.typ" >
< img src = "./gallery/test6.png" width = "250px" >
2024-05-18 21:50:29 +00:00
< / a >
< / td >
< / tr >
< tr >
< td > Groups< / td >
< td > Rotated< / td >
< / tr >
< / table >
> **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 information, see the [manual ](manual.pdf )
To use this package, simply import [src/lib.typ ](src/lib.typ ) and call the `circuit` function:
```typ
#import "src/lib.typ"
#lib.circuit({
import lib: *
...
})
```
## Installing
> TODO