These functions print or return a Typst table.
See also
Other printing functions:
print_html()
,
print_latex()
,
print_md()
,
print_rtf()
,
print_screen()
Examples
ht <- huxtable(a = 1:3, b = letters[1:3])
to_typst(ht)
#> [1] "#figure(\ntable(\n columns: (auto, auto),\n stroke: none,\n table.header(\n table.cell(align: (right + top))[a], table.cell(align: (left + top))[b]\n ),\n table.cell(align: (right + top))[1], table.cell(align: (left + top))[a],\n table.cell(align: (right + top))[2], table.cell(align: (left + top))[b],\n table.cell(align: (right + top))[3], table.cell(align: (left + top))[c]\n),\ncaption: none\n)"