[PATCH] Support \\*
Jean-Marc Lasgouttes
lasgouttes.lyx.org at free.fr
Fri Jul 15 18:17:35 UTC 2022
Le 15/07/2022 à 19:32, Pavel Sanda a écrit :
> Dear Chris,
>
> welcome here and sorry for the late reply.
Hello Chris,
I can only agree with Pavel that we should have answered faster.
>> My specific use case for this is for short stanzas in a verse
>> environment: \\* will prevent a page break in the middle of a stanza.
>>
>> For lack of a better term I've called this "Starred line break" though
>> I'm sure it can be renamed to something more appropriate.
>
> Not sure either, but normal user won't get idea what is it for with
> this naming. Could not find anything better than "Line break without page break".
Or maybe 'Line break (same page)'
> Is the meaning of \\* stable enough across different environments?
I am not sure what you mean here, Pavel.
>> I've also given it the keyboard shortcut of meta-shift-enter, which is in the
>> ballpark of the other newline-style formatting options.
This is correct. What is missing is an entry for the InsetNewline
context menu in lib/ui/stdcontext.inc.
Also, it would be great to add support for this in tex2lyx.
>> Whether this is the best way to support \\* I'm not sure, but I do
>> think having the ability to add \\* directly, rather than via ERT, is
>> very useful.
>
> I think it would be OK to add it. What do others think?
I am not very excited by the screen representation, as color coding is
considered a bad thing, but I do not have a better idea right now.
Other than that, this is a good patch.
JMarc
More information about the lyx-devel
mailing list