JuliaPlots / MakieTeX.jl

TeX integration in Makie
MIT License
86 stars 12 forks source link

Factor out `MakieTeXCore.jl` without type piracy #42

Closed greimel closed 1 year ago

greimel commented 1 year ago

Hi @asinghvi17

Part of this package (LTeX, teximg!) are really useful even without pirating text(::LaTeXString). This core functionality is probably also easier to maintain than the current package.

What do you think of either

I've played around with this a bit: LTeX seems to work as-is by just changing the version bound for CairoMakie. teximg! almost works, except that the size is off and that the text is squished (markerspace = :pixel seems to be ignored).

LTeX

image

teximg!

image

EDIT: It seems I didn't use the current version of Makie. I'll try again.

asinghvi17 commented 1 year ago

Definitely possible. I do want to figure out how we could hook back into text, but for now I could probably comment the text hooks out and release again.

asinghvi17 commented 1 year ago

Latest master should just work on CairoMakie. Will push a release out soon as well.