Hi,
I would like to find a solution to prevent last paragraph of the document to appear on a new page.
For example lets say I write a document which resembles to a letter. The last paragraph containing signature. I would like to prevent latex placing this paragraph on a new page alone. This paragraph forms about 3 lines. So the best solution might be to take previous paragraph and place it this new page with the signature.
I can afford making blank space on the previous page.
Widows, orphans won't work. Maybe if it is possible to tie two paragraphs together.
--
Stromek
Text Formatting ⇒ Prevent last Paragraph on a blank Page
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Prevent last Paragraph on a blank Page
For a possible solution I see several set screws for different parts of your document.
- The page geometry with its main parameters \textwidth and \textheight.
- The size of the font.
- Vertical spaces in the text body.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Prevent last Paragraph on a blank Page
Technically it could be possible if an environment can be created which can be prevented to split over pages. Like Float, however, it has weird placement. If place on spot (h) then if moved to new page it is placed in the middle instead of top of the page. Any idea in this direction would help.
Regarding document class it is "article". All settings are standard, I have not changed them in the tex source.
Regarding document class it is "article". All settings are standard, I have not changed them in the tex source.
Re: Prevent last Paragraph on a blank Page
Haha, it works through Minipage. Only that Minipage sets its own line break space and does not preserve the document wide.
Thanks for reading and considering my problem. It is solved now.
Thanks for reading and considering my problem. It is solved now.