https://github.com/roniemartinez/latex2mathml
Pure Python library for LaTeX to MathML conversion
https://github.com/roniemartinez/latex2mathml
latex mathml python python3
Last synced: 6 months ago
JSON representation
Pure Python library for LaTeX to MathML conversion
- Host: GitHub
- URL: https://github.com/roniemartinez/latex2mathml
- Owner: roniemartinez
- License: mit
- Created: 2016-01-05T12:51:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2025-03-12T08:52:00.000Z (8 months ago)
- Last Synced: 2025-04-14T05:18:58.107Z (6 months ago)
- Topics: latex, mathml, python, python3
- Language: Python
- Homepage:
- Size: 1.43 MB
- Stars: 205
- Watchers: 6
- Forks: 26
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
License
Version
Github Actions
Coverage
Supported versions
Wheel
Status
Downloads
All Contributors
# latex2mathml
Pure Python library for LaTeX to MathML conversion
## Installation
```bash
pip install latex2mathml
```
## Usage
### Python
```python
import latex2mathml.converter
latex_input = ""
mathml_output = latex2mathml.converter.convert(latex_input)
```
### Command-line
```shell
% latex2mathml -h
usage: latex2mathml [-h] [-V] [-b] [-t TEXT | -f FILE | -s]
Pure Python library for LaTeX to MathML conversion
options:
-h, --help show this help message and exit
-V, --version Show version
-b, --block Display block
required arguments:
-t TEXT, --text TEXT Text
-f FILE, --file FILE File
-s, --stdin Stdin
```
## References
### LaTeX
- https://en.wikibooks.org/wiki/LaTeX/Mathematics
- http://artofproblemsolving.com/wiki/index.php?title=Main_Page
- http://milde.users.sourceforge.net/LUCR/Math/
- https://math-linux.com/latex-26/faq/latex-faq/article/latex-derivatives-limits-sums-products-and-integrals
- https://www.tutorialspoint.com/tex_commands
- https://www.giss.nasa.gov/tools/latex/ltx-86.html
- https://ftp.gwdg.de/pub/ctan/info/l2tabu/english/l2tabuen.pdf
### MathML
- http://www.xmlmind.com/tutorials/MathML/
## Author
- [Ronie Martinez](mailto:ronmarti18@gmail.com)
## Contributors β¨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

Ronie Martinez
π§ π» π

askender
π

06180339
π»

chaihahaha
π»

HQY
π

ιΈζ’¨
π

oliverstefanov
π

Deleted user
π

Cesaryuan
π

TonyStank
π

Dirk Winkel
π

sinslu
π

Nikola UbaviΔ
π

abhisheksia
π

Denis Salem
π π»

Steven Clontz
π

η©Ίη½
π

MURAMATSU Atshshi
π

leingang
π

Nigel Amers
π

retsyo
π

Mia Kramer
π» π

Nguyα»
n Gia Phong
π π» β οΈ

Collin Delker
π

jiotv321
π

Felix Yan
π»

Rob Blackbourn
π»
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!