This function is based on rtables.officer::theme_docx_default().
See notes to understand why this is experimental.
theme_docx_default_j(
font = "Times New Roman",
font_size = 9L,
cell_margins = c(0, 0, 0, 0),
bold = c("header", "content_rows", "label_rows", "top_left"),
bold_manual = NULL,
border = flextable::fp_border_default(width = 0.75, color = "black")
)a function that applies the given theme to a flextable.
(string)
font. Defaults to "Times New Roman".
(integer(1))
font size. Defaults to 9.
(numeric(1) or numeric(4))
a numeric or a vector of four numbers indicating
c("left", "right", "top", "bottom"). It defaults to 0mm in Word pt to all 4 margins.
(character)
parts of the table text that should be in bold.
Can be any combination of c("header", "content_rows", "label_rows", "top_left").
The first one renders all column names bold (not topleft content).
The second and third option use formatters::make_row_df() to render
content or/and label rows as bold.
(named list or NULL)
list of index lists.
See example for needed structure. Accepted groupings/names are c("header", "body").
(fp_border)
border to use. Defaults to width = 0.75
and color = "black"