[PATCH] Support \\*

Chris Spiegel cspiegel at gmail.com
Tue Jun 7 00:46:32 UTC 2022


I'm attaching two patches, one against git master, the other against
the 2.3.x branch. These patches add a starred new line break
formatting option (\\*) to complement "Ragged line break", i.e. the \\
macro.

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.  I've also
given it the keyboard shortcut of meta-shift-enter, which is in the
ballpark of the other newline-style formatting options.

I've been using this patch at least since the LyX 1.6.0 days, with no problems.

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.

-- 
Chris Spiegel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newline-star-master.patch
Type: text/x-patch
Size: 4328 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220606/7f8d67c9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: newline-star-2.3.x.patch
Type: text/x-patch
Size: 4256 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20220606/7f8d67c9/attachment-0001.bin>


More information about the lyx-devel mailing list