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
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
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eff26404ec69c647d6db4d3364bb51231b90f6b940c897aaf9952e3e826ed271
|
|
| MD5 |
5d5ffb9890eab8cbc501ef3cb679bc43
|
|
| BLAKE2b-256 |
f81ec965e1cc17a4226e05c4e0ea31d7e9df0d98897ddaeb8152850b775618db
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd6743a4d7d56c113c149e162c7ed49ed16635bcf18ed12342de5050a9daee90
|
|
| MD5 |
0638153004354a6ca932beefb40a5d60
|
|
| BLAKE2b-256 |
3f3f14ba6efc34d172427568dad0c830c4deab58789b94738c66854d3a9101ed
|