z

zap

@preview

A package to draw standards-inspired electronic circuits, powered by CeTZ

v0.6.0
MIT
1 downloads

Package Information

Last Updated
Minimum Typst Version
0.14.0
Categories
visualizationcomponents
Disciplines
engineeringdrawingphysics

1. Get the package

Download the package using the TPIX CLI:

tpix get @preview/zap:0.6.0

2. Import in your Typst file

Add this to your .typ file:

#import "@preview/zap:0.6.0": *

Version History

0.6.00.14.0
2eadf408a4c4...
0.5.00.14.1
8523ba99727b...
0.4.00.13.0
797145f3b8cb...
0.3.00.13.0
9d77ecdfdb44...
0.2.10.13.0
f8014339fffd...
0.2.00.13.1
89c3c65338b4...
0.1.00.13.0
278179330ebb...

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.

Repository โ€“ Documentation โ€“ Examples

Examples

You can find the full list of examples here.

Operational amplifier

Operational amplifier example

MicroController Unit

MicroController Unit example

Logic circuit

Logic circuit example

Quick usage

#import "@preview/zap:0.6.0"

#zap.circuit({
    import zap: *
    
    // Here is a minimalist example
    node("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 ๐Ÿคฉ!

This project is an independent, open-source library licensed under MIT with symbols generated algorithmically from scratch. While inspired by international conventions (IEC, IEEE) for compatibility, Zap is not affiliated with or certified by any standards body. These are stylistic approximations for illustration. For safety-critical or regulatory compliance, please consult official standards and create custom symbols.