mitex-rs / mitex

LaTeX support for Typst, powered by Rust and WASM. https://mitex-rs.github.io/mitex/
https://mitex-rs.github.io/mitex/tools/underleaf.html
Apache License 2.0
240 stars 8 forks source link

Feature Request: add handler for `equation*` environment to turn off numbering? #164

Open xiaodong-hu opened 2 months ago

xiaodong-hu commented 2 months ago

Hi, I would suggest the parser to always split the situation when I use equation and equation* environment. This would not affect the default case when the numbering is set off in typst, but would be helpful if the numbering is turned on.

I note that in https://github.com/mitex-rs/mitex/blob/main/packages/mitex/specs/latex/standard.typ right now both equation and equation* environment are defined the same

define-env(none, kind: "is-math", alias: "aligned"),

Probably we can add some special handler to ALWAYS turn off numbering for equation* environment?