#!/bin/sh awk '$3 == "#" { printf("#include(\"text/%s.typ\")\n", $2) }' alist.txt > all.typ typst compile --root $PWD all.typ a/all.pdf