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