arxiv PDF 引用

This commit is contained in:
505030475
2023-06-25 23:30:31 +08:00
committed by w_xiaolizu
parent a37f94a6d6
commit e20363ee2a
2 changed files with 3 additions and 1 deletions

View File

@ -191,7 +191,8 @@ def test_Latex():
# txt = r"https://arxiv.org/abs/2002.09253"
# txt = r"https://arxiv.org/abs/2306.07831"
# txt = r"https://arxiv.org/abs/2212.10156"
txt = r"https://arxiv.org/abs/2211.11559"
# txt = r"https://arxiv.org/abs/2211.11559"
txt = r"https://arxiv.org/abs/2303.08774"
for cookies, cb, hist, msg in (Latex翻译中文并重新编译PDF)(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):

View File

@ -314,6 +314,7 @@ def split_subprocess(txt, project_folder, return_dict, opts):
text, mask = split_worker(text, mask, r"\\begin\{align\}(.*?)\\end\{align\}", re.DOTALL)
text, mask = split_worker(text, mask, r"\\begin\{equation\}(.*?)\\end\{equation\}", re.DOTALL)
text, mask = split_worker(text, mask, r"\\begin\{equation\*\}(.*?)\\end\{equation\*\}", re.DOTALL)
text, mask = split_worker(text, mask, r"\\includepdf\[(.*?)\]\{(.*?)\}")
text, mask = split_worker(text, mask, r"\\item ")
text, mask = split_worker(text, mask, r"\\label\{(.*?)\}")
text, mask = split_worker(text, mask, r"\\begin\{(.*?)\}")