This post will probably be helpful:
If you want to know more about why this is not one of Typst’s features, I find this comment on a proposed feature illuminating: