On Wed, Oct 30, 2024 at 09:42:37PM +0200, matan guedj wrote: > Hello, > I want to set a shortcut that, given a highlighted portion in the math > environment, will create an overset and overbrace above said highlighted > portion of text (the same thing with underset and underbrace as well). My > attempts have failed so far. > what I imagine is lets say I have the following expression highlighted > (without the underbrace and underset) and when I apply the shortcut it'll > create them both for me to write then in the over/underset. > [image: image.png] > I'm on windows 10 on lyx version 2.4.2, > I would also appreciate if someone can reference me to some article/source > to learn how to do even more complex shortcuts. > > and I'm looking to do this in shortcuts and not macros, just to be clear.
I am not sure what you mean, but try if the something similar to the following tuned to your wishes can be done in command buffer(Alt+x); if so, you can just assign the complete command to the shortcut. command-sequence math-insert \overbrace; char-backward-select; math-insert \overset Pavel -- lyx-users mailing list lyx-users@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-users