Esempio n. 1
0
 def addSubChapter(self, para=testVal1["subch"]):
     """
     # add subchapter
     """
     part = ar.doHeading(para, self.styles.h2)
     for p in part:
         self.contents.append(p)
Esempio n. 2
0
 def addSubChapter(self):
     """
     # add subchapter
     """
     part = ar.doHeading(self.fake.word(), self.styles.h2)
     for p in part:
         self.contents.append(p)
Esempio n. 3
0
 def addChapter(self, nextTemplate='Later'):
     """
     # add chapter
     """
     #nextTemplate = self.doc.getSpecialTemplate(temp_name=nextTemplate)
     #self.contents = ar.PageNext(self.contents, nextTemplate=nextTemplate)
     part = ar.doHeading(self.fake.word(), self.styles.h1)
     for p in part:
         self.contents.append(p)
Esempio n. 4
0
 def addChapter(self, para="Text", nextTemplate='LaterL', sty=None):
     """
     # add chapter
     """
     # default style h1
     if sty is None:
         sty = self.styles.h1
     nextTemplate = self.doc.getTemplate(temp_name=nextTemplate)
     ar.PageNext(self.contents, nextTemplate=nextTemplate)
     # Begin of First Chapter
     self.contents.append(ar.PageBreak())
     part = ar.doHeading(para, sty)
     for p in part:
         self.contents.append(p)