pandoc -s new_doc.tex
--filter pandoc-crossref
--resource-path=.;figure --citeproc --csl ieee.csl
--reference-doc temp.docx
--bibliography=test.bib -M reference-section-title=Reference -M autoEqnLabels -M tableEqns -t docx+native_numbering
--number-sections -o output_1.docx
- 安装对应版本的pandoc 和 pandoc-crossref Anaconda里面自带的pandoc 的版本可能太低,暂时移除,确保调用的版本是一致的
pandoc:https://github.com/jgm/pandoc/releases/tag/3.2
pandoc-crossref: https://github.com/lierdakil/pandoc-crossref figure
是我的figure保存的路径,一定注意图片如果是.pdf或者.esp的形式是不能转化的,可以改成.png 和.jpg
如果涉及单栏双蓝,注意 {*figure}会不能转化,注意把文档里面的 {*figure}调整为{figure}转化后再调整单栏和双栏csl ieee.csl
表示的是参考文献的格式,下载链接https://www.zotero.org/styles?q=ieee,这里我使用的是 ieee.csl- 对于公式,我的探索是
\small
左移空格 以及换成命令\\
都无法转化,注意去掉 temp.docx
表示的是转成word的temp文档,这里我使用的是ieee对用的word模板,地址:https://template-selector.ieee.org/secure/templateSelector/publicationType可以下载到对应期刊的模板- 如果遇到其他的问题可以根据报错去看,我前面都是这样处理的
- 最后运行命令的终端路径放在.tex在的文件夹下。
如果大家还有使用的技巧,欢迎交流。
参考链接:
https://www.cnblogs.com/jiankychen/p/pandoc.html