生成讲义时返回tex源代码
This commit is contained in:
parent
41e8fcd643
commit
fe8691493c
|
|
@ -1319,7 +1319,7 @@ def GenerateSingleLessonNote(id,notesdict,metadict,templatepath,outputfilepath,c
|
||||||
outputdir,filename = os.path.split(outputfilepath)
|
outputdir,filename = os.path.split(outputfilepath)
|
||||||
if XeLaTeXCompile(outputdir,filename):
|
if XeLaTeXCompile(outputdir,filename):
|
||||||
print("编译成功")
|
print("编译成功")
|
||||||
return 0 # 返回0
|
return latex_data # 返回0
|
||||||
else:
|
else:
|
||||||
print("编译失败")
|
print("编译失败")
|
||||||
return latex_data # 返回有错误的latex源代码
|
return latex_data # 返回有错误的latex源代码
|
||||||
|
|
|
||||||
Reference in New Issue