rtf_rich_text {r2rtf}R Documentation

Text to Formatted RTF Encode

Description

Text to Formatted RTF Encode

Usage

rtf_rich_text(
  text,
  theme = list(.emph = list(format = "i"), .strong = list(format = "b"))
)

Arguments

text

Plain text.

theme

Named list defining themes for tags. See rtf_text() for details on possible formatting.

Specification

The contents of this section are shown in PDF user manual only.

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")
  )
)

[Package r2rtf version 1.1.1 Index]