mml2tex (Python)
Python library to convert MathML to LaTeX using the transpect XSLT stylesheets.
Installation
pip install mml2tex
Usage
from mml2tex import mml_to_latex
mathml_input = """<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML">
<mml:mi>A</mml:mi>
<mml:mo>=</mml:mo>
<mml:mi>π</mml:mi>
<mml:msup>
<mml:mrow><mml:mi>r</mml:mi></mml:mrow>
<mml:mrow><mml:mn>2</mml:mn></mml:mrow>
</mml:msup>
</mml:math>"""
latex = mml_to_latex(mathml_input)
print(latex) # A=\pi r^{2}
Metadata
Release files for mml2tex 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mml2tex-0.1.0.tar.gz | 92.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mml2tex-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 191.8 kB
Release files / mml2tex-0.1.0.tar.gz
| Download URL | mml2tex-0.1.0.tar.gz |
|---|---|
| Size | 92.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53964c7dd3c9957f67344a95d6dc42f5032edf60e5efea3c9c37301599b2e6fb
|
|
BLAKE2b-256 checksum How to use checksums |
323f1454a23a40782f289dffb06bd71b0de7537af41a46e783e755ae4aca6f56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.3 Linux/6.14.0-1017-azure
|
Release files / mml2tex-0.1.0-py3-none-any.whl
| Download URL | mml2tex-0.1.0-py3-none-any.whl |
|---|---|
| Size | 99.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
804bd15c371ed6105eeaef4bff00b78771ae2c40aced8200437ea800576aad50
|
|
BLAKE2b-256 checksum How to use checksums |
bd23e74c94d3be4bc860a883beaed1642677ea01bed1db66700c29977228cef3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.3 Linux/6.14.0-1017-azure
|