Text FormattingPrevent last Paragraph on a blank Page

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Stromek
Posts: 3
Joined: Mon Jan 23, 2012 11:48 pm

Prevent last Paragraph on a blank Page

Post by Stromek »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by localghost »

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.
Some points may depend on the used document class.
Stromek
Posts: 3
Joined: Mon Jan 23, 2012 11:48 pm

Re: Prevent last Paragraph on a blank Page

Post by Stromek »

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.
Stromek
Posts: 3
Joined: Mon Jan 23, 2012 11:48 pm

Re: Prevent last Paragraph on a blank Page

Post by Stromek »

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.
Post Reply