Re: Create a shortcut to insert the frames separator for beamer documents
Am Wed, 15 Mar 2023 22:54:14 -0400 schrieb "Paul A. Rubin" : > On 3/15/23 12:46, Ehud Behar wrote: > > Just created it. > > The message pane says "Unknown function. Warning: unknown command > > definition 'newframe' > > > > Are you sure it is this name for the function? > Sorry, I forgot that long ago I set up the "newframe" command for this > purpose. I have the attached default.def file parked in ~/.lyx/commands > (on my Linux Mint system). If you already have a customized default.def > file under your home directory, you can just add the lines in mine to > your file. > > Paul There is a problem with the path to default.def. The use of this file does not consider the 'userdir' option. Kornel pgpmzjLc45nuq.pgp Description: Digitale Signatur von OpenPGP -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Create a shortcut to insert the frames separator for beamer documents
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
Re: Create a shortcut to insert the frames separator for beamer documents
On 3/15/23 12:46, Ehud Behar wrote: Just created it. The message pane says "Unknown function. Warning: unknown command definition 'newframe' Are you sure it is this name for the function? Sorry, I forgot that long ago I set up the "newframe" command for this purpose. I have the attached default.def file parked in ~/.lyx/commands (on my Linux Mint system). If you already have a customized default.def file under your home directory, you can just add the lines in mine to your file. Paul \define "newframe" "command-sequence paragraph-break inverse ; depth-decrement ; depth-decrement ; depth-decrement ; depth-decrement ; layout Frame ; inset-dissolve ; environment-split" -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Create a shortcut to insert the frames separator for beamer documents
Just created it. The message pane says "Unknown function. Warning: unknown command definition 'newframe' Are you sure it is this name for the function? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: Create a shortcut to insert the frames separator for beamer documents
On 3/15/23 11: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 bound Ctrl+Alt+Return to "call newframe" for precisely this purpose. Paul -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Create a shortcut to insert the frames separator for beamer documents
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. -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users