Hover over Latex/ Unicode Character to see the Latex Sourcecode

Hey :slight_smile:

I really like the unicode support in Julia. But sometime it’s hard to differentiate different latex character. Wouldn’t it be nice if there were a way to look them up and maybe get the latex source code (\alpha for α)

help?> α
"α" can be typed by \alpha<tab>
2 Likes

Oh thanks. That’s great!

help?> 👍
search:

Couldn't find 👍
Perhaps you meant ❌, 👍, !, %, &, *, +, -, /, :, <, >, \, ^, |, ~, ÷, π, ℯ, ∈, ∉, ∋, ∌, ∘, √, ∛, ∩, ∪, ≈, ≉, ≠, ≡, ≢, ≤, ≥, ⊆, ⊇, ⊈, ⊉, ⊊, ⊋, ⊻, !=, //, <:, <<, <=, ==, =>, >:, >=, >>, GC, cd, cp, fd, im, in, mv, pi, rm, |> or IO
  No documentation found.

  Binding 👍 does not exist.

julia> 

You can also get more info by just quoting a single character in single quotes:

julia> '👍'
'👍': Unicode U+01f44d (category So: Symbol, other)

julia> '\U01f44d'
'👍': Unicode U+01f44d (category So: Symbol, other)

which will work for characters that don’t have a LaTeX shortcut built in to the REPL.

1 Like

But \:+1: gives :+1:

I don’t know any easy way of finding out except Unicode Input · The Julia Language

1 Like

This seems to be a bug in the help … typing ?👍 should show this (or any other) tab-completion shortcut. The required patch seems to be trivial if anyone wants to put together a PR:

2 Likes