using Makie, MakieTeX
teximg(Rect2(0, 0, 122, 24), raw"\hat {f}(\xi )=\int _{-\infty }^{\infty }f(x)\ e^{-2\pi ix\xi }~ dx")
using MakieLayout, Makie, MakieTeX
scene, layout = layoutscene(resolution = (500, 200));
ax = layout[1, 1] = LAxis(scene);
hidexdecorations!(ax); hideydecorations!(ax);
tex = layout[2, 1] = MakieTeX.LTeX(scene, raw"\int \mathbf E \cdot d\mathbf a = \frac{Q_{encl}}{4\pi\epsilon_0}");
scene
There is a way to integrate LTeX into a legend, but it's pretty hacky now. Ask on #makie
in the JuliaLang Slack if you want to know.