diff --git a/dsRag/Test/TestGongShi.py b/dsRag/Test/TestGongShi.py index 387f6069..3a524368 100644 --- a/dsRag/Test/TestGongShi.py +++ b/dsRag/Test/TestGongShi.py @@ -11,6 +11,7 @@ def docx_to_latex(docx_path): import re # 替换公式格式 latex_content = re.sub(r'\\\[(.*?)\\\]', r'$$\1$$', latex_content) + latex_content = re.sub(r'\\\((.*?)\\\)', r'$\1$', latex_content) # 替换图片路径为【图片X】格式 img_count = 1 diff --git a/dsRag/Test/带公式的WORD文档.docx b/dsRag/Test/带公式的WORD文档.docx index 56a9709c..3950ef6e 100644 Binary files a/dsRag/Test/带公式的WORD文档.docx and b/dsRag/Test/带公式的WORD文档.docx differ