M
MercyNews
HomeCategoriesTrendingAbout
M
MercyNews

Your trusted source for the latest news and real-time updates from around the world.

Categories

  • Technology
  • Business
  • Science
  • Politics
  • Sports

Company

  • About Us
  • Our Methodology
  • FAQ
  • Contact
  • Privacy Policy
  • Terms of Service
  • DMCA / Copyright

Stay Updated

Subscribe to our newsletter for daily news updates.

Mercy News aggregates and AI-enhances content from publicly available sources. We link to and credit original sources. We do not claim ownership of third-party content.

© 2025 Mercy News. All rights reserved.

PrivacyTermsCookiesDMCA
Home
Technology
Tylax: New Rust-Based Tool Converts LaTeX to Typst
Technology

Tylax: New Rust-Based Tool Converts LaTeX to Typst

January 7, 2026•5 min read•843 words
Tylax: New Rust-Based Tool Converts LaTeX to Typst
Tylax: New Rust-Based Tool Converts LaTeX to Typst
📋

Key Facts

  • ✓ Tylax parses LaTeX into an AST using mitex-parser.
  • ✓ It supports full document structure, complex math, and experimental TikZ to CeTZ conversion.
  • ✓ The tool runs in the browser via WASM.
  • ✓ It is written in Rust.

In This Article

  1. Quick Summary
  2. The Need for Robust Conversion
  3. Core Capabilities
  4. Availability and Access

Quick Summary#

A new tool named Tylax has been developed to convert documents from LaTeX to Typst. The author created this solution because existing regex-based scripts were too fragile, particularly when dealing with nested environments.

Tylax operates by parsing LaTeX into an Abstract Syntax Tree (AST) using mitex-parser, which ensures a more robust conversion process. It supports the full document structure, complex mathematical formulas, and includes experimental support for converting TikZ graphics to CeTZ. The tool is written in Rust and runs directly in the browser via WASM, offering a web-based demo for immediate use.

The Need for Robust Conversion#

Converting documents between different typesetting systems has historically been a challenge. The author of Tylax identified a specific gap in existing tools while attempting to migrate personal papers from LaTeX to Typst.

Previous solutions often relied on regular expressions (regex) to parse and convert code. While effective for simple cases, these scripts frequently failed when encountering complex, nested structures common in technical documents. This fragility prompted the development of a more structural approach.

By utilizing a proper parser to build an AST, Tylax can understand the hierarchy and context of the source code. This allows for accurate conversion of complex elements that would otherwise break simpler scripts.

Core Capabilities#

Tylax offers a comprehensive set of features designed to handle the complexities of academic and technical documents. It goes beyond simple math snippets to support the full document structure.

Key capabilities include:

  • Full Document Structure: It processes complete documents, not just isolated equations.
  • Complex Math Support: It handles advanced mathematical notation, such as matrices and integrals.
  • Graphics Conversion: It includes experimental support for converting TikZ graphics to CeTZ.

The tool is built using the Rust programming language, known for its performance and safety. Furthermore, it runs entirely in the browser via WebAssembly (WASM), allowing users to convert documents locally without needing a backend server.

Availability and Access#

The project is open source and publicly available. The source code has been published to a repository hosted on GitHub, allowing developers to inspect the code, contribute, or run the tool locally.

For users who wish to test the functionality immediately, a live web demo is hosted at convert.silkyai.cn. This web interface allows users to paste LaTeX code and see the resulting Typst output in real-time.

The author has also invited the community to ask questions regarding the project, indicating an active interest in feedback and user engagement.

Original Source

Hacker News

Originally published

January 7, 2026 at 03:40 PM

This article has been processed by AI for improved clarity, translation, and readability. We always link to and credit the original source.

View original article

Share

Advertisement

Related Articles

AI Transforms Mathematical Research and Proofstechnology

AI Transforms Mathematical Research and Proofs

Artificial intelligence is shifting from a promise to a reality in mathematics. Machine learning models are now generating original theorems, forcing a reevaluation of research and teaching methods.

May 1·4 min read
Huw Edwards Scandal to Become TV Drama on Paramount Network 5entertainment

Huw Edwards Scandal to Become TV Drama on Paramount Network 5

The scandal involving former BBC anchor Huw Edwards is being adapted into a TV drama titled 'Power: The Downfall of Huw Edwards' for Network 5.

Jan 7·3 min read
Apple iPhone Software Updates 2026: iOS 26 and iOS 27 Timelinetechnology

Apple iPhone Software Updates 2026: iOS 26 and iOS 27 Timeline

Apple is set to release a consistent stream of new iPhone software updates this year. There are major changes still to come with iOS 26, as well as iOS 27 coming at WWDC in June.

Jan 7·3 min read
Anthropic Secures $10 Billion Funding at $350 Billion Valuationtechnology

Anthropic Secures $10 Billion Funding at $350 Billion Valuation

Coatue and Singapore's sovereign wealth fund GIC are leading the financing for Anthropic's $10 billion funding round at a $350 billion valuation.

Jan 7·3 min read