Ejemplo n.º 1
0
 def peek(self):
     html_str = """<h1>{title}</h1>
     <h2>{author}</h2>
     <p>{month}, {year}</p>
     """.format(title=self._title,
                author=self._author,
                month=self._month,
                year=self._year)
     return bi.__formatter__(html_str)
Ejemplo n.º 2
0
 def lof(self):
     return display(bi.__formatter__(r'\listoffigures'))
Ejemplo n.º 3
0
 def lot(self):
     return display(bi.__formatter__(r'\listoftables'))
Ejemplo n.º 4
0
 def toc(self):
     return display(
         bi.__formatter__(
             r'\pdfbookmark{TABLE OF CONTENTS}{TABLE OF CONTENTS}\tableofcontents{}'
         ))
Ejemplo n.º 5
0
 def preface(self, preface):
     self._preface = self.process_markdown(preface)
     return display(
         bi.__formatter__('\\begin{preface}\n' + self._preface +
                          '\\end{preface}\n'))
Ejemplo n.º 6
0
 def acknowledgements(self, ack):
     self._acknowledgements = self.process_markdown(ack)
     return display(
         bi.__formatter__('\\begin{acknowledgments}\n' +
                          self._acknowledgements +
                          '\\end{acknowledgments}\n'))
Ejemplo n.º 7
0
 def dedication(self, dedication):
     self._dedication = self.process_markdown(dedication)
     return display(
         bi.__formatter__('\\begin{dedication}\n' + self._dedication +
                          '\\end{dedication}\n'))