bn_if_long_ht: huxtable longtable fixer

View source: R/huxtable_longtable_latex.r

bn_if_long_htR Documentation

huxtable longtable fixer

Description

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).

Usage

bn_if_long_ht(h)

Arguments

h

a huxtable


renlund/bokner documentation built on March 26, 2023, 3:53 a.m.