On 15/03/2023 16:49, Ehud Behar wrote:
I want to create a shortcut to insert the short thin red line that separates frames when the document class is Beamer.

I know how to create shortcuts, I just don't know the name of the "function" that actually inserts this red line.

In the lyx file this red line is called "Separator plain".

If you really think of it, I don't know the function name because I also don't know how to insert it from the menus, so you are welcome to tell me how to do that as well.

I think it depends on your LyX version where to find the menu entry.

It used to be possible to insert a separator from the "Edit" menu.

In recent versions it was replaced by menus called "Separated Frame Above" and "Separated Frame Below" in the "Insert" menu. It is already bound to the Alt+P Alt+Return and Alt+P Return, respectively.

You can see the function by opening the Messages Pane (View menu) and executing the function. Spoiler ahead! It is

command-alternatives environment-split ; environment-split previous

The menu entries disappear when the Standard environment is used. I guess it would be better to show them at all times but gray them out when not accessible. In that way the user gets accustomed to that there are such menu entries and where those menu entries are. Also, for some reason when you are in the "Frame Title" inset, then the command disappears. I guess it would be better to make it accessible in that case or at least only gray it out.

(I made the suggestion elsewhere that these separators should be disbanded and instead frame content should be distinguished from non-content by indentation. But it is yet to be seen whether this works and will be taken up by the developers.)

--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to