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)
def lof(self): return display(bi.__formatter__(r'\listoffigures'))
def lot(self): return display(bi.__formatter__(r'\listoftables'))
def toc(self): return display( bi.__formatter__( r'\pdfbookmark{TABLE OF CONTENTS}{TABLE OF CONTENTS}\tableofcontents{}' ))
def preface(self, preface): self._preface = self.process_markdown(preface) return display( bi.__formatter__('\\begin{preface}\n' + self._preface + '\\end{preface}\n'))
def acknowledgements(self, ack): self._acknowledgements = self.process_markdown(ack) return display( bi.__formatter__('\\begin{acknowledgments}\n' + self._acknowledgements + '\\end{acknowledgments}\n'))
def dedication(self, dedication): self._dedication = self.process_markdown(dedication) return display( bi.__formatter__('\\begin{dedication}\n' + self._dedication + '\\end{dedication}\n'))