🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

math2docx

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

math2docx

Open source Python library converting math formula to docx

2.0.3
Maintainers
1

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts