网页获取讲义 显示 讲义备注
This commit is contained in:
parent
d52868f25e
commit
f9023b60a0
|
|
@ -2558,6 +2558,8 @@ def GenerateSingleLessonNotefromMariaDB(cursor,id,structuredict,notesdict,templa
|
||||||
# if not structure[sectionkey]["spaceflag"] or answered:
|
# if not structure[sectionkey]["spaceflag"] or answered:
|
||||||
# content = re.sub(r"\\vspace[\*]?\{[\S]*\}","\n",content)
|
# content = re.sub(r"\\vspace[\*]?\{[\S]*\}","\n",content)
|
||||||
output += content + "\n\n"
|
output += content + "\n\n"
|
||||||
|
if notesdict[id]["remark"] != "":
|
||||||
|
output += f"\n\n\\newpage\n\n\\section{{备注}}\n\n{notesdict[id]['remark']}\n\n"
|
||||||
|
|
||||||
latex_raw = ReadTextFile(templatepath)
|
latex_raw = ReadTextFile(templatepath)
|
||||||
latex_raw = latex_raw.replace(r"学号\blank{50} \ 姓名\blank{80}","上海市控江中学") #替换掉模板中的姓名学号
|
latex_raw = latex_raw.replace(r"学号\blank{50} \ 姓名\blank{80}","上海市控江中学") #替换掉模板中的姓名学号
|
||||||
|
|
|
||||||
Reference in New Issue