Skip to main content

Pure Python library for LaTeX to MathML conversion

Project description

License License Version Version
Github Actions Github Actions Coverage CodeCov
Supported versions Python Versions Wheel Wheel
Status Status Downloads Downloads
All Contributors 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

MathML

Author

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Ronie Martinez
Ronie Martinez

🚧 💻 🚇
askender
askender

📖
06180339
06180339

💻
chaihahaha
chaihahaha

💻
HQY
HQY

🐛
鸭梨
鸭梨

🐛
oliverstefanov
oliverstefanov

🐛
Deleted user
Deleted user

🐛
Cesaryuan
Cesaryuan

🐛
TonyStank
TonyStank

🐛
Dirk Winkel
Dirk Winkel

🐛
sinslu
sinslu

🐛
Nikola Ubavić
Nikola Ubavić

🐛
abhisheksia
abhisheksia

🐛
Denis Salem
Denis Salem

🐛 💻
Steven Clontz
Steven Clontz

🐛
空白
空白

🐛
MURAMATSU Atshshi
MURAMATSU Atshshi

🐛
leingang
leingang

🐛
Nigel Amers
Nigel Amers

🐛
retsyo
retsyo

🐛
Mia Kramer
Mia Kramer

💻 📖
Nguyễn Gia Phong
Nguyễn Gia Phong

🐛 💻 ⚠️
Collin Delker
Collin Delker

🐛
jiotv321
jiotv321

🐛
Felix Yan
Felix Yan

💻
Rob Blackbourn
Rob Blackbourn

💻
Danny Elfanbaum
Danny Elfanbaum

💻 ⚠️ 🐛
ccn
ccn

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

latex2mathml-3.81.0.tar.gz (77.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

latex2mathml-3.81.0-py3-none-any.whl (79.2 kB view details)

Uploaded Python 3

File details

Details for the file latex2mathml-3.81.0.tar.gz.

File metadata

  • Download URL: latex2mathml-3.81.0.tar.gz
  • Upload date:
  • Size: 77.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for latex2mathml-3.81.0.tar.gz
Algorithm Hash digest
SHA256 4b959cdc3cac8686bc0e3e5aece8127dfb1b81ca1241bed8e00ef31b82bb4022
MD5 ffcef5a1dbc3e9228e187a8b54775b95
BLAKE2b-256 3b6235bb816c5c19d4d0cde5bdfb82ebb996306243d5f94e03f201658c629960

See more details on using hashes here.

File details

Details for the file latex2mathml-3.81.0-py3-none-any.whl.

File metadata

  • Download URL: latex2mathml-3.81.0-py3-none-any.whl
  • Upload date:
  • Size: 79.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for latex2mathml-3.81.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d317710393fe20579aea39cfe8928fa2ad9b8780896e585326c75e89c1d1d1a4
MD5 d26ed2947d0f2631fa0b45628fe53509
BLAKE2b-256 e8b1c488b530994c4f68e46efa99a4d6ca6741aaf158e35779fe6c4d8a9a427d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page