stefano-meschiari / latex2exp

Use LaTeX in R graphics.
Other
188 stars 10 forks source link

0.9.1 #39

Closed stefano-meschiari closed 2 years ago

stefano-meschiari commented 2 years ago

Fixes #38

Commands \leq, \geq, and \ne (synonym: \neq) are protected by surrounding them with {phantom() * operator * phantom() } to avoid errors when translating into a plotmath expression.

This is necessary because a plotmath expression like a < b < c is not a valid R expression, and will cause a parse error:

Error: unexpected '<' in "a < b <"

The workaround applied currently is to surround the operator in {phantom() * operator * phantom()}.

In a follow-up release, I should devise a better solution.