编译前提示文件名
This commit is contained in:
parent
9a2fa0151f
commit
f5ed5ab6b8
|
|
@ -1317,6 +1317,7 @@ def GenerateSingleLessonNote(id,notesdict,metadict,templatepath,outputfilepath,c
|
||||||
SaveTextFile(latex_data,outputfilepath) #保存.tex文件
|
SaveTextFile(latex_data,outputfilepath) #保存.tex文件
|
||||||
|
|
||||||
outputdir,filename = os.path.split(outputfilepath)
|
outputdir,filename = os.path.split(outputfilepath)
|
||||||
|
print(f"{filename}编译中...")
|
||||||
if XeLaTeXCompile(outputdir,filename):
|
if XeLaTeXCompile(outputdir,filename):
|
||||||
print("编译成功")
|
print("编译成功")
|
||||||
return latex_data # 返回0
|
return latex_data # 返回0
|
||||||
|
|
|
||||||
Reference in New Issue