Create multirow/multicol to texblock object

multicol(content, ncol, align = "c")

multirow(content, nrow, width = "*")

Arguments

content

character, contents to display in the merged cell

ncol

numeric, number of columns to span in the multicol

align

character, alignment of the merged column, Default: 'c'

nrow

numeric, number of rows to span in the multirow

width

character, width of the new element, Default: '*'

Value

tb

Details

align is either l, c, r, or to have text wrapping specify a width p5.0cm.

  • for the width means the content's natural width.

Examples

multirow('aaa',2)
#> \multirow{2}{*}{aaa}
multicol('aaa',2)
#> \multicolumn{2}{c}{aaa}