GR.jl icon indicating copy to clipboard operation
GR.jl copied to clipboard

latex rendering issues

Open kleinhenz opened this issue 4 years ago • 0 comments

I am trying to add a latex annotation to a plot and the rendering produced by GR has some notable issues relative to the rendering of the equation in latex. From browsing the code my impression is that GR used to use latex but now has it's own rendering engine. It would be nice to to have an option to use latex for equations that don't get properly rendered by the GR engine.

The equation is raw"$G(T) = G_0 \left(\frac{{T'}_k^2}{T^2+{T'}_k^2}\right)^s$"

The result in GR looks like Screen Shot 2020-10-16 at 2 03 26 PM

while the result in latex looks like Screen Shot 2020-10-16 at 2 04 28 PM

The main issues with the GR rendering are

  • the placement of the right paren in G(T)
  • the placement of the primes
  • the placement of the s exponent

I definitely appreciate that implementing even a small tex engine is quite hard and I'm thankful for all the great work you've done. It would be nice to have full latex available for when it is necessary.

kleinhenz avatar Oct 16 '20 21:10 kleinhenz