鉴于没有找到latex删除批改语句的教程,本人摸索后实践成功,过程如下。
1.新建文件夹test,复制以下两个文件到该文件夹:
input.tex
pyMergeChanges.py
2.复制文件夹路径
打开cmd,输入cd/d 粘贴路径,回车
本文:
cd/d C:\Users\**\Desktop\test
3.调用文件批量处理批改的地方
调用语句如下:
python pyMergeChanges.py [-arh] <Input File> <Output File>
具体说明如下:
Supported commands: added, deleted, replaced, highlight
Usage: python pyMergeChanges.py [-arh] <Input File> <Output File>
<Output File> will be overwritten and must be different than <Input File>.
Options:
-a: accept all added, deleted and replaced
-r: reject all added, deleted and replaced
-h: remove all highlights
If no option is given, runs interactively.
本文举例,接受所有的修改
输入:
python pyMergeChanges.py -a input.tex output.tex
结果:
Accepting all added, deleted and replaced
4.回到文件夹查看,生成的output.tex文件即为不含批改语句的.tex文件
注:建议把文件复制到桌面的文件夹进行测试,以防止源文件丢失。