Installation

Through the package manager

Just import the latest elembic version and you're ready to go!

#import "@preview/elembic:1.1.0" as e

#let element = e.element.declare(...)
#show: e.set_(element, data: 20)
// ...

For testing and development

If you'd like to contribute or try out the latest development version, Elembic may be installed as a local package (or by copying it to your project in the web app).

To install Elembic as a local package in your system, see https://github.com/typst/packages?tab=readme-ov-file#local-packages for instructions.

In particular, it involves downloading Elembic's files from either GitHub (pgbiel/elembic) or Codeberg (pgbiel/elembic) and then copying it to $LOCAL_PACKAGES_DIR/elembic/1.1.0.

If you're using a Linux platform, there is the following one-liner command to install the latest development version (note: does not remove a prior installation):

pkgbase="${XDG_DATA_HOME:-$HOME/.local/share}/typst/packages/local/elembic" && mkdir -p "$pkgbase/1.1.0" && curl -L https://github.com/PgBiel/elembic/archive/main.tar.gz | tar xz --strip-components=1 --directory="$pkgbase/1.1.0"

Elembic can then be imported with import "@local/elembic:1.1.0" as e.