Skip to contents

A numeric widths is interpreted as a proportion of text width in LaTeX, or of width of the containing element in HTML. A character width must be a valid LaTeX or CSS dimension. The default, NA, makes the caption the same width as the table.

Usage

caption_width(ht)

caption_width(ht) <- value

set_caption_width(ht, value)

Arguments

ht

A huxtable.

value

Number or string. Set to NA to reset to the default, which is NA_real_.

Value

property() returns the property value(s). set_property() and map_property() return the modified huxtable.

See also

Other caption properties: caption(), caption_pos()

Examples

set_caption_width(jams, 0.5)
#>                               Type           Price  
#>                               Strawberry      1.90  
#>                               Raspberry       2.10  
#>                               Plum            1.80  
#> 
#> Column names: Type, Price