mitex icon indicating copy to clipboard operation
mitex copied to clipboard

Convenient Way to Convert all #mitex(...) and #mi("...") Excerpts in a Typst file to Typst Math?

Open davidleejy opened this issue 1 month ago • 0 comments

Does anyone think it'd be neat to have a script that converts #mitex(...) and #mi("...") excerpts in a Typst file to their Typst math equivalents?

In pseudocode, a script like that might perform the following steps:

  1. Given a Typst file as input, traverse its content.
  2. During traversal, if a #mitex(...) and #mi("...") string were encountered, use "mitex-convert" to convert into Typst math.
  3. Replace string with newly obtained Typst math string.
  4. Repeat steps 2 and 3 until end of document is reached.

davidleejy avatar May 17 '24 20:05 davidleejy