flextable (version 0.5.5)

headers_flextable_at_bkm: add flextable at a bookmark location in document's header

Description

replace in the header of a document a paragraph containing a bookmark by a flextable. A bookmark will be considered as valid if enclosing words within a paragraph; i.e., a bookmark along two or more paragraphs is invalid, a bookmark set on a whole paragraph is also invalid, but bookmarking few words inside a paragraph is valid.

Usage

headers_flextable_at_bkm(x, bookmark, value)

Arguments

x

an rdocx object

bookmark

bookmark id

value

a flextable object