Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
davidleejy opened this issue May 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@davidleejy
Copy link

davidleejy commented May 17, 2024

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
Copy link
Author

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

@Enivex
Copy link

Enivex commented Jun 7, 2024

You can use mitex as a cli as well

@OrangeX4 OrangeX4 added the enhancement New feature or request label Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants