Learn R Programming

spork (version 0.1.1)

latexToken: Process Latex Token

Description

Pre-processes a latex token not recognized as spork. Escapes the common names for Greek letters and escapes latex metacharacters.

Usage

latexToken(x, unrecognized = latexToken, math = TRUE, italics = FALSE, ...)

Arguments

x

character

unrecognized

function to process unrecognized tokens

math

whether to wrap in math environment

italics

whether to use italics or not

...

ignored arguments

Value

character

See Also

Other latex: as_latex.spork(), as_latex(), spork_to_latex()

Examples

Run this code
# NOT RUN {
latexToken('foo')
latexToken('alpha')
latexToken('Alpha')
# }

Run the code above in your browser using DataLab