httpgd icon indicating copy to clipboard operation
httpgd copied to clipboard

Missing spaces in LaTeX expressions when plotting using `latex2exp`

Open colinbousige opened this issue 2 years ago • 3 comments

Hello,

See original post here where the author of latex2exp tracked the issue to arise from the httpgd plot renderer.

When plotting using httpgd and latex2exp, LaTeX expressions are missing spaces and are distorted. Doing the same plot in the normal R png renderer yields the expected result.

image

To reproduce in a vanilla R terminal:

library(httpgd)
library(latex2exp)
hgd()
plot(TeX(r'($\alpha$ and also $\beta$)'))

yields this: image

instead of this :

library(latex2exp)
plot(TeX(r'($\alpha$ and also $\beta$)'))

image

colinbousige avatar Nov 28 '22 08:11 colinbousige