#!/usr/bin/env nix-shell #!nix-shell -i bash -p bash typst main="how-to.typ" asset() { echo "how-to-$1.pdf" } for lang in "en" "de"; do typst compile \ "$main" `asset "$lang"` \ "--input=lang=$lang" done