修改 教师讲义制作 的页眉

This commit is contained in:
wangweiye7840 2023-06-30 15:46:18 +08:00
parent d32ee157e1
commit 23ca67d6dd
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ outputfilepath = os.path.join(outputdir,notetitle+".tex")
print("输出文件目录: %s\n输出文件名: %s"%(os.path.join(os.getcwd(),outputdir),notetitle+".tex"))
latex_raw = ReadTextFile("模板文件/讲义模板.txt")
latex_raw = latex_raw.replace(r"学号\blank{50} \ 姓名\blank{80}","")
if sys.platform != "win32": #非win系统用默认字体
latex_raw = re.sub(r"fontset[\s]*=[\s]*none","fontset = fandol",latex_raw)