插入MATHML,纺织品或乳胶公式在MS Word .docs?乳胶、公式、纺织品、MATHML

由网友(倾国倾城未倾心)分享简介:我一直在寻找一些DLL对于.NET在C#中的MS Word中插入任何MATHML,纺织品或乳胶方程式,我尝试了一些像DOCX,但他们失败了,你知道否?或任何暗示怎样的呢?谢谢I've been looking for some dll for .Net in C# for inserting any of Math...

我一直在寻找一些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.

阅读全文

相关推荐

最新文章