How do I replace "Ref here" with a reference to the lemma? The @lemma syntax doesn’t appear to work in math mode and when I try ref("lemma") I get error: unknown variable: ref. Same with link.
For functions, symbols, etc. in the math module (see Math – Typst Documentation), you can typically write them directly without the # prefix unless specifically required. For example:
$ lim_x = op("lim", limits: #true)_x $
Here, true requires the # prefix, but lim, op do not.
If you don’t need a supplement , you can write it more concisely as @some-label[] (but in math mode, use #[@some-label[]] instead); To change the supplement for all equations, you can use like: