Metadata-Version: 2.1
Name: math2docx
Version: 2.0.3
Summary: Open source Python library converting math formula to docx
Home-page: https://github.com/keh9mark/math2docx
Author: Nikolay Markov
Author-email: keh9mark@yandex.ru
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: latex2mathml
Requires-Dist: mathml2omml
Requires-Dist: python-docx

# math2docx
Open source Python library converting math formula to docx

## How to install?
```bash
pip install math2docx==2.0.2
```
## 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)





