osl_dynamics.utils.tables.LatexTable#

class osl_dynamics.utils.tables.LatexTable(headers, *, vertical_lines=True, horizontal_lines=True, header_lines=True)#

Bases: Table

Class for creating LaTeX tables.

Attributes:
headerslist of str

The table headers.

rowslist of list of str

The table rows.

vertical_linesbool, optional

Whether to draw vertical lines, by default True.

horizontal_linesbool, optional

Whether to draw horizontal lines, by default True.

header_linesbool, optional

Whether to draw horizontal lines above the header, by default True.

outer = ''#
vertical_lines = True#
horizontal_lines = True#
escape()#

Escape special characters in headers and rows.

append_last(item)#

Append an item on the last row of the table.

Parameters:
itemany

Item to append.

static latex_row(items)#

Create a latex row from a list of strings.

Parameters:
itemslist of strings

The list of strings to be turned into a row.

Returns:
latex_rowstring

The latex row.

output()#

Format the table into LaTeX code.

Returns:
str

The LaTeX code that produces the table.

headers#
rows = []#