I used to use a macro from myself in MSOffice to easily keep paragraphs together.
The macro was
Sub Paralie()
Dim p As Paragraph, bAlready As Boolean
bAlready = True
For Each p In Selection.Paragraphs
If Not p.KeepTogether Then
bAlready = False
Exit For
End If
Next
If bAlready Then
'ParaLignesSolidaires 0
'ParaSolidaires 0
For Each p In Selection.Paragraphs
p.KeepWithNext = False
p.KeepTogether = False
Next
Else
'ParaLignesSolidaires 1
'ParaSolidaires 1
For Each p In Selection.Paragraphs
p.KeepWithNext = True
p.KeepTogether = True
Next
End If
End Sub
I searched for the same in Libre Office and did not find.
The idea is to link the macro to a keyboard shortcut to easily switch a pack of paragraphs from being kept together or not. I do this very often to get a nice page formatting.
E.g.
Title level1 some text Title level2
It is frustrating to get the “Title level2” at the top of a page. Making the “some text” linked allows to avoid that.