A typst plugin for unit-aware calculations
typst

Typst plugin for numbat#

Built using typst-wasm.

Need to install wasi-stub

First compile the rust code to WASM using:

rustup target add wasm32-wasip1
cargo build --release --target wasm32-wasip1
wasi-stub target/wasm32-wasip1/release/numbat_typst.wasm -o target/wasm32-wasip1/release/numbat_typst.wasm

Then install the Typst package locally using tlp or utpm:

tlp init

Then just load the functions like:

#import "@local/numbat:0.1.0": to_uppercase

Sources of inspiration#

  • metasearch2: A cute a light-weight search engine that uses numbat to process relevant queries.