touying-mitex
touying-mitex(block: true, numbering: auto, supplement: auto, mitex, body)(source)Touying can integrate with mitex to display math equations.
You can use #touying-mitex to display math equations with pause and meanwhile.
Example:
#touying-mitex(mitex, `
f(x) &= \pause x^2 + 2x + 1 \\
&= \pause (x + 1)^2 \\
`)
Parameters
mitex : function
The mitex function. You can import it by code like #import "@preview/mitex:0.2.6": mitex.
block : bool default: true
Whether the equation is a block element. Default is true.
numbering : auto | none | str | function default: auto
The numbering of the equation. Default is auto, which leaves it to set math.equation(numbering: ..).
supplement : auto | none | content | function default: auto
The supplement of the equation. Default is auto, which leaves it to set math.equation(supplement: ..).
body : string | content | function
The content of the equation. It should be a string, a raw text, or a function that receives self as an argument and returns a string.
Returns: content