stefano-meschiari / latex2exp

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

latex2exp under windows does not accept \\ #6

Closed Christoph999 closed 8 years ago

Christoph999 commented 8 years ago

I am using windows and the \ are not accepted, eg \alpha in the legend is displayed as \alpha. Any feedback would be highly appreciated.

JBLecomte commented 8 years ago

Works fine for me on Windows, you have to use a double \ to make it work. Like in the Readme file TeX('$\alpha^\beta$')

stefano-meschiari commented 8 years ago

^What Jean-Baptiste said. You need to escape the backslash.

Christoph999 commented 8 years ago

Sorry, stupid mistake on my part. Thank you for your support!