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 for `\footnote{...}` Support #135

Closed xiaodong-hu closed 4 months ago

xiaodong-hu commented 4 months ago

Nowadays typst already support #footnote macro, but #mixtext still cannot parse \footnote{...} yet.

I wonder if it can be easily supported by splitting #mitext with the parser if \footnote is encountered, like following:

#import "@preview/mitex:0.2.1": *
#mitext(`
Now because only non-trivial braiding\footnote{Otherwise the relabeling among these overlapping pairs takes no effects.} processes are considered...
`)

be parsed by

#import "@preview/mitex:0.2.1": *
#mitext(`
Now because only non-trivial braiding`)#footnote[Otherwise the relabeling among these overlapping pairs takes no effects.]#mitext(` processes are considered...
`)
Enter-tainer commented 3 months ago

This has landed in mitex v0.2.2