From 2f853ec82595a199ca11daba5fce1dca6b208e87 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Tue, 11 Jul 2023 16:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=E5=AD=A6=E7=94=9F?= =?UTF-8?q?=E5=92=8C=E6=95=99=E5=B8=88=E8=AE=B2=E4=B9=89=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E4=B8=AD=E5=9C=A8enumerate=E7=8E=AF=E5=A2=83=E5=90=8E=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E5=9B=9E=E8=BD=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 0ccb2896..baed3e09 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -727,7 +727,7 @@ def GenerateStudentBodyString(problems,sectiontitles,pro_dict,consecutivenumberi count += 1 aftercontent = StudentsGetAfterContent(id,pro_dict,answered,spaceflag) sectionstring += "\\item {\\tiny(%s)} %s\n\n%s"%(id,pro_dict[id]["content"],aftercontent) - sectionstring += "\\end{enumerate}" + sectionstring += "\\end{enumerate}\n\n" bodystring += sectionstring else: idstring = ",".join(problems) @@ -736,7 +736,7 @@ def GenerateStudentBodyString(problems,sectiontitles,pro_dict,consecutivenumberi for id in idlist: aftercontent = StudentsGetAfterContent(id,pro_dict,answered,spaceflag) sectionstring += "\\item {\\tiny(%s)} %s\n\n%s"%(id,pro_dict[id]["content"],aftercontent) - sectionstring += "\\end{enumerate}" + sectionstring += "\\end{enumerate}\n\n" bodystring += sectionstring return bodystring #返回主题内容字符串 @@ -789,7 +789,7 @@ def GenerateTeacherBodyString(problems,sectiontitles,prodict,objdict,consecutive count += 1 aftercontent = TeachersGetAfterContent(id,prodict,objdict,topandbottomusagestuple = topandbottomusagestuple, showobjs = showobjs, showtags = showtags, showans = showans, showsolution = showsolution, showusages = showusages, showorigin = showorigin, showremark = showremark) sectionstring += "\\item (%s) %s\n\n%s"%(id,prodict[id]["content"],aftercontent) - sectionstring += "\\end{enumerate}" + sectionstring += "\\end{enumerate}\n\n" bodystring += sectionstring else: idstring = ",".join(problems) @@ -798,7 +798,7 @@ def GenerateTeacherBodyString(problems,sectiontitles,prodict,objdict,consecutive for id in idlist: aftercontent = TeachersGetAfterContent(id,prodict,objdict,topandbottomusagestuple = topandbottomusagestuple, showobjs = showobjs, showtags = showtags, showans = showans, showsolution = showsolution, showusages = showusages, showorigin = showorigin, showremark = showremark) sectionstring += "\\item (%s) %s\n\n%s"%(id,prodict[id]["content"],aftercontent) - sectionstring += "\\end{enumerate}" + sectionstring += "\\end{enumerate}\n\n" bodystring += sectionstring return bodystring #返回主体内容字符串 @@ -902,7 +902,7 @@ def GenerateLessonPreparation(notetitle, outputdir, adict, prodict, objdict, les output += GenerateStudentBodyString([problems_list[2]],[],prodict,consecutivenumbering=False,answered=False) output += "\\subsection{课后作业}\n\n" output += GenerateStudentBodyString([problems_list[3]],[],prodict,consecutivenumbering=False,answered=False) - output += "\\newpage" + output += "\\newpage\n\n" latex_raw = ReadTextFile("模板文件/讲义模板.txt")