as_latex.greek: Convert Greek to Latex

View source: R/latex.R

as_latex.greekR Documentation

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 class 'greek'
as_latex(x, ..., upgreek = getOption("spork_upgreek", TRUE))

Arguments

x

greek

...

ignored,

upgreek

if TRUE, assume latex package upgreek is available

Value

latex

See Also

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

Examples

as_latex(greek())

spork documentation built on Oct. 12, 2024, 9:06 a.m.

Related to as_latex.greek in spork...