Learn R Programming

spork (version 0.3.5)

as_latex.greek: Convert Greek to Latex

Description

Converts Greek letter names to latex. By default, assumes latex package upgreek is available so that lower case greek can be typeset upright, e.g. using backslash-upalpha instead of backslash-alpha. Do use the package "upgreek" in your document preamble, or else in your R environment set options(spork_upgreek = FALSE).

Usage

# S3 method for greek
as_latex(x, ..., upgreek = getOption("spork_upgreek", TRUE))

Value

latex

Arguments

x

greek

...

ignored,

upgreek

if TRUE, assume latex package upgreek is available

See Also

Other latex: [.latex(), [[.latex(), as_latex(), as_latex.default(), as_latex.latex(), as_latex.spar(), as_latex.spork(), concatenate.latex(), latexToken()

Examples

Run this code
as_latex(greek())

Run the code above in your browser using DataLab