latex 公式转为 word 公式

真是惨,帮同窗改论文,发现因版本不兼容,公式所有转为图片了,须要将公式的图片转为 word 公式:javascript

  1. 先使用 mathpix 将图片转为 latex。
    mathpix 软件下载地址:https://mathpix.com/
    mathpix 的使用是 ctrl+alt+mhtml

  2. 再将latex 转为 word 公式。
    这个能够有两种方式:
<!DOCTYPE html>

<html>

<head>

<script type="text/javascript"

  src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">

</script>

<title>tex texample</title>

</head>

<body>

$$

\mathbf{C}_{i, j}=\left\{\begin{array}{ll}{\left(\mathbf{T}_{i, j}+\mathbf{T}_{M, N}+\mathbf{Q}_{i, j}\right) \bmod F,} & {\text { if } i=1, j=1} \\ {\left(\mathbf{T}_{i, j}+\mathbf{C}_{M, j-1}+\mathbf{Q}_{i, j}\right) \bmod F,} & {\text { if } i=1, j \neq 1} \\ {\left(\mathbf{T}_{i, j}+\mathbf{C}_{i-1, j}+\mathbf{Q}_{i, j}\right) \bmod F,} & {\text { if } i \neq 1}\end{array}\right.

$$

</body>

把须要转换的 latex 代码贴到 $$ 中。git

用浏览器打开文件:
github

复制 mathML 代码,到 word 文档粘贴“只保留文本”。浏览器

参考:https://www.douban.com/note/648629593/code

相关文章
相关标签/搜索