stefano-meschiari / latex2exp

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

Round brakets after exponent trigger undue exponentiation #49

Closed alusiani closed 2 years ago

alusiani commented 2 years ago

Hi,

the commands

plot(TeX(r"($B^a(b)$)"))
plot(TeX(r"($B^{a}(b)$)"))
plot(TeX(r"($B^a (b)$)"))
plot(TeX(r"($B^{a} (b)$)"))

all result in the "(b)" string being unduly positioned as an exponent. I could not find a way to circumvent that, unless adding a space with "\," in between.

Greetings!

Alberto