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