From 331ebcc5db461f463d836ba48e2add44a79ae143 Mon Sep 17 00:00:00 2001 From: wangweiye7840 Date: Mon, 31 Jul 2023 08:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E5=A4=87=E8=AF=BE=E7=A8=BF?= =?UTF-8?q?=E4=B8=AD=E6=9B=B4=E6=94=B9remark=E7=9A=84=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 工具v2/database_tools.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/工具v2/database_tools.py b/工具v2/database_tools.py index 1a2cda0e..849f5ed2 100644 --- a/工具v2/database_tools.py +++ b/工具v2/database_tools.py @@ -911,6 +911,9 @@ def GenerateLessonPreparation(notetitle, outputdir, adict, prodict, objdict, bas output += GenerateStudentBodyString(ealist,[],prodict,consecutivenumbering=False,answered=False) output += "\\subsection{巩固新知}\n\n" output += GenerateStudentBodyString(worklist,[],prodict,consecutivenumbering=False,answered=False) + if not remarks == "": + output += "\\subsection{备注}\n\n" + output += remarks + "\n\n" output += "\\newpage\n\n\\subsection{课后作业}\n\n" output += GenerateStudentBodyString(homeworklist,[],prodict,consecutivenumbering=False,answered=False) output += "\\newpage\n\n" @@ -919,9 +922,7 @@ def GenerateLessonPreparation(notetitle, outputdir, adict, prodict, objdict, bas output += "\\subsection{复习题}\n\n" output += GenerateStudentBodyString(homeworklist,[],prodict,consecutivenumbering=False,answered = False) output += "\\newpage\n\n" - if not remarks == "": - output += "\\subsection{备注}\n\n" - output += remarks + "\n\n" + latex_raw = ReadTextFile("模板文件/讲义模板.txt")