Open iagobaapellaniz opened 4 days ago
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?
That sounds great! If I can help somehow, I would try to do it so in my spare time.
For the record, I found this discussion about the baseline and other related issues such as the weird "clipping" MakieTeX.jl also experiences (for the moment), https://mactextoolbox.sourceforge.net/articles/baseline.html.
See the clipping occuring this time from below.
It seems that it could be solved with something like
\geometry{margin=1pt}
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))