stefano-meschiari / latex2exp

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

Remove space after decimal point #20

Closed dppalomar closed 5 years ago

dppalomar commented 5 years ago

For some reason a blank space is automatically added after a decimal point and I don't understand why. For example, see:

TeX("3.3")
># expression(`3.3` = paste("3", ". 3"))

when it should produce

># expression(`3.3` = paste("3", ".3"))

See it in a plot:

plot(1:4, 1:4, main = TeX("3.3"))

Any way to fix this? Thanks.

wzel commented 5 years ago

I second this. See PR #21.

dppalomar commented 5 years ago

Thanks @wzel !