真是慘,幫同學改論文,發現因版本不兼容,公式全部轉為圖片了,需要將公式的圖片轉為 word 公式:
-
先使用
mathpix
將圖片轉為 latex。
mathpix
軟件下載地址:https://mathpix.com/
mathpix
的使用是ctrl+alt+m
。 -
再將latex 轉為 word 公式。
這個可以有兩種方式:
-
采用 LaTex2Word-Equation。
可以將latex 公式代碼復制到 https://www.mathjax.org/#demo,再轉為 word 公式:
-
采用瀏覽器將 latex 轉換為 mathML 代碼,然后復制到 word 文檔后,粘貼“只保留文本”。。
需要一個本地文件 example.html:
<!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 代碼貼到 $$
中。
用瀏覽器打開文件:
復制 mathML 代碼,到 word 文檔粘貼“只保留文本”。