Learn R Programming

cocoon (version 0.2.0)

format_sub: Format subscript text

Description

Format subscript text

Usage

format_sub(subscript = NULL, type = "md")

Value

A character string that is formatted as subscript for either Markdown or LaTeX.

Arguments

subscript

Character string or NULL.

type

Type of formatting ("md" = markdown, "latex" = LaTeX).

Examples

Run this code
format_sub("Hello world!")
# Format in LaTeX syntax
format_sub("Hello world!", type = "latex")

Run the code above in your browser using DataLab