【问题标题】:Read MathType object, convert MathType object to image读取 MathType 对象,将 MathType 对象转换为图像
【发布时间】:2018-08-03 20:02:44
【问题描述】:

我有一个 docx 文件,其中包含由 mattype 创建的数学公式。 有没有办法使用 java、poi 读取其内容? 或者将所有由 mathtype 创建的公式转换为图像?

下面的示例文档:

【问题讨论】:

  • 如果您可以提供一个包含MathType 公式的示例*.docx 文件以供在某处下载,这将对帮助者有所帮助。我相信了解apache poi 的可能帮助者的数量将大于了解apache poi 安装MathType 的可能帮助者的数量。你不这么认为吗?

标签: java apache-poi docx mathtype


【解决方案1】:

word中的MathType方程由wmf和ole bin组成。您可以获取 wmf 并将其转换为光栅格式 png\jpg 等。

【讨论】:

    【解决方案2】:

    我参与了这个项目(基于 XProc/XSLT/XML): http://transpect.github.io/modules-docx2tex.html

    我不确定单次转换是否值得花时间设置。
    如果你想经常这样做,那绝对是。

    一旦你有了 tex,你就可以从这些来源生成图像。

    如果你真的只想要方程式,那么看看这些单个 transpect 模块:
    mathtype2mml:https://github.com/transpect/mathtype-extension/
    mml2tex: https://github.com/transpect/mml2tex

    【讨论】:

      猜你喜欢
      • 2014-01-03
      • 1970-01-01
      • 2018-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-04
      相关资源
      最近更新 更多