def visitNode_h2(self, node): if self.firstSlide: self.firstSlide = 0 self.end_body = '\\end{slide}\n\n' + self.end_body else: self.writer('\\end{slide}\n\n') self.writer('\\begin{slide}{') spitter = HeadingLatexSpitter(self.writer, self.currDir, self.filename) spitter.visitNodeDefault(node) self.writer('}')
def visitNode_h2(self, node): if not self.seenH2: self.currentN = 0 self.seenH2 = 1 else: self.currentN += 1 self.currentN %= self.everyN if not self.currentN: self.writer('\\clearpage\n') level = (int(node.tagName[1])-2)+self.baseLevel self.writer('\n\n\\'+level*'sub'+'section*{') spitter = HeadingLatexSpitter(self.writer, self.currDir, self.filename) spitter.visitNodeDefault(node) self.writer('}\n')
def visitNode_h2(self, node): if not self.seenH2: self.currentN = 0 self.seenH2 = 1 else: self.currentN += 1 self.currentN %= self.everyN if not self.currentN: self.writer('\\clearpage\n') level = (int(node.tagName[1]) - 2) + self.baseLevel self.writer('\n\n\\' + level * 'sub' + 'section*{') spitter = HeadingLatexSpitter(self.writer, self.currDir, self.filename) spitter.visitNodeDefault(node) self.writer('}\n')