The Julia documentation https://docs.julialang.org/en/v1/manual/variables/ says "In the Julia REPL and several other Julia editing environments, you can type many Unicode math symbols by typing the backslashed LaTeX symbol name followed by tab."
How do I find a list of supported symbols and their expressions?
I tried \ddot{x} which failed.
You can do x<tab>\ddot
.
Or x\ddot<tab>
assuming you want ẍ
You can get a complete list by just typing \<tab>
But it's a long list!
Zulip won't even let me paste the whole thing
in any case, it's usually more useful to start typing \
and then _something_ you think is likely, and then hit <tab> twice to see the available options matching what you've typed so far
Brenhin Keller said:
Or
x\ddot<tab>
Thanks Brenhin - isn't that beautiful!
My favorite trick is if you have a unicode symbol you want to type but don't know how, you can paste it into the Julia help?>
prompt and it'll tell you how to type it!
help?> ẍ
"ẍ" can be typed by x\ddot<tab>
search:
...
Peter Goodall said:
How do I find a list of supported symbols and their expressions?
Your question was already answered but just in case you're searching for sth again, have a look at this (rather long) list which is easily searchable via your browser's search feature (unlike the REPL output of \<tab>
): https://docs.julialang.org/en/v1/manual/unicode-input/
using REPL; REPL.symbols_latex
could probably be made searchable with a little effort
Last updated: Nov 22 2024 at 04:41 UTC