Skip to main content

Open source Python library converting math formula to docx

Project description

math2docx

Open source Python library converting math formula to docx

How to install?

pip install math2docx==2.0.2

Example

import math2docx
from docx import Document

document = Document()
p = document.add_paragraph()

#LaTex Math Formula
latex_ = r"\cos (2\theta) = \cos^2 \theta - \sin^2 \theta"

math2docx.add_math(p, latex_ )
document.save("new_file.docx")

About of LaTex Math Formula Format

Results

enter image description here

Project details


Download files

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

Source Distribution

math2docx-2.0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

math2docx-2.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file math2docx-2.0.3.tar.gz.

File metadata

  • Download URL: math2docx-2.0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for math2docx-2.0.3.tar.gz
Algorithm Hash digest
SHA256 2ccc5f3e5e0d0a516c78d29ba0dd02d5098a45cd2e57e507f853fa4a22f42381
MD5 dc5d86b31a57fefb5e919a94d42723d4
BLAKE2b-256 21bd9bbbe76eeaafedc04fac8b98d0b0faa4d4d7672e707ee9edf4413180a779

See more details on using hashes here.

File details

Details for the file math2docx-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: math2docx-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for math2docx-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8022e04c296bc62c39fa1ae904cea31c8eb607ed74170423864bffdf50e2b5c7
MD5 c0ddc26162c00c27dd23e28d45dbb31d
BLAKE2b-256 4cc33e9d9262875a69070a7d167337c383b7cde01ec48584d986e81fbce2b8c1

See more details on using hashes here.

Supported by

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