Skip to contents

Converts Greek letter names, other special names and trailing modifiers such as hat or dot to LaTeX, as SymPy's translate().

Usage

latex_translate(s)

Arguments

s

A character scalar.

Value

The LaTeX string.

Examples

latex_translate("alphahatdotprime")
#> [1] "{\\dot{\\hat{\\alpha}}}'"