stefano-meschiari / latex2exp

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

Add possibility to use literal underscore (_) and caret (^) symbols #17

Closed GegznaV closed 2 years ago

GegznaV commented 5 years ago

Add possibility to use literal underscore and caret symbols. Now I can't use them neither in text, nor in math modes.

TeX('H_0\\_1\\^2 $H_3\\_4\\^5$'): image

shgoke commented 3 years ago

I'd appreciate it if you could add literal dollar sign ($).

stefano-meschiari commented 2 years ago

Sorry for the delay in answering this issue.

As of 0.9.0, this should work correctly:

plot(TeX(r'($a\^b\_c\$$)'))

image