main
HuangHai 2 weeks ago
parent 120164435d
commit 17565e8a03

@ -78,10 +78,11 @@ async def main():
)
"""
修正一下MinerU生成的Latex中如果是数字加圆圈的样式 \textcircled{1}无法在Typora或者PyCharm中显示的问题,改成兼容性更强的 \enclose{circle}{1}
修正一下MinerU生成的Latex中如果是数字加圆圈的样式 \textcircled{1}
无法在Typora或者PyCharm中显示的问题,改成兼容性更强的 \enclose{circle}{1}
"""
path = r'../output/《动能定理》巩固练习/auto'
finalName = path + r'/《动能定理》巩固练习.md'
path = r'../output/' + fileName + '/auto'
finalName = path + r'/' + fileName + '.md'
with open(finalName, 'r', encoding='utf-8') as f:
content = f.read()
content = content.replace(r'\textcircled', r'\enclose{circle}')

Loading…
Cancel
Save