latex_greeks: Precede greek letters with backslashes to render them in...

Description Usage Arguments Value Examples

View source: R/latex_greeks.R

Description

Precede greek letters or whatever supplied in alphabet with backslashes, such that when cat() is applied, the output can be copied into a .tex document and be rendered.

Usage

1
latex_greeks(string, alphabet = NULL, append = FALSE)

Arguments

string

A character vector.

alphabet

A character vector of strings to be preceded by backslashes.

append

Boolean, should the supplied alphabet be appended to the implemented greek letters.

Value

string with all greek letters, and what is supplied in alphabet preceded by backslashes.

Examples

1
latex_greeks("alpha, beta, and foo will be modified; bar won't", "foo", TRUE)

thorepet/thoremisc documentation built on Oct. 8, 2021, 7:48 a.m.