Text to Formatted RTF Encode
Examples
rtf_rich_text(
text = paste(
"This is {.emph important}.",
"This is {.strong relevant}.", "This is {.zebra ZEBRA}."
),
theme = list(
.emph = list(format = "i"),
.strong = list(format = "b"),
.zebra = list(color = "white", background_color = "black")
)
)
#> [,1]
#> [1,] "\\fs24{\\f0 This is \\fs24{\\f0\\i important}. This is \\fs24{\\f0\\b relevant}. This is \\fs24{\\f0\\cf1\\chshdng0\\chcbpat24\\cb24 ZEBRA}.}"