How to apply conditions in Paragraph Styles [closed]

Say I've a paragraph (a) at the end of the page [1] with two lines still left, I mean the paragraph (a) is finished in page [1]. Now if I want to apply a condition to check the lines left after para (a) and if the lines left are less than 5 (as they're in aforementioned condition i.e. I've 2 lines left), then move para (a) to Page [2]. How to do it?

edit retag reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp close date 2016-03-03 17:24:58.348750

I presume the question is above a new paragraph fitting in the remaining space (that is how I have answered). If not though, you may need to edit the question to be clearer about exactly what is being asked.

( 2014-09-08 12:16:53 +0200 )edit

I've rephrased the question. Hope I make myself clear this time!

( 2014-09-08 23:57:15 +0200 )edit

If you think about it, my answer below is correct. You only require the orphan option and need to set the number of lines to 5 to ensure at least this number of lines remain for a paragraph at the foot of the page.

( 2014-09-09 04:17:57 +0200 )edit

Sort by » oldest newest most voted

Under the Text Flow tab > Options section > check Orphan control and Widow control options and set the value (number of lines) as required. A widow is a line that falls, in isolation, at the head of a page, while an orphan is a line that starts, again in isolation, at the bottom of a page. Turning on these options and using the default value (2) will ensure at least that number of lines remain together. There is also an option (Keep with next paragraph) that will ensure the current paragraph is kept with the following one.

This tab is available for direct formatting (Format > Paragraph...) and paragraph styles (in sidebar on the Styles & Formatting panel):

more