Kalt evaluates arbitrary nested Typst equations and returns the result as Typst
content. It is meant for cases where calc gets awkward: deeply nested
expressions, complex numbers, matrices, vectors, and indexing.
Since the result is still Typst content, you can keep formatting, reusing, and combining it in your document instead of ending up with a dead numeric result.
The repository is split into a Rust backend, Wasm bindings, and the Typst-side package. If you want the user-facing documentation and the complete list of supported operations, start with typst/README.md.
- scalars and complex numbers
- matrices and vectors
- indexing and slicing
- arithmetic, matrix, and mathematical functions
See the Typst README for the complete supported-operation list and examples.
- rust contains the
kaltcrate, which does the actual evaluation. - rust_bindings builds the Wasm wrapper used by Typst.
- typst has the package README, examples, tests, and assets.
From the repo root:
cargo build --workspaceTo build the bindings only:
cargo build --release --target wasm32-unknown-unknown -p kalt_bindings