forked from grangelouis/zap
A package to draw advanced electronic circuits in Typst
- Typst 100%
| .forgejo | fix: CI using codeberg-tiny runner | |
| docs | formatting | |
| examples | updated tests and wedge/bubble consistency | |
| src | Use "variant" instead of "style" | |
| tests | Add tests | |
| .domains | chore: added Codeberg Pages domain | |
| .gitignore | migrated to forgejo | |
| CONTRIBUTING.md | Actualiser CONTRIBUTING.md | |
| LICENSE | Switch to Lesser version of GPL | |
| README.md | refactor: fixed links to codeberg.org | |
| typst.toml | refactor: fixed links to codeberg.org | |
Zap for Typst
Zap ⚡ is a Typst package that makes drawing electronic circuits simple and intuitive 💥. It's the first circuit library inspired by widely recognized standards 🧷 like IEC and IEEE/ANSI. Unlike circuitikz in LaTeX (2007), its design philosophy balances ease of use with powerful customization, avoiding any awkward syntax.
Examples
You can find the full list of examples here.
Operational amplifier
MicroController Unit
Logic circuit
Quick usage
#import"@preview/zap:0.6.0"#zap.circuit({importzap:*// Here is a minimalist examplenode("B",(0,0))resistor("r1","B",(rel:(0,4)),i:$i_1$)})Online documentation
You can find the full documentation 📚 available online. It provides comprehensive guides, a detailed list of components, styling options and example codes to get you started easily.
Contributing
I highly welcome contributions 🌱! Creating and maintaining Zap takes time and love. If you'd like to help, check out the contribution procedure and join the journey 🤩!