numbering a document line-by-line SKIPPING blank lines...

numbering a document line-by-line SKIPPING blank lines...

Post by TnVtYmVyIG » Thu, 26 Oct 2006 23:34:02


how do i number a document line-by line and skipping blank lines AFTER
document is created?
 
 
 

numbering a document line-by-line SKIPPING blank lines...

Post by Jay Freedm » Fri, 27 Oct 2006 00:48:52

You follow the same advice I gave you before -- remove the extra paragraph
marks and replace them with either Space After in the preceding paragraph,
or Space Before in the following paragraph.

The basic fact is that if there are paragraph marks, they're going to
display line numbers. You can't change that.

If the use of extra paragraph marks is uniform -- that is, there is exactly
one blank paragraph after each nonblank paragraph, this process can be done
simply. First use the Edit > Replace dialog; put ^p^p in the Find What box,
put just ^p in the Replace With box, and click the Replace All button. Then
modify the definition of the Normal style to have 12 pt in the Space After
box (assuming the font is 10 pt).

However, if the extra paragraph marks are sprinkled at random through the
document, you'll have to replace them manually.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://www.yqcomputer.com/
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

 
 
 

numbering a document line-by-line SKIPPING blank lines...

Post by Klaus Link » Sat, 28 Oct 2006 07:27:28

Or replace ^p^p with ^p<NoNumber>^p repeatedly, then assign a (new?) style
with no line numbers (Format > Paragraph > Line and page breaks) to
<NoNumber> with Find/Replace, then delete the tag <NoNumber> (replace it
with nothing).

(Might be a bit simpler/faster if the document is very large, although Jay's
solution is cleaner in the long run)

Klaus