How can I write limits so that they are under the lim?

hi i have a question how to write limit s in typst for example lim x->inf but i want the x->inf to appear under the lim

You’re asking for the reverse, but the answer is basically the same as here:

Hi all, hi @Ahmad ,
I think you need the display style.

Basically put a space around the math text as in

$ lim_(x -> -1) (x^2 - 1)/(x + 1) $

or force the display style with the function display()

$display(lim_(x -> -1) (x^2 - 1)/(x + 1))$

doesn’t it?

Thanks, the display function fixed it

Alternatively for inline math you can also use the limits function, i.e. like $limits(lim)_(x -> oo)$ to force it.

bild