You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to make teximg and text more similar. This way one can start using text as a first approach and then later change to teximg if needed so.
For comparison
f = text(0,0, text = L"E = mc^2", align=(:left, :bottom))
teximg!(L"E = mc^2", position = (0,0) , align=(:left, :bottom))
teximg!(L"E = mc^2", position = (0,0) , align=(:right, :bottom), scale=14/12)
teximg!(L"E = mc^2", position = (0,0) , align=(:right, :top), scale=14/12)
f
produces
Note the following issues:
The vertical alignment is reversed.
For Makie, the default font size seems to be 14pt, whereas MakieTeX compiles the LaTeX string with 12pt. Can this be fixed easily?
Could the arguments of both methods be more similar? Could we have teximg(0,0, text = L"E = mc^2", align=(:left, :bottom)) instead of teximg(L"E = mc^2", position = (0,0) , align=(:left, :bottom))
Could the baseline of the image be inferred?
The text was updated successfully, but these errors were encountered:
That sounds like a great idea, thanks for proposing it! I don't currently have the time to solve this but will hopefully be a bit more free in December.
The alignment issue is a bit strange, we should definitely correct that. The default font size is from an earlier version of Makie, that can also be changed.
Inferring the baseline of the image is unfortunately not really feasible through the PDF, unless TeX can pass us some info through the command line somehow?
It would be nice to make
teximg
andtext
more similar. This way one can start usingtext
as a first approach and then later change toteximg
if needed so.For comparison
produces
Note the following issues:
teximg(0,0, text = L"E = mc^2", align=(:left, :bottom))
instead ofteximg(L"E = mc^2", position = (0,0) , align=(:left, :bottom))
The text was updated successfully, but these errors were encountered: