Skip to main content

Open source Python library converting math formula to docx

Project description

Star History Chart

math2docx

Open source Python library converting math formula to docx

How to install?

pip install math2docx

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

math2docx-3.0.0-py3-none-any.whl (2.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: math2docx-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for math2docx-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dbd50ed60c3aa4fd210f7e170d14fa2fa2363eca3cf11dccdeab868c1f0b93af
MD5 c40d5221703b551b9a02e44dd2155e63
BLAKE2b-256 085c25ec50c60e27369ce6f8243df3e807e24f2e9bd968b00eee7d0d05c603af

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