\(\LaTeX{}\)MT is a tool for machine translation of \(\LaTeX{}\) documents that preserves document structure and formatting while translating the content.
LaTeXMT is open-source software released under the LGPL-3.0 license. The complete source code, documentation, and examples are available on GitHub:
View on GitHubFor more details about the methodology and evaluation, please refer to our paper:
\(\LaTeX{}\)MT: Machine Translation for \(\LaTeX{}\) Documents
Calvin Hoy, Samuel Frontull and Georg Moser
EMNLP 2025 System Demonstrations
@inproceedings{hoy-etal-2025-latexmt,
title = "{L}a{T}e{XMT}: Machine Translation for {L}a{T}e{X} Documents",
author = "Hoy, Calvin and
Frontull, Samuel and
Moser, Georg",
editor = {Habernal, Ivan and
Schulam, Peter and
Tiedemann, J{\"o}rg},
booktitle = "Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
month = nov,
year = "2025",
address = "Suzhou, China",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.emnlp-demos.56/",
doi = "10.18653/v1/2025.emnlp-demos.56",
pages = "739--748",
ISBN = "979-8-89176-334-0",
abstract = "While machine translation has taken great strides in recent years, thanks in large part to transformer language models, machine translation tools are designed primarily for plain text, and thus not equipped to deal with complex markup documents. Not even Large Language Models can reliably handle LaTeX source files, as non-standard structures are not captured by any available training data. Previous attempts to create translation engines for LaTeX either work on compiled documents, rely on document pre-processors which may lose critical semantic elements, or cannot distinguish between text and non-text content. In this paper we present LaTeXMT, a software solution for structure-preserving, source-to-source translation of LaTeX documents. All of the source code to LaTeXMT is provided under the LGPL-3.0 open-source licence and a web version is publicly available."
}