It is possible to prevent a linebreak with \mbox
or a ~
. But suppose that you have a very long document, so is it possible to prevent a linebreak for the last line of each page.
A linebreak can be done in other lines except the last line of page ? I need a general solution. For a long document it is not possible to check bottom of the each page and wrap the paragraph with mbox
or samepage
, compile again and check for other pages forward.
In following paragraph, the word "indignation" was broken to two.
samepage
environment and search T.SE as this has answers here.\usepackage[defaultlines=2,all]{nowidow}
. But even there exist 2 lines at the end of page, sentence shouldn't be broken to the next page.