How to automatically format acronyms according to The Economist’s style guide in Typst

I love Typst . It’s a markup-based typesetting system that has the readability of Markdown with the power of LaTeX. I enjoy writing in it, and its PDF output is excellent. For my academic writing, Typst has replaced a homemade system of Markdown, Pandoc, and LaTeX that always felt clunky and brittle. When I’m writing in Typst I try to follow The Economist’s style guide. It’s a well-regarded set of…