示例#1
0
文件: slides.py 项目: Almad/twisted
 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('}')
示例#2
0
文件: slides.py 项目: emragins/tribal
 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('}')
示例#3
0
文件: slides.py 项目: Almad/twisted
 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')
示例#4
0
文件: slides.py 项目: emragins/tribal
 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')