View source: R/huxtable_longtable_latex.r
bn_if_long_ht | R Documentation |
huxtable
allows the setting of the (latex) tabular environment to be
specified. Providing 'longtable' doesn't work since this will be wrapped
in a 'table' environment. However, since the tabular environment created
is fine, it can be extracted. As this has no effect on html and docx
output, this wrapper will do nothing if the format is missing, html, or
docx, or if the attribute tabular_environment
is anything other
than 'longtable'. (In these cases the input will simple be returned
as-is.) If output format is latex AND the tabular environment is
'longtable', then the tabular will be extracted and used as-is (thus
removing the ambient table environment).
bn_if_long_ht(h)
h |
a huxtable |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.