circuiteria/README.md

64 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

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 more information, see the [manual](manual.pdf)
2024-05-18 21:50:29 +00:00
To use this package, simply import [circuiteria](https://typst.app/universe/package/circuiteria) and call the `circuit` function:
2024-05-18 21:50:29 +00:00
```typ
#import "@preview/circuiteria:0.1.0"
#circuiteria.circuit({
import circuiteria: *
2024-05-18 21:50:29 +00:00
...
})
```