On Wed, 15 Nov 2006, Abdelrazak Younes wrote: > > > > perhaps 'M-s', to this action (combined with a separate GUI button)? > > > We already have Alt-M-s and that's fine. But I would like something even > > > simpler than that. > > > > What the heck does 'Alt-M-s' mean? Or do you mean 'M-p s'? > > (I thought Alt and Meta was the same key...) > > Yep typo, sorry, I really meant Alt+p s
No worries, I just got confused :-) Actually it'd be quite funny to see a new (Windows) user try and find the combination 'Alt-M-s'... In another post, Jean-Marc wrote: > Georg> I have added a button to my toolbar to do this. It is not 100% > Georg> fool proof (because it uses layout Standard, and the default > Georg> layout is named differently in some classes), but for me it is > Georg> OK. > > We could decide that layout-paragraph without argument sets layout to > default. Jean-Marc, do you really mean 'layout-paragraph'? Fiddling a bit I thought it was 'layout' that changes the layout. Using 'layout-paragraph' brings up a dialog. I'll assume it is 'layout' in what I write below. I'll try to summarize the different alternatives discussed in this thread: Currently available alternatives: * Use keyboard shortcut 'M-p s' * Use 'M-x layout Standard', i.e * Use the pull-down list with environments and select Standard I *think* that an (expert) user can currently also configure his system a bit so the followin alternatives also become available: * Bind a command-sequence to e.g. M-C-s that invokes 'layout Standard' using: \bind "M-C-s" "command-sequence layout Standard;" * Create a toolbar button for this purpose by creating and icon with the name (?) "command-sequence layout Standard;" and place it in the directory ??. LyX will then execute the command when the user clicks on the icon. (Is this how you do it, I don't remember!) Any of the "expert" alternatives above could of course be made to work in a new release of a LyX by default. New suggestions and alternatives: * new-1 (Andreas): Click "Decrease depth" buton and if on the first level, (and in Itemize/Enumerate/Descirption/List), the environment changes to Standard. ** Make it work only for Itemize/Enumerate that is not followed by any text, i.e. for * <empty> but not for * text... * new-2 (Abdel): If the paragraph is empty, <BackSpace> switches to Standard instead of deleting the paragraph. (In order to delete a paragraph you have to press <BackSpace> twice). * new-3 (JMarc): Make 'layout' without argument set the paragraph to Standard (or whatever the standard paragraph type is called). This makes it easier to get a button to work in all types of document. * new-4 (JMarc): "kill break-paragraph-keep-layout (M-Return) and recycle the binding to a new break-paragraph-reset-layout that would: - insert a paragraph break - reduce depth by one - set the layout to the one of the enclosing nesting (think enumerate in itemize) or the standard layout at depth 0. I think the resetting at the time of a paragraph break is better than after the fact." (Note: I didn't get this bit...) * new-5 (Abdel): Extend the dEPM mechanism: Typing return twice after a list or an enumeration automatically switches the paragraph layout to "Standard". I think that we should do the following: * Do 'new-3', i.e. let 'layout' without argument set the paragraph layout to "Standard" * Create an (optional?) toolbar button for changing to "Standard" If we in addition should do something, I think that 'new-5' sounds interesting, i.e. return twice after a list changes to Standard. cheers /Christian PS. I discovered that the argument of the LFUN layout is case sensitive. In other words, 'layout Standard' works but 'layout standard' doesn't. Maybe it should be case insensitive? -- Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr