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 Distribution

math2docx-3.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

math2docx-3.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: math2docx-3.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for math2docx-3.1.0.tar.gz
Algorithm Hash digest
SHA256 eff26404ec69c647d6db4d3364bb51231b90f6b940c897aaf9952e3e826ed271
MD5 5d5ffb9890eab8cbc501ef3cb679bc43
BLAKE2b-256 f81ec965e1cc17a4226e05c4e0ea31d7e9df0d98897ddaeb8152850b775618db

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for math2docx-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd6743a4d7d56c113c149e162c7ed49ed16635bcf18ed12342de5050a9daee90
MD5 0638153004354a6ca932beefb40a5d60
BLAKE2b-256 3f3f14ba6efc34d172427568dad0c830c4deab58789b94738c66854d3a9101ed

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