Add a bookmark on a run object.
run_bookmark(bkm, run)
bookmark id to associate with run. Value can only be made of alpha numeric characters, '-' and '_'.
a run object, made with a call to one of the "run functions for reporting".
You can use this function in conjunction with fpar to create paragraphs consisting of differently formatted text parts. You can also use this function as an r chunk in an R Markdown document made with package officedown.
Other run functions for reporting:
external_img()
,
ftext()
,
hyperlink_ftext()
,
run_autonum()
,
run_columnbreak()
,
run_footnoteref()
,
run_footnote()
,
run_linebreak()
,
run_pagebreak()
,
run_reference()
,
run_word_field()
ft <- fp_text(font.size = 12, bold = TRUE)
run_bookmark("par1", ftext("some text", ft))
#> $id
#> [1] "par1"
#>
#> $run
#> $run[[1]]
#> text: some text
#> format:
#> size italic bold underlined color shading fontname fontname_cs
#> 1 12 FALSE TRUE FALSE black transparent Arial Arial
#> fontname_eastasia fontname.hansi vertical_align
#> 1 Arial Arial baseline
#>
#>
#> attr(,"class")
#> [1] "run_bookmark" "run"