Home

Awesome

MathTranslate

<p align="center"> <!-- PyPI --> <a href="https://pypi.org/project/mathtranslate/"> <img src="https://img.shields.io/pypi/v/mathtranslate.svg?logo=pypi"/> </a> <!-- License --> <a href="./LICENSE"> <img src="https://img.shields.io/badge/license-Apache%202.0-yellow.svg?logo=apache"/> </a> <!-- GUI --> <a href="https://github.com/SUSYUSTC/MathTranslate/releases"> <img src="https://img.shields.io/badge/GUI-v3.1.0-red.svg?logo=appsignal"/> </a> <!-- WebServer --> <a href="http://mathtranslate.xyz"> <img src="https://img.shields.io/badge/Webserver-v3.1.0-8A2BE2.svg?logo=semanticweb"/> </a> </p> <p align="center"> <a href="https://github.com/SUSYUSTC/MathTranslate"> <img width=30% src="logo.jpg"> </a> </p> <p align="center"> <a href="http://mathtranslate.xyz"> Online translation website </a></p>

This is a project to translate LaTeX documents, especially scientific papers, from any language to any language. LaTeX expressions like math expressions are perfectly kept unchanged. LaTeX documents can finally be compiled into PDF files. Especially it can be directly applied to translate arXiv papers since it provides the LaTeX source code of most of the papers.

Here is an example:

<p float="left"> <img src="https://user-images.githubusercontent.com/30529122/227698548-1cc19f7c-00e7-4312-9d58-2a7237656b51.png" width="700"> </p> <p float="left"> <img src="https://github.com/SUSYUSTC/MathTranslate/blob/main/example/screenshot.png" width="300"> <img src="https://github.com/SUSYUSTC/MathTranslate/blob/main/example/translated.png" width="400"> </p>

💡 Quickstart

If you want to translate an arXiv paper you can directly use our tool, which provide an interface of taking arXiv number as input. Otherwise you can use mathpix to generate the LaTeX code from pdf and then use our tool to translate. However, we want to remind that mathpix is not totally free software.

There are two main ways to use our tool:

  1. 📄 Web Server (recommended for beginners, use the google translation backend)
  2. 🏗️ Command-line usage: English version 中文版 (for advanced usage)

💰 Donation

If you think this project is helping you a lot, you can support us by the Wechat QR code below. 如果您觉得本软件对您非常有帮助,可以通过下面的二维码向我们捐赠

<p align="center"> <img width=30% src="https://github.com/SUSYUSTC/MathTranslate/assets/30529122/16f82637-e102-4330-82ad-bbcbdad1c19d"> </p>

🌟 Contibutions and Stars

<picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=SUSYUSTC/MathTranslate&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=SUSYUSTC/MathTranslate&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=SUSYUSTC/MathTranslate&type=Date" /> </picture>

If you have any questions or have interests in making contributions, please contact me by susyustc@gmail.com or joining QQ group 288646946.