torchcell.paper.tables.PaperTable

class PaperTable(*, columns: list[Column], rows: list[Row], footer: Row | None = None)[source]

Bases: BaseModel

Columns + rows rendered identically to markdown and LaTeX.

Rows may carry a section; sections render as H3 headings (markdown) or bold \multicolumn group rows (LaTeX), preserving first-seen order.

to_markdown(*, sectioned: bool = True, heading_level: int = 3) → str[source]

Render as GitHub-flavored markdown; sections become H3 headings.

to_latex(*, caption: str, label: str, sectioned: bool = True, table_env: str = 'table*', position: str = 't', size: str = 'footnotesize', colsep_pt: int = 4, footnote: str | None = None, header_comment: str | None = None) → str[source]

Render as a booktabs LaTeX table; sections become bold multicolumn rows.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].