Pure Python library for LaTeX to MathML conversion
Project Links
Meta
Author: Ronie Martinez
Requires Python: >=3.10
Classifiers
Development Status
- 5 - Production/Stable
License
- OSI Approved :: MIT License
Programming Language
- Python :: 3
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- Python :: Implementation :: CPython
Topic
- Scientific/Engineering :: Mathematics
- Software Development :: Libraries :: Python Modules
- Text Processing :: Markup :: HTML
- Text Processing :: Markup :: LaTeX
| License | Version | ||
| Github Actions | Coverage | ||
| Supported versions | Wheel | ||
| Status | Downloads | ||
| All Contributors |
latex2mathml
Pure Python library for LaTeX to MathML conversion
Installation
pip install latex2mathml
Usage
Python
import latex2mathml.converter
latex_input = "<your_latex_string>"
mathml_output = latex2mathml.converter.convert(latex_input)
Command-line
% 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
Author
Contributors β¨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
3.79.0
Mar 12, 2026
3.78.1
Aug 29, 2025
3.78.0
May 03, 2025
3.77.0
Dec 06, 2023
3.76.0
May 21, 2023
3.75.5
May 07, 2023
3.75.4
May 06, 2023
3.75.3
Apr 25, 2023
3.75.2
Mar 31, 2023
3.75.1
Dec 15, 2022
3.75.0
Dec 14, 2022
3.74.1
Sep 11, 2022
3.74.0
Jul 18, 2022
3.73.1
Apr 10, 2022
3.73.0
Apr 10, 2022
3.72.0
Apr 10, 2022
3.71.0
Apr 09, 2022
3.70.0
Apr 09, 2022
3.69.0
Apr 09, 2022
3.68.0
Apr 08, 2022
3.67.0
Apr 08, 2022
3.66.2
Apr 08, 2022
3.66.1
Apr 07, 2022
3.66.0
Apr 06, 2022
3.65.0
Mar 19, 2022
3.64.0
Feb 13, 2022
3.63.3
Jan 04, 2022
3.63.2
Nov 01, 2021
3.63.1
Oct 31, 2021
3.63.0
Oct 23, 2021
3.62.0
Oct 23, 2021
3.61.0
Jun 29, 2021
3.60.0
Jun 24, 2021
3.59.0
Jun 24, 2021
3.58.0
Jun 23, 2021
3.57.0
Jun 23, 2021
3.56.0
Jun 22, 2021
3.55.0
Jun 21, 2021
3.54.0
Jun 20, 2021
3.53.0
Jun 20, 2021
3.52.0
Jun 19, 2021
3.51.1
Jun 19, 2021
3.51.0
Jun 19, 2021
3.50.0
Jun 18, 2021
3.49.1
Jun 17, 2021
3.49.0
Jun 15, 2021
3.48.0
Jun 15, 2021
3.47.0
Jun 13, 2021
3.46.0
Jun 13, 2021
3.45.1
Jun 13, 2021
3.45.0
Jun 12, 2021
3.44.0
Jun 12, 2021
3.43.0
Jun 12, 2021
3.42.0
Jun 12, 2021
3.41.0
Jun 12, 2021
3.40.1
Jun 12, 2021
3.40.0
Jun 12, 2021
3.39.0
Jun 12, 2021
3.38.0
Jun 12, 2021
3.37.1
Jun 12, 2021
3.37.0
Jun 12, 2021
3.36.0
Jun 12, 2021
3.35.0
Jun 12, 2021
3.34.0
Jun 11, 2021
3.33.0
Jun 11, 2021
3.32.0
Jun 11, 2021
3.31.0
Jun 11, 2021
3.30.1
Jun 11, 2021
3.30.0
Jun 11, 2021
3.29.0
Jun 10, 2021
3.28.0
Jun 08, 2021
3.27.1
Jun 08, 2021
3.27.0
Jun 08, 2021
3.26.0
Jun 08, 2021
3.25.0
Jun 07, 2021
3.24.0
Jun 07, 2021
3.23.0
Jun 07, 2021
3.22.0
Jun 07, 2021
3.21.0
Jun 07, 2021
3.20.0
Jun 07, 2021
3.19.0
Jun 07, 2021
3.18.0
Jun 06, 2021
3.17.1
Jun 06, 2021
3.17.0
Jun 06, 2021
3.16.0
Jun 06, 2021
3.15.0
Jun 06, 2021
3.14.0
Jun 06, 2021
3.13.0
Jun 05, 2021
3.12.0
Jun 05, 2021
3.11.0
Jun 05, 2021
3.10.0
Jun 05, 2021
3.9.0
Jun 05, 2021
3.8.0
Jun 05, 2021
3.7.0
Jun 05, 2021
3.6.2
Jun 03, 2021
3.6.1
Jun 03, 2021
3.6.0
Jun 02, 2021
3.5.3
Jun 02, 2021
3.5.2
Jun 01, 2021
3.5.1
May 30, 2021
3.5.0
May 30, 2021
3.4.1
May 30, 2021
3.4.0
May 29, 2021
3.3.0
May 29, 2021
3.2.0
May 29, 2021
3.1.0
May 29, 2021
3.0.0
May 26, 2021
2.18.5
May 16, 2021
2.18.4
May 16, 2021
2.18.3
May 16, 2021
2.18.2
May 16, 2021
2.18.1
May 16, 2021
2.18.0
May 09, 2021
2.17.2
May 02, 2021
2.17.1
May 02, 2021
2.17.0
May 02, 2021
2.16.5
Mar 20, 2021
2.16.4
Mar 20, 2021
2.16.3
Feb 02, 2021
2.16.2
Nov 28, 2020
2.16.1
Sep 27, 2020
2.16.0
Aug 30, 2020
2.15.0
Aug 30, 2020
2.14.3
Jul 11, 2020
2.14.2
Jul 05, 2020
2.14.1
Jun 27, 2020
2.14.0
May 12, 2020
2.13.0
Apr 27, 2020
2.12.0
Apr 19, 2020
2.11.0
Apr 19, 2020
2.10.2
Apr 19, 2020
2.10.1
Apr 18, 2020
2.10.0
Apr 17, 2020
2.9.0
Mar 22, 2020
2.8.11
Mar 15, 2020
2.8.9
Mar 14, 2020
2.8.8
Mar 14, 2020
2.8.7
Mar 14, 2020
2.8.6
Mar 13, 2020
2.8.5
Mar 10, 2020
2.8.4
Mar 08, 2020
2.8.3
Mar 08, 2020
2.8.2
Mar 06, 2020
2.8.1
Mar 06, 2020
2.8.0
Nov 23, 2019
2.7.1
Aug 23, 2019
2.7.0
Jun 05, 2019
2.6.7
Apr 03, 2019
2.6.6
Mar 23, 2019
2.6.5
Mar 23, 2019
2.6.4
Feb 10, 2019
2.6.3
Jan 12, 2019
2.6.2
Oct 17, 2018
2.6.1
Oct 13, 2018
2.6.0
Oct 13, 2018
2.5.2
Oct 10, 2018
2.5.1
Oct 10, 2018
2.5.0
Oct 09, 2018
2.4.0
Oct 07, 2018
2.3.0
Oct 07, 2018
2.2.0
Oct 04, 2018
2.1.0
Sep 29, 2018
2.0.3
Sep 29, 2018
2.0.2
Sep 01, 2017
2.0.1
Sep 01, 2017
1.1.1
Jul 21, 2016
1.0.10
Feb 14, 2016
1.0.9
Jan 16, 2016
1.0.8
Jan 10, 2016
1.0.7
Jan 09, 2016
1.0.5
Jan 06, 2016
1.0.4
Jan 06, 2016
1.0.3
Jan 05, 2016
Wheel compatibility matrix
Files in release
No dependencies