stefano-meschiari / latex2exp

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

Italics in math mode and minus sign #9

Closed spencerwoody closed 2 years ago

spencerwoody commented 6 years ago

To match TeX better, Latin characters should be in italics by default in mathmode, and $-$ should give a minus sign instead of a hyphen.

Otherwise, this package is perfect.

stefano-meschiari commented 2 years ago

Sorry for the delay in answering this issue!

$-$ is now represented correctly with a minus sign character. It's not possible to italicize symbols such as $\alpha$ because of plotmath limitations (only letters to be able to be italicized).