def WriteSubTitle(self,subtitle): self.file.write('% '.ljust(79,'-')+'\n') self.file.write('% ' + ('SECTION ' + subtitle).center(78)+'\n') self.file.write('% '.ljust(79,'-')+'\n') self.file.write('\\newpage\n') text=TextReport() text.Add(subtitle) self.file.write('\\section{') text.WriteLATEX(self.file) self.file.write('}\n\n') text.Reset()
def WriteSubSubTitle(self,subsubtitle): if( subsubtitle.find('Histogram')!=-1 or subsubtitle.find('Cut')!=-1 ): if self.firstselection: self.firstselection=False else: self.file.write('\\newpage\n') text=TextReport() text.Add(subsubtitle) self.file.write('\\subsection{') text.WriteLATEX(self.file) self.file.write('}\n\n') text.Reset()