生成讲义时返回tex源代码

This commit is contained in:
weiye.wang 2024-01-17 16:56:15 +08:00
parent 41e8fcd643
commit fe8691493c
1 changed files with 1 additions and 1 deletions

View File

@ -1319,7 +1319,7 @@ def GenerateSingleLessonNote(id,notesdict,metadict,templatepath,outputfilepath,c
outputdir,filename = os.path.split(outputfilepath)
if XeLaTeXCompile(outputdir,filename):
print("编译成功")
return 0 # 返回0
return latex_data # 返回0
else:
print("编译失败")
return latex_data # 返回有错误的latex源代码