Bug 64795 - [FORMATTING] Add new feature of 'keep with previous paragraph' formatting option for Writer
Summary: [FORMATTING] Add new feature of 'keep with previous paragraph' formatting opt...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: lowest enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 114643 (view as bug list)
Depends on:
Blocks: Paragraph-Dialog
  Show dependency treegraph
 
Reported: 2013-05-20 20:13 UTC by Vossman
Modified: 2024-09-29 09:15 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vossman 2013-05-20 20:13:15 UTC
Feature request: Writer paragraph formatting has a 'keep with next paragraph' how about a 'keep with previous paragraph'. When formatting, I usually have an equation style and would like it to always stay with the previous paragraph. Other times when writing a step-by-step manual I would find it useful with a diagram style.

As far as I can tell, Adobe products (e.g., InDesign) do have this feature..

This has come up elsewhere:
* "Any way to "keep with previous" in Writer?"
http://listarchives.libreoffice.org/global/users/msg06531.html
* "Do you ever wish Word had a "keep with previous" setting for paragraphs?"
http://word.tips.net/T000239_Keep_with_Previous.html
* "Where is Keep-With-Previous?"
http://www.oooforum.org/forum/viewtopic.phtml?t=36848
* "SUGGESTION: Keep With Previous - Microsoft Community"
http://answers.microsoft.com/en-us/office/forum/office_2013_release-word/suggestion-keep-with-previous/569060cf-168f-40e7-8a22-f93f5192d5ac
Comment 1 Pablo Iranzo Gomez 2013-05-22 11:14:33 UTC
Keeping with next will also not make titles to be alone on a page while next paragraph is on next one.

This also should be default for all 'title' styles.
Comment 2 Joel Madero 2014-05-28 15:37:43 UTC Comment hidden (obsolete)
Comment 3 deprez.maarten@gmail.com 2015-06-25 15:25:41 UTC
I need this too! I would like to use it to keep block citations (marked with specific style) together with the paragraphs before and  after them.

Note that the version i am using (4.4.3.2) has a bug / unexpected behavior as to the combination of "keep with next paragraph" and orphan/widow control options, which would be relevant for the "keep with previous paragraph" option too. Currently, setting the "keep with next paragraph" option seems to cause the orphan option to be ignored, causing the *whole* paragraph to be moved to the next page to accompany the next paragraph.

As an example: i have a 12-line paragraph with "keep with next" on and orphan/widow control both set to 3, followed by a five line paragraph with "do not split" option (but might as well have orphan/widow control  turned on). When these two paragraphs happen to be placed on a page boundary, both go to the next page, as if the first paragraph would have "do not split" enabled. I expect the first paragraph to fill as much of the first page as possible, preserving at least three lines for the next page to go with the next paragraph. The same should happen, of course, if the second paragraph had "keep with previous" enabled.
Comment 4 Alan Smithee 2016-03-09 03:13:59 UTC
This would be a great enhancement. Without it, I am forced to create "junk" styles simply to turn off the "keep with next" when I have multiple blocks of text that follow a general pattern.

Allowing the user to keep with the previous paragraph would eliminate a lot of the work and trouble associated with clumsy kludges like the above.
Comment 5 Regina Henschel 2017-12-22 19:07:12 UTC
*** Bug 114643 has been marked as a duplicate of this bug. ***
Comment 6 Justin L 2022-05-05 19:25:34 UTC
I hope this is not added because it will make export interoperability with MS Word formats a real pain - just like page-break-before is a pain.
Comment 7 sebalis 2023-06-14 20:39:51 UTC
I once wrote a comment describing my use case for this feature which I strangely can’t find any more in this or related bugs. Suffice it to say that I find it very sad that this bug has just been set to lowest importance because there are good use cases for this that cannot easily be fulfilled otherwise. Also I don’t think that the lack of a corresponding feature in Word should stop LibreOffice from implementing this.
Comment 8 KeepTools 2024-09-29 09:15:32 UTC
This would indeed be a useful feature, for example for all "List end" styles. (Once implemented in LO, MS Word should indeed be adapted asap to maintain compatibility.)