bundle.latex¶
Submodules¶
Classes¶
Functions¶
|
Escape special LaTeX characters in a string. |
Package Contents¶
- class bundle.latex.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_section(section: bundle.latex.elements.Section)¶
- save_pdf(output_path: pathlib.Path)¶
Compile and save the document to a PDF file.
- class bundle.latex.Figure(image_path: pathlib.Path | str, width: str = '0.85\\linewidth', caption: str | None = None)¶
Render a LaTeX figure with includegraphics.
- image_path¶
- width = '0.85\\linewidth'¶
- caption = None¶
- class bundle.latex.Section(title: str, level: int = 1)¶
Render a LaTeX section with optional content blocks.
- title¶
- level = 1¶