Insert MathMl, Tex or LaTex equations into MS word.docs?

I was looking for some dll for .Net in C # to insert any MathMl, Tex or LaTex equations in MS Word, I tried ones like DocX, but they failed, did you know? or any hint of it? thanks

+4
source share
1 answer

Word (2007+) can accept MathML from the clipboard. For example, the Windows 7 Math input panel, for example, on its β€œpaste”, simply puts the generated MathML on the clipboard and then sends the simulated control key event v to the next active application, which we hope will paste the math at the current point.

Internally Word 2007 does this by running the XSLT MathML stylesheet to create OOML markup, which it then inserts to create the math zone in the docx file.

A stylesheet is usually set as something like

/Program Files/Microsoft Office/Office12/OMML2MML.XSL 

so an alternative approach that gives you more control is to use the .NET XSLT processor to convert MathML to OMML, and then either directly into the xml ooxml files or through the Office API add ooMML to the contents of the xml document.

+5
source

Source: https://habr.com/ru/post/1200850/


All Articles