I'm having a problem passing the font size that I chose within the itables package to be the font size that Quarto will use for that specific table. What I'm doing currently is
options.lengthMenu = [5]
options.layout["topStart"] = None
styles = [
{"selector": "th", "props": "font-size:8px;"},
{"selector": "td", "props": "font-size:10px;"}
]
show(
df.set_table_styles(styles).format(precision=2),
classes = "display cell-border nowrap",
layout = {"top1": "searchPanes"},
searchPanes = {"layout": "columns-1", "cascadePanes": True, "columns": [0]},
columnDefs = [
{"searchPanes":
{"name" : "System state", "header": "System state"},
"targets": [0]},
{"className": "dt-center", "targets": "_all"}
],
buttons=["copyHtml5", "csvHtml5", "excelHtml5"],
allow_html=True,
paging=True,
style="width:850px",
autoWidth=False)
which renders just fine in my Jupyter notebook (running inside VSCode). But when passed to Quarto
quarto render report.qmd
it ignores the font size specification while accepting the rest. Is there a way to force Quarto to respect that aspect as well? Thanks for any tips.