Returns a string that is a valid plotmath expression, given a LaTeX tree
returned by parse_latex.
Usage
render_latex(tokens, user_defined = list(), hack_parentheses = FALSE)Arguments
- tokens
tree of tokens
- user_defined
any custom definitions of commands passed to
TeX- hack_parentheses
render parentheses using
group('(', phantom(), '.')andgroup(')', phantom(), '.'). This is useful to return valid expressions when the LaTeX source contains mismatched parentheses, but makes the returned expression much less tidy.
