Skip to content

Commit

Permalink
更正错误提示
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-sky committed Jun 30, 2023
1 parent 1616daa commit d7ac99f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crazy_functions/crazy_functions_test.py
Expand Up @@ -195,7 +195,7 @@ def test_Latex():
# txt = r"https://arxiv.org/abs/2303.08774"
# txt = r"https://arxiv.org/abs/2303.12712"
# txt = r"C:\Users\fuqingxu\arxiv_cache\2303.12712\workfolder"
txt = r"C:\Users\fuqingxu\Desktop\9"
txt = r"2306.17157" # 这个paper有个input命令文件名大小写错误!


for cookies, cb, hist, msg in (Latex翻译中文并重新编译PDF)(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
Expand Down
1 change: 1 addition & 0 deletions crazy_functions/latex_utils.py
Expand Up @@ -203,6 +203,7 @@ def merge_tex_files_(project_foler, main_file, mode):
c = fx.read()
else:
# e.g., \input{srcs/07_appendix}
assert os.path.exists(fp+'.tex'), f'即找不到{fp},也找不到{fp}.tex,Tex源文件缺失!'
with open(fp+'.tex', 'r', encoding='utf-8', errors='replace') as fx:
c = fx.read()
c = merge_tex_files_(project_foler, c, mode)
Expand Down

0 comments on commit d7ac99f

Please sign in to comment.