Hi @Bazar, welcome and thank you for your question! I have changed your post’s title from “In-line math with display mode” to “How can I use display mode for in-line math?” as the question guidelines recommend this:
Good titles are questions you would ask your friend about Typst.
I also added the math tag, as it makes your question easier to find. Finally, don’t forget to tick one of the responses if you got a satisfying answer. The answer you choose should usually be the response that you found most correct/helpful/comprehensive for the question you asked.