qumas.Tools.paperthings module

array_to_latex_table(array, headers=None)[source]

Converts a 2D array (list of lists) into a LaTeX table. If the first column values contain the prefix “alpha_”, it is removed. A header row is generated dynamically based on the number of columns.

Parameters:

array (list of lists) – 2D array to convert into a LaTeX table.

Returns:

Prints the LaTeX table code.

Return type:

None