Learn R Programming

ratlas (version 0.1.1)

fmt_italic: Format a String with Italics for HTML or Latex Output

Description

Format a String with Italics for HTML or Latex Output

Usage

fmt_italic(string, indicator = "*", html = TRUE)

Value

A character vector

Arguments

string

The character vector to add italics to.

indicator

The indicator for which words should be italicized

html

Logical for whether the output should be HTML. If FALSE, Latex output is provided.

Examples

Run this code
fmt_italic("Make *this* italic.", html = TRUE)
fmt_italic("Make *this* italic.", html = FALSE)

Run the code above in your browser using DataLab