生成的学生和教师讲义代码中在enumerate环境后加了回车
This commit is contained in:
parent
594405fdc9
commit
2f853ec825
|
|
@ -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")
|
||||
|
|
|
|||
Reference in New Issue