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

有部分论文无法正常翻译,翻译出的内容很少 #56

Closed Ethan-Chen-plus closed 1 year ago

Ethan-Chen-plus commented 1 year ago

image

2012.07421v3

image

翻译出来只保留了少部分英文,大部分内容都丢失了

image

SUSYUSTC commented 1 year ago

这个是因为 tex 文件中的命令 \input{xxx} 写成了 \input xxx 导致的。因为这个写法不太常见我们这边不打算更新,但你可以通过以下方式手动修正(对于其他的问题也可以类似解决):

  1. 下载 https://arxiv.org/e-print/2012.07421v3
  2. 将后缀改为 .tar 然后解压(有时为.tar.gz,但这个我测试过是.tar)
  3. 将解压后得到的主文件 main.tex 中的 \input xxx 改成 \input{xxx}
  4. 在命令行中 cd 到相应目录,用 translate_arxiv --from_dir . -o output.zip 本地翻译
Ethan-Chen-plus commented 1 year ago

已解决,感谢