# Slightly weird LaTeX characters in Makie plots

Hello,

I would like to point out a strange behaviour I started to notice when using LaTeX strings in Makie plots. This issue might seem subtle, and I do not know how easy a solution could be, but I think raising it is worthwile.

The problem when using LaTeX strings in Makie, in that some characters, like greek letters, appear slightly different as they would appear when you are making a regular LaTeX document. For example, the following code

using GLMakie, LaTeXStrings

begin
x = 0:0.01:1
fig = Figure(resolution = (640, 480))
ax = Axis(fig[1, 1], xlabel = L"\omega \cos(\phi)", ylabel = L"y", ylabelsize = 22,
xlabelsize = 22, xgridstyle = :dash, ygridstyle = :dash, xtickalign = 1,
xticksize = 10, ytickalign = 1, yticksize = 10, xlabelpadding = -10)

for i in 1:5
lines!(ax, x, x .^ i, label = latexstring("x^{\$(i)}"))
end

text!(L"\omega \cos(\phi)", position=Point2f(0.0, 0.75), textsize=40)

axislegend(; nbanks = 3, framecolor = (:grey, 0.5))
display(fig)
end


produces the figure

However, characters like ω look slightly off as they would look in an standard LaTeX document. The powers of x in the legend are not looking good either. For instance, in a regular text, the string \omega \cos(\phi) is printed in as

Given the little knowledge I have currently in Julia, I am not sure where is the root of the problem. I think this is a small subtlety but one that should be corrected in order to have accurate LaTeX characters in plots.