如何通过C#将Word文档的数学转换为openxml中的MathML [英] How to convert mathequations of Word Document to MathML in openxml by C#
本文介绍了如何通过C#将Word文档的数学转换为openxml中的MathML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Word文档中,我有一些数学方程,比如a + b = c
现在我需要在C#中使用openxml来获取它的数学。
In Word document i have some math equations like a+b=c
Now i need its mathml by using openxml in C#.
推荐答案
首先,您需要了解这两种格式。维基百科至少为您提供了一个起点和参考资料,供您进一步阅读。
Wikipedia MathML [< a href =http://en.wikipedia.org/wiki/MathMLtarget =_ blanktitle =New Window> ^ ]
Wikipedia OpenMath [ ^ ]
您可以使用XSLT将一种XML结构转换为另一种XML结构。
XSLT教程 [ ^ ]
MSDN是一个很好的信息来源,这里是如何使用OpenXML的链接:
欢迎使用适用于Microsoft Office的Open XML SDK 2.0 [ ^ ]
Codeproject当然是另一个很好的信息来源。
使用OpenXML从中创建Word文档现有的docx文件 [ ^ ]
不要害怕。使用你的大脑和搜索引擎。
First you need to understand the two formats. Wikipedia at least gives you a starting point and references for further reading.
Wikipedia MathML[^]
Wikipedia OpenMath[^]
You can use XSLT to convert one XML structure to another.
XSLT Tutorial[^]
MSDN is a good source of information, here is link for how to use OpenXML:
Welcome to the Open XML SDK 2.0 for Microsoft Office[^]
Codeproject is of course another good source of information.
Use OpenXML to Create a Word Document from an Existing docx File[^]
Don't be afraid. Use your brain and a search engine.
这篇关于如何通过C#将Word文档的数学转换为openxml中的MathML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文