# Latexify.jl outputs incorrectly when variable names contain both unicode and ascii

It seems that if a variable contains both unicode and ascii character, latexify will product incorrect output:

julia> latexify("δa")
L"$\deltaa$"


but what I want is :$\delta a$, adding _ would not help because it will change into \delta_{a}
How can I get around this?

This looks like a bug (a space or a {} should be added after commands for valid LaTeX code), perhaps open an issue for this package.

1 Like

Thanks @ChenNingCong for filing the issue (and @Tamas_Papp for suggesting filing it) . This has now been fixed and just needs to go through some testing and the release process before it is available to users.

2 Likes