bundle.latex.document

Attributes

Classes

Theme

Color theme for a LaTeX document.

Document

Build a complete LaTeX document and compile to PDF.

Module Contents

class bundle.latex.document.Theme(background: str = '121212', text: str = 'E0E0E0', accent: str = '87CEEB', row_alt: str = '1E1E1E')

Color theme for a LaTeX document.

background = '121212'
text = 'E0E0E0'
accent = '87CEEB'
row_alt = '1E1E1E'
preamble() str
bundle.latex.document.DARK_THEME
class bundle.latex.document.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.

PACKAGES = ['graphicx', ('xcolor', 'table'), 'geometry', 'booktabs', 'longtable', 'hyperref', ('inputenc',...
title
author = 'TheBundle'
landscape = True
theme
margin = '0.75in'
add_preamble(latex_str: str)
add_section(section: bundle.latex.elements.Section)
render() str
build_pdf() bytes

Compile the document to PDF bytes.

save_pdf(output_path: pathlib.Path)

Compile and save the document to a PDF file.