2 ms·
In the Julia REPL you can type LaTeX commands for Greek letters and math symbols, and a <TAB> converts them to the actual character; so \mu<TAB> gets you a μ. O
by leephillips 5y ago
In the Julia REPL you can type LaTeX commands for Greek letters and math symbols, and a <TAB> converts them to the actual character; so \mu<TAB> gets you a μ. Or you can just input the Unicode directly. I’m constantly doing such things everywhere, so the extra few keystrokes seem worth it to get code where the math looks a more like math. Using the mouse and a menu or character palette is the worst possible solution.
EDIT: In general it makes sense to set up your keyboard with a compose key and a “dead Greek” key, and set up your Compose table so the shortcuts make sense to you. Then you can use an expanded set of symbols everywhere, including comment boxes like this one. You can even put things like your email address in your Compose table.