Hey ![]()
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 Ξ±)
Hey ![]()
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>
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.
But \:+1: gives ![]()
I donβt know any easy way of finding out except Unicode Input Β· The Julia Language
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: