插入MATHML,纺织品或乳胶公式在MS Word .docs? [英] Inserting MathMl , Tex or LaTex equation in MS word .docs?

查看:620
本文介绍了插入MATHML,纺织品或乳胶公式在MS Word .docs?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找一些DLL对于.NET在C#中的MS Word中插入任何MATHML,纺织品或乳胶方程式,我尝试了一些像DOCX,但他们失败了,你知道否?或任何暗示怎样的呢?谢谢

I've been looking for some dll for .Net in C# for inserting any of MathMl , Tex or LaTex equations in MS Word, I tried some like DocX but they failed, do you know any? or any hint how to it? thanks

推荐答案

字(2007+)可以接受MATHML关闭剪贴板。在Windows 7数学输入面板为例,其插入按钮,简单地把生成的MATHML剪贴板上,然后发送一个模拟的控制-V键事件到下一个活动的应用程序,希望插入MATHML在当前点。

Word (2007+) can accept MathML off the clipboard. The Windows 7 Math Input Panel for example, on its "insert" button simply puts the generated MathML on the clipboard and then sends a simulated control-v key event to the next active application which hopefully inserts the mathml at the current point.

在内部Word 2007中通过运行MathML的XSLT样式表生成OOML标记它然后插入,使数学区域中的docx文件来实现的。

Internally Word 2007 does this by running an XSLT stylesheet of the MathML to generate OOML markup which it then inserts to make a math zone in the docx file.

样式表通常是作为像

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

所以另一种方法,让你更多的控制是可以直接使用.NET XSLT处理器来转换MATHML到OMML然后在OOXML XML文件或通过办公室的API ooMML添加到文档的内容的XML。

so an alternative approach which gives you more control is to use the .NET XSLT processor to transform the MathML to OMML and then either directly in the ooxml xml files or via the office API add the ooMML to the document's content xml.

这篇关于插入MATHML,纺织品或乳胶公式在MS Word .docs?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆