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 year ago • 2 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

Just found out that the official Typst web editor platform provides a best-effort LaTeX code to Typst code converter.

Screenshot 2024-05-18 at 5 20 29 PM

davidleejy avatar May 18 '24 09:05 davidleejy

You can use mitex as a cli as well

Enivex avatar Jun 07 '24 10:06 Enivex