# Tylax – A bidirectional LaTeX to Typst converter in Rust

Hi HN, author here. I built Tylax because I wanted to migrate my old LaTeX papers to Typst but found existing regex-based scripts too fragile for nested environments. Tylax parses LaTeX into an AST (using mitex-parser) and converts it to Typst code. It supports: - Full document structure (not just…

- **Page:** https://magpie.gallery/i/tylax-a-bidirectional-latex-to-typst-converter-in-l69c
- **Type:** Link to an idea elsewhere
- **Category:** Utilities
- **Runs on:** web
- **Tags:** latex, typst, converter, rust, wasm

## Source

Web · democat: Tylax – A bidirectional LaTeX to Typst converter in Rust

- **Original:** https://news.ycombinator.com/item?id=46527638

> Hi HN, author here. I built Tylax because I wanted to migrate my old LaTeX papers to Typst but found existing regex-based scripts too fragile for nested environments. Tylax parses LaTeX into an AST (using mitex-parser) and converts it to Typst code. It supports: - Full document structure (not just math snippets) - Complex math (matrices, integrals) - Experimental TikZ -> CeTZ graphics conversion - Runs in browser via WASM Repo: https://github.com/scipenai/tylax Web Demo: https://convert.silkyai.cn/ Happy to answer any questions! https://github.com/scipenai/tylax

## GitHub projects

- https://github.com/scipenai/tylax

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
