powered by
Format a String with Italics for HTML or Latex Output
fmt_italic(string, indicator = "*", html = TRUE)
A character vector
The character vector to add italics to.
The indicator for which words should be italicized
Logical for whether the output should be HTML. If FALSE, Latex output is provided.
FALSE
fmt_italic("Make *this* italic.", html = TRUE) fmt_italic("Make *this* italic.", html = FALSE)
Run the code above in your browser using DataLab