Giter Site home page Giter Site logo

addformula2docx's Introduction

AddFormula2DOCX

Add Any Formula to DOCX (LaTex/MathML)

向docx添加任意类型的公式(包括LaTeX和MathML)

Installation 安装

just copy the file "addFormula2Word.py", run

只需下载上面的文件即可

Usage 使用

Please download the file and read the document 请下载文件并详细阅读

doc = Document()
para1 = doc.add_paragraph("Text ... Text")
transform = getTransform("MML2OMML.XSL")
para2 = doc.add_paragraph()

addEq2Word(transform, mathml_string, "mathml", para1)
addEq2Word(transform, mathml_string, "mathml", para2, "non-in-line")
addEq2Word(transform, mathml_string, "mathml", doc.add_paragraph(), "non-in-line")

Start 安装依赖

pip install latex2mathml

Reference 参考

docx

Microsoft Office(MathML2OMML.XSL)

License 许可证

MIT License

addformula2docx's People

Contributors

sun-zhenxing avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.