建立一门课程的工具(从练习、讲座等列表中)
makeCourse的Python项目详细描述
要使用它,请使用make和files
方法定义类的子类
- class CM(Session):
- def make(self, options):
- print( ” - build handout”) self.writeFileFromTemplate( ‘CM.tex’, self.name+’.tex’, {} ) runCommand( [‘pdflatex’, self.name+’.tex’], 2 )
- def files(self):
- return [ self.name+’.pdf’ ]