Page breaks

R

Robert

A dera friend of mine wrote a book of poetry. Being new to computers, she simply pressed enters after a poem to get to the next page for a new poem. Well now that is a problem. I am wanting to put page breaks after each poem and delete the unneeded paragraph after a poem. There is one poem to a page and there is 178 pages. The page break is fairly simple but time consuming. But how can I delete the extra paragraphs?
I think I am looking for a macro that will insert a page break after each poem then delete all blank lines down to the next poem? I figure I will have to execute this macro below each peom (177 times)
 
S

Suzanne S. Barnhill

Let's assume that she also pressed Enter at the end of each verse of the
poem. It would really be better for each verse to end in a line break
instead (Shift+Enter) so that each stanza is a single paragraph. So start by
using Find and Replace to replace ^p (a paragraph break) with ^l (a line
break--that's a lowercase L, by the way).

Let's assume that she also pressed Enter twice between stanzas of a single
poem, so replace ^l^l with ^p. That will already have reduced the extra,
empty paragraphs between poems by half (because each one was replace with a
line break, and then every pair of line breaks was replaced with a single
paragraph break).

I'd be inclined to apply "Page break before" formatting to the first stanza
of each poem instead of using a manual page break, and if each poem is a
single stanza, then you should definitely do that, because you can then
search for ^p^p and replace with nothing until you don't have any empty
paragraphs left.

But if some poems have more than one stanza, then you'll need to be
trickier. You'll need to search for two *or more* paragraph marks in a row
and replace with a page break (^m). The way to do this is to use wildcards,
and I'm not experienced enough with these to be sure I'd give you the right
expression, so see http://www.mvps.org/word/FAQs/General/UsingWildcards.htm

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Robert said:
A dera friend of mine wrote a book of poetry. Being new to computers, she
simply pressed enters after a poem to get to the next page for a new poem.
Well now that is a problem. I am wanting to put page breaks after each poem
and delete the unneeded paragraph after a poem. There is one poem to a page
and there is 178 pages. The page break is fairly simple but time consuming.
But how can I delete the extra paragraphs?
I think I am looking for a macro that will insert a page break after each
poem then delete all blank lines down to the next poem? I figure I will have
to execute this macro below each peom (177 times)
 
S

Susan W. Gallagher

Robert
Assume that there are double returns within the poems, but that there are at least 3 returns at the end of every poem. The easiest way to solve your problem is this

Step
Find a character that does not appear in the poetry -- %, #, or @ ought to do. In this example, I'll use %. In the instructions below ^p is the code that Word uses to find paragraph marks, ^m is the code for manual page break

Step
In the replace dialog box, replace ^p^p^p with %. Perform this replace repeatedly until Word tells you that zero replacements were made. This leaves you with no page breaks and a string of %%%%% at the end of each poem

Step
Replace %% with % repeatedly until Word tells you that zero replacements were made. This leaves you with a single % at the end of each poem

Step
Replace % with ^m which is the special character for manual page breaks

Step
Replace ^p^p^m with ^p^m repeately until Word says that zero replacements were made to clean up any extra returns at the bottom of pages

Step
Replace ^m^p with ^m repeatedly until Word says that zero replacements were made to clean up any extra returns at the top of pages
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top