5 ms·
But you can't type α, ∂, or ∫ in a standard keyboard.
by guipsp 8y ago
But you can't type α, ∂, or ∫ in a standard keyboard.
- knolan 8y agoYou can on a Mac. Holding the option key allows typing a whole host of symbols. https://beebom.com/how-type-hidden-mac-keyboard-symbols/ https://beebom.com/how-type-hidden-mac-keyboard-symbols/
- guipsp 8y agoRight, and you can do the same on linux with the compose key. But it isn't very intuitive, discoverable or rememberable.
- enriquto 8y ago> you can do the same on linux with the compose key. But it isn't very intuitive, discoverable or rememberable. Well, LaTeX itself is not very discoverable either
- knolan 8y agoIt’s pretty good IMHO. Greek symbols are all obvious. \Omega and \omega for upper and lowercase omega etc. Super and subscripts with ^{} and _{} also work with \sum and \int for indices and intervals. Software like Latexit and Mathpix also help a lot.
- slrz 8y agoBadly discoverable? Sure. You can vastly improve the remembering part by picking appropriate mnemonics. The Plan 9 keyboard file is a nice start, I think. It follows a set of rules so you don't have to remember a large number of sequences but can often guess the right one intuitively. ASCII digraphs for mathematical operators give the corresponding operator, e.g., <= yields ≤. Greek letters are given by an asterisk followed by a corresponding latin letter, e.g., *d yields δ. https://github.com/9fans/plan9port/blob/master/lib/keyboard https://github.com/9fans/plan9port/blob/master/lib/keyboard https://9fans.github.io/plan9port/man/man7/keyboard.html https://9fans.github.io/plan9port/man/man7/keyboard.html There's a program (mklatinkbd) to convert it to a format usable with X11.
- grenoire 8y agoThis is like asking someone to use Alt codes (https://www.alt-codes.net/ https://www.alt-codes.net/) on Windows, it's highly unintuitive and cumbersome.
- Jtsummers 8y agoThey aren’t terribly intuitive, but they are much easier than alt-codes. If you’re a touch typist it doesn’t take long to memorize a reasonable number of symbol positions. I still can’t temember any alt-codes though when I’m on a windows machine.
- knolan 8y agoI know the few I use regularly and the rest are easy to get via ctrl CMD Space. I’ve added various symbol sets to the character viewer and it suits my work flow.
- enriquto 8y ago> But you can't type α, ∂, or ∫ in a standard keyboard. I have a standard keyboard and I type greek letters easily. ALTGR+a, and so on. If somebody is not able to configure their keyboard to do this they are not probably writing LaTeX, either.
- zimpenfish 8y agoIf memory serves me correctly, there was no way to type those symbols on an Acorn A5000 which is where I did the bulk of my LaTeXing back in the day (1992-95). (Admittedly, this anecdata is even more useless than usual.)
- claudiawerner 8y agoIn DrRacket, you can press Ctrl+\ to insert a lambda character.
- Technetium_Hat 8y agoUnfortunately ANSI (US layout) keyboards make this much more difficult.
- joppy 8y agoI feel like this is the sweet spot for the editor to do some of the heavy lifting, for example being able to type "\alpha" and have the editor automatically transform it into the symbol α. I write a lot of LaTeX, and I would absolutely love an editor which could just transparently deal with all of the underlying mathematics markup so I would never have to see it again, and just directly edit the damn equations. Serialising and unserialising mathematics markup mentally is basically the antithesis of mathematical notation.
- gh02t 8y agoThere are some editor plugins that do something like this. I know for Vim there is tex-conceal (https://github.com/KeitaNakamura/tex-conceal.vim https://github.com/KeitaNakamura/tex-conceal.vim), which collapses a lot of LaTeX symbols to their Unicode equivalent on lines other than your current line. It's a nice middle-ground, though far from perfect.
- quietbritishjim 8y agoIn case you haven't already heard of it, LyX [1] does exactly that and it's phenominal. As an added bonus, when you move your cursor out of the equation it goes from a graphical almost-right visualisation to a proper LaTeX-generated absolutely-right preview, and manages other related LaTeX things like heading levels with a live clickable outline. The big disadvantage to LyX is that it's not LaTeX editor but a LaTeX generator. So if you want to write your next article or dissertation and can commit to it then it's great, but if you want to import work so far or collaborate with someone not using LyX then it doesn't really work (it has an import function but it's almost unusable). [1] http://www.lyx.org/ http://www.lyx.org/
- iguy 8y agoI've actually had good luck round-tripping lyx-latex-lyx repeatedly to collaborate with lyx-phobic co-authors. (As long as they don't mind equations they typed getting auto-formatted, etc.)
- tokai 8y agoThe julia interpreter does this. Or you have to press tab to do the transformation.
- starbeast 8y agoOf course you can. Armed with only a text editor, a craft knife and some tippex, you can have any keyboard layout you like on a standard keyboard.
- iguy 8y agoOn a recent mac, you can enable Greek as a second keyboard, and tick the box there to make caps lock switch keyboards. As long as you don't need caps lock as your escape key...
- adarsh_p 8y agoYou can do so relatively easily with Vim digraphs. For example, the alpha symbol can be obtained by typing Ctrl-k a Shift-8
- rbonvall 8y agoVim digraph feature (ctrl-k) is very convenient for this. Digraphs are two-character mnemonics for symbols. They tend to be easy to remember and they are standardized in RFC 1345 [1]. Greek letters are always a latin letter followed by an asterisk. Arrows and comparison operators are what one would guess. Mathematical symbols generally make some sense: <C-k> a * α <C-k> F * Φ <C-k> = > ⇒ <C-k> - > → <C-k> > = ≥ <C-k> 0 0 ∞ <C-k> d P ∂ <C-k> I n ∫ [1]: https://tools.ietf.org/html/rfc1345 https://tools.ietf.org/html/rfc1345