Metadata-Version: 2.4
Name: math2docx
Version: 3.1.0
Summary: Open source Python library converting math formula to docx
Project-URL: Homepage, https://github.com/keh9mark/math2docx
Project-URL: Repository, https://github.com/keh9mark/math2docx.git
Project-URL: Issues, https://github.com/keh9mark/math2docx/issues
Author-email: Николай М <keh9mark@yandex.ru>
License-File: LICENSE
Keywords: docx,formula,math
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: latex2mathml>=3.79.0
Requires-Dist: mathml2omml-as>=0.1.0
Requires-Dist: python-docx>=1.2.0
Description-Content-Type: text/markdown

[![Star History Chart](https://api.star-history.com/svg?repos=keh9mark/math2docx&type=Date)](https://star-history.com/#keh9mark/math2docx&Date)

# math2docx
Open source Python library converting math formula to docx

## How to install?
```bash
pip install math2docx
```
## Example
```bash
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](https://ru.wikibooks.org/wiki/%D0%9C%D0%B0%D1%82%D0%B5%D0%BC%D0%B0%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B5_%D1%84%D0%BE%D1%80%D0%BC%D1%83%D0%BB%D1%8B_%D0%B2_LaTeX)

## Results
![enter image description here](https://i.ibb.co/LzZRCBh/img1.png)





