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

**URL:** <https://discourse.julialang.org/t/latexify-jl-outputs-incorrectly-when-variable-names-contain-both-unicode-and-ascii/30393>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 28, 2019, 5:22am UTC](https://discourse.julialang.org/t/latexify-jl-outputs-incorrectly-when-variable-names-contain-both-unicode-and-ascii/30393 "2019-10-28T05:22:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon56330260](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@anon56330260](https://discourse.julialang.org/u/anon56330260)\
**Post date:** [October 28, 2019, 5:22am UTC](https://discourse.julialang.org/t/latexify-jl-outputs-incorrectly-when-variable-names-contain-both-unicode-and-ascii/30393/1 "2019-10-28T05:22:03Z")

</div>

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

```julia
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?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [October 28, 2019, 5:35am UTC](https://discourse.julialang.org/t/latexify-jl-outputs-incorrectly-when-variable-names-contain-both-unicode-and-ascii/30393/2 "2019-10-28T05:35:03Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![korsbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/korsbo/32/15942_2.png) [@korsbo](https://discourse.julialang.org/u/korsbo)\
**Post date:** [October 28, 2019, 11:26am UTC](https://discourse.julialang.org/t/latexify-jl-outputs-incorrectly-when-variable-names-contain-both-unicode-and-ascii/30393/3 "2019-10-28T11:26:47Z")

</div>

Thanks @anon56330260 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.
