torchcell.paper.tables.Column

class Column(*, header: str, align: Literal['l', 'c', 'r'] = 'l', width: str | None = None)[source]

Bases: BaseModel

A table column. header is also the key used to look up a row’s cell.

width (a LaTeX length such as "3.2in") makes the LaTeX column a wrapping ragged-right paragraph, >{\raggedright\arraybackslash}p{width}, for free text such as a description; markdown is unaffected. Requires the array package.

tex_spec() → str[source]

The tabular column spec: the alignment letter, or a wrapping p-column.

model_config: ClassVar[ConfigDict] = {}

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