SUSYUSTC / MathTranslate

translate scientific papers in latex, especially arxiv papers
https://github.com/SUSYUSTC/MathTranslate
Apache License 2.0
1.04k stars 69 forks source link

skip \inpu{xx.tex} in case of file non-existence #74

Closed rotcx closed 9 months ago

rotcx commented 9 months ago
        # assert os.path.exists(filename) 
        if not os.path.exists(filename): 
            # 从内容中移除对应的 \input 命令
            content = content[:begin] + content[end:]
            continue

image