Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a document that is consists of many smaller portions, say paragraphs. What I want is, each of the paragraphs will be in just one page. It will not be broken in two consequent pages. In that case, the whole paragraph/portion will shift to next page.

Is it possible with Microsoft Word or LATEX? This is needed to be done programmatically. Manual edit is not useful.

share|improve this question

I believe the 'Keep lines together' option can do what you want. It can be applied automatically to existing documents, however I'm not aware of a way to make this a default for all new documents ( etc).

This website has some information on how to use this option:

share|improve this answer
Known in the trade as widow and orphan control and Word has paragraph option for it. – Linker3000 May 18 '11 at 13:01

In LaTeX each paragraph could be put into a minipage environment


There is a useful discussion on keeping units of text on the same page in the UK TUG FAQ. The UK TUG FAQ also has a section on automatic provision of the mandatory width parameter for a minipage.

If you have more questions after that you may want to try the StackExchange TeX and friends site

share|improve this answer

You can manually insert a page break after each paragraph via the Insert tab. See this for more details.

share|improve this answer
I know that. But I want something different. I have further clarified the question. – Gulshan May 18 '11 at 12:04
@Gulshan You can write a macro in Word VBA that will do essentially the same thing. I'm not sure what you are expecting. – jonsca May 18 '11 at 12:08

In MS Word, you can do one of two things:

  1. Do a Find and Replace. Search for ^p and replace with ^m. The downside of this is that if you have multiple ^p's between your paragraphs, you'll also get multi-page breaks. Also, if you add paragraphs later, you will have to do the Find and Replace again.

  2. The more "programmatic" way is to go to the Format menu, select Paragraph... and under the Indents and Spacing tab, in the Spacing section, set After: to a large number (longer than the length of the page), like 1000 pt (the maximum for MS Word 2011 for Mac is 1584 pt). This method has the advantage that you only have to do it once. New paragraphs will follow the same formatting.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .