4 ms·
When you write formulas by hand, don't you write them in serial format i.e. symbol by symbol? The advantage of hand is that you can often write the symbols in w
by abdullahkhalids 6y ago
When you write formulas by hand, don't you write them in serial format i.e. symbol by symbol? The advantage of hand is that you can often write the symbols in whatever order you want, while latex has pretty much a canonical order.
Eg. by hand, you can write down the denominator of a fraction before the numerator. While latex require numerator before denominator.
- ajuc 6y agoYou filled the numerator and want to switch to denominator - how do you specify that with keyboard? You could use TAB or something, but that denominator could be nested in 10 levels of other stuff so you probably use mouse or jump for 5 seconds randomly until you get to the right place. The problem is that you have to jump which "by hand" is natural (start writing slightly lower) while with keyboard requires switching to mouse and back or remembering shortcuts and modeling the tree structure of your formula in your head to know where the shortcut will jump. Same with introducing new levels of nesting. That's why I prefer just writing code for formulas over graphical editors.
- enriquto 6y agothis is exactly the purpose of vim, dude
- ajuc 6y agoI haven't seen tree-edit mode in vim, I've seen it in emacs for clojure (it was called paredit or sth like that) and I've tried to learn it but couldn't get used to it in a few days. Maybe it would work better for formulas.
- enriquto 6y agoThere are a lot of "fancy" packages tailored to latex and formulas like vim-latexsuite, that set up place holders that you can navigate around and whatnot. But even without all that, a very basic thing that you can do is move around the matching pairs of braces (and brackets, and other paired things) using % If you do not want to move, but only see where the matching brace is, you can "set showmatch" and it will flash the matching brace when your cursor passes through the other one. This is really helpful for writing nested formulas (although a better strategy is to add a lot of newlines and whitespace so that the structure of your formulas is clear).
- ajuc 6y agoEven mcedit shows matching braces, that's not tree editing :) That would be editor showing a formula in graphic form and allowing you to jump around on it and add/move around nested parts of it with shortcuts.
- abdullahkhalids 6y agoI am comparing latex with hand. Both are serial, except hand has more freedom. There is no mouse required to use latex. You can write arbitrary math expressions without the mouse.