format_chr {cocoon} | R Documentation |
Format character strings with italics and type
Description
Format character strings with italics and type
Usage
format_chr(x, italics = TRUE, type = "md")
Arguments
x |
Character string |
italics |
Logical value (default = TRUE) for whether text should be italicized |
type |
Type of formatting ( |
Value
A character string that has either Markdown or LaTeX formatting for italics or not.
Examples
format_chr("Hello world!")
# Format in LaTeX syntax
format_chr("Hello world!", type = "latex")
# Remove italics
format_chr("Hello world!", italics = FALSE)
[Package cocoon version 0.1.0 Index]