bundle.latex.document ===================== .. py:module:: bundle.latex.document Attributes ---------- .. autoapisummary:: bundle.latex.document.DARK_THEME Classes ------- .. autoapisummary:: bundle.latex.document.Theme bundle.latex.document.Document Module Contents --------------- .. py:class:: Theme(background: str = '121212', text: str = 'E0E0E0', accent: str = '87CEEB', row_alt: str = '1E1E1E') Color theme for a LaTeX document. .. py:attribute:: background :value: '121212' .. py:attribute:: text :value: 'E0E0E0' .. py:attribute:: accent :value: '87CEEB' .. py:attribute:: row_alt :value: '1E1E1E' .. py:method:: preamble() -> str .. py:data:: DARK_THEME .. py:class:: Document(title: str, author: str = 'TheBundle', landscape: bool = True, theme: Theme | None = None, margin: str = '0.75in') Build a complete LaTeX document and compile to PDF. .. py:attribute:: PACKAGES :value: ['graphicx', ('xcolor', 'table'), 'geometry', 'booktabs', 'longtable', 'hyperref', ('inputenc',... .. py:attribute:: title .. py:attribute:: author :value: 'TheBundle' .. py:attribute:: landscape :value: True .. py:attribute:: theme .. py:attribute:: margin :value: '0.75in' .. py:method:: add_preamble(latex_str: str) .. py:method:: add_section(section: bundle.latex.elements.Section) .. py:method:: render() -> str .. py:method:: build_pdf() -> bytes Compile the document to PDF bytes. .. py:method:: save_pdf(output_path: pathlib.Path) Compile and save the document to a PDF file.