latex2exp icon indicating copy to clipboard operation
latex2exp copied to clipboard

Use LaTeX in R graphics.

Results 13 latex2exp issues
Sort by recently updated
recently updated
newest added

Hi, thanks for this very useful package! I notice that apparently square brakets need to be escaped to prevent being ignored, together with whatever is enclosed. ```R plot(TeX(r"($a [b]$)")) ```...

Dear @stefano-meschiari Do you have any solution how to make `\vec{x}` work in R? Thank you very much!

Hi, when I use for example `plot(TeX("Day time $\ \\left[ hours \\right] $"), cex=2, main="")` R does not display the brackets. It looks like this: ![image](https://user-images.githubusercontent.com/93387223/171921591-34c814ce-e46a-43d7-9b3c-d8a0afc29eb6.png) When I use this...

Hi, the commands ```R 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...

Thanks for the great package it has helped me immensely. One thing I quite haven’t figured out is how to add a \newline or \n in a plot. I frequently...

Currently, using `TeX()` with ggplot2 to plot formatted text is markedly different from base graphics. With base graphics, calling ```r text(TeX(r"($\alpha + \beta$)")) ``` will plot the expression in the...

I would like to annotate math formulas on the plot using `geom_text()` and I specified the TeX expression to the `label` argument in following code. ``` library(ggplot2) library(latex2exp) p

Would it be possible to incorporate \ref so that geom_text could link to other parts of a pdf?

**Describe the bug** I run the script ```r TeX('$\\alpha^\\beta$') ``` and it raise Exception: ``` Error in `stop_vctrs()`: ! Input must be a vector, not an environment. Traceback: TeX("$\\alpha^\\beta$") parse_latex(input)...