pylatex_table¶
Help on function pylatex_table in module pydicts.pylatex:
pylatex_table(doc, lod_, code_=None, text_no_results='No data to show')
Creates a table in a pylatex document
Args:
doc (pylatex.Document): The pylatex document object to add the table to.
lod_ (list): The list of dictionaries containing the data for the table.
code_ (str, optional): LaTeX column format string (e.g., "|c|r|l|").
If None, it will be generated based on the number of columns.
text_no_results (str, optional): The message to display if `lod_` is empty.
Defaults to "No data to show".
pylatex_table_with_matched_values¶
Help on function pylatex_table_with_matched_values in module pydicts.pylatex:
pylatex_table_with_matched_values(
doc,
values_to_match,
lod_,
code_=None,
text_no_results='No data to show',
match_color='teal',
unmatch_color='red'
)
Creates a table in a pylatex document
This function needs to have xcolor package loaded in document with
doc.packages.append(Package('xcolor'))
@param doc pylatex document object
@param values_to_match Values to match is a list
@param lod
@param code_ |c|r|l| Para usar wrapping |p{.20\linewidth\p{.80\linewidth}|