format_sub {cocoon}R Documentation

Format subscript text

Description

Format subscript text

Usage

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

Arguments

subscript

Character string or NULL

type

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

Value

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

Examples

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

[Package cocoon version 0.1.0 Index]