3 ms·
It's not obvious to me what "TeXmacs's macro arguments can be edited visually" means at a glance. It seems to mean: after defining a macro, in this case a com
by JadeNB 7y ago
It's not obvious to me what "TeXmacs's macro arguments can be edited visually" means at a glance. It seems to mean: after defining a macro, in this case a commutative diagram, you can paste the 'skeleton' of a macro, and fill in arguments in the skeleton rather than having to write out the invocation of the macro. Here, each argument appears several times in the commutative diagram, and the diagram remains 'consistent'; changing an entry in one place changes all of the other entries that the macro defines to be the same. That's pretty neat as an effect, although not something I think I've ever wanted.
On the other hand, the process of defining the macro looks hideously painful, with a separate mouse hunt-and-click just to insert a macro argument. I understand the argument for structured text editing, but does it have to be mouse-driven? That is, do I have to use a mouse to insert macro argument A, or can I just type A within the macro definition, or is there possibly some middle ground where I can just type A, but pre- or post-pend some modifier key? (I've never used TeXmacs, though I've always been interested to give it a try ever since I realised it wasn't just "emacs + TeX"; I'm too wedded to the vim system.)
- mgubi 7y agoI did the video, and I was lazy: you can type Ctrl+arrow (as indicated in the tooltip) to insert more placeholders, no need to use the mouse. and then references are inserted with \A, etc.. Anyway you can define VIM modal keybindings ;) http://forum.texmacs.cn/t/a-very-tiny-vim-in-texmacs/176/7 http://forum.texmacs.cn/t/a-very-tiny-vim-in-texmacs/176/7
- JadeNB 7y agovim emulation is always dangerous, because it falls so easily into an uncanny valley—it lulls you into feeling comfortable, and then is more jarring when you hit a bump than if you knew all along you were in a different editing paradigm. Anyway, thanks! (Also, to be clear, I wasn't criticising the use of the mouse, just hoping that it wasn't the only way.)