Description
MiTeX brings LaTeX math and text to Typst. It is written in Rust and compiled to WebAssembly. It parses LaTeX code into an abstract syntax tree, transforms that tree into Typst code and evaluates it as Typst content. The README says it has converted 32.5k equations from the OI Wiki, and that on that project it displayed better and performed better than texmath. It is also small: the README gives a size of about 185 KB, compared with 17 MB for texmath. In its timing example, texmath took about 109 seconds for those equations, the WebAssembly build of MiTeX about 2.28 seconds and the native x86 build about 0.085 seconds. Using it in Typst needs one import line. In a Typst document, mi renders an inline equation, mitex or mimath renders a block equation, and mitext renders LaTeX text. The mitex-convert function turns LaTeX into Typst code as a string.…
Highlights
- LaTeX math and text inside Typst
- Rust core compiled to WebAssembly
- About 185 KB, versus 17 MB for texmath
- CLI and an online converter
- Converts LaTeX to Typst code
Ratings & Reviews
No ratings yet
Be the first to rate Mitex.
People also visit
Mitex FAQ
What is MiTeX?
LaTeX support for Typst, written in Rust and compiled to WebAssembly, so Typst documents can use LaTeX math and text.
How do I use it in Typst?
Import the package, then use mi for inline equations, mitex or mimath for block equations, and mitext for LaTeX text.
Can I convert code without Typst?
Yes. The CLI and the mitex-convert function turn LaTeX code into Typst code as a string.
How does it compare with texmath?
The README says it is much smaller, about 185 KB versus 17 MB, and faster in its OI Wiki conversion example.
Where is the source?
The project is public on GitHub at mitex-rs/mitex.
What are the best Mitex alternatives?
Popular alternatives to Mitex include Text to LaTeX, Mathpix and Octree. See all Mitex alternatives






