Skip to main content

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

Metadata

Release files for math2docx 3.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for math2docx 3.1.0
File Size Uploaded
math2docx-3.1.0.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for math2docx 3.1.0
File Interpreter ABI Platform
math2docx-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.2 kB

Release files / math2docx-3.1.0.tar.gz

Download URL math2docx-3.1.0.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
eff26404ec69c647d6db4d3364bb51231b90f6b940c897aaf9952e3e826ed271
BLAKE2b-256 checksum
How to use checksums
f81ec965e1cc17a4226e05c4e0ea31d7e9df0d98897ddaeb8152850b775618db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release files / math2docx-3.1.0-py3-none-any.whl

Download URL math2docx-3.1.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd6743a4d7d56c113c149e162c7ed49ed16635bcf18ed12342de5050a9daee90
BLAKE2b-256 checksum
How to use checksums
3f3f14ba6efc34d172427568dad0c830c4deab58789b94738c66854d3a9101ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.22

Release history Release notifications | RSS feed

This release

3.1.0 This release

2 release files

3.0.0

1 release file

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0

2 release files

1.0

2 release files

0.1

1 release file

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page