listnum converting

G

Guest

I'm inserting a WordPerfect Document in to Word. I have to do some cleanup to
the document. The one that has me stuck is the outline numbering that comes
across into word. What comes in looks like 1)0 or a) and the code reads as
follows: {LISTNUM 40 \1 1}0 and {LISTNUM 40 \1 2 \s 1}. I want to convert
this to a custom headings (Heading 1, Heading 2, ect) that I have created.
How do I go about doing this?
 
K

Klaus Linke

Fuzzhead said:
I'm inserting a WordPerfect Document in to Word. I have to do some cleanup
to
the document. The one that has me stuck is the outline numbering that
comes
across into word. What comes in looks like 1)0 or a) and the code reads as
follows: {LISTNUM 40 \1 1}0 and {LISTNUM 40 \1 2 \s 1}. I want to convert
this to a custom headings (Heading 1, Heading 2, ect) that I have created.
How do I go about doing this?


You can probably use Find>Replace.

Use for example
Find what: {LISTNUM 40 \l 2 \s 1
(careful: it's a small "L" for "level", ot a "one"),
and replace with the proper heading style, say "Heading 2".

Once you're done and the style is applied, use Replace again and replace the
field with nothing (= delete it).

Greetings,
Klaus
 
G

Guest

Klaus Linke said:
You can probably use Find>Replace.

Use for example
Find what: {LISTNUM 40 \l 2 \s 1
(careful: it's a small "L" for "level", ot a "one"),
and replace with the proper heading style, say "Heading 2".

Once you're done and the style is applied, use Replace again and replace the
field with nothing (= delete it).

Greetings,
Klaus

Klaus,

I tried what you said but I get the following ERROR Message: The Find What
text contains a Patter Match expression which is not valid.

Word just seems not to recognize the outline numbering converted from
Wordperfect.

Fuzzhead
 
K

Klaus Linke

Find what: {LISTNUM 40 \l 2 \s 1

Sorry, that should have been
You can type the ^d by hand, or use the "Special" button at the bottom of
the dialog, then "Field".
You can then copy/paste the field code following the field brace (but not
with the closing brace) into the dialog from the document (Ctrl+C/Ctrl+V) to
avoid typos.

Klaus
 
G

Guest

Klaus,

I tried this "^dLISTNUM 40 \l 2 \s 1" and it ran through the document, but
it said that it found no matches. I verified that my code is correct by
Shift+F9 on it. What is there is exactly what you have in your example. Is
the "LISTNUM" case sensitive and that is why it's not find it?
 
K

Klaus Linke

Do you have "view field codes" turned on so you see them (Alt+F9)?

The searcj is case sensitive if you specified that, as with ordinary text.
And as I said, you'd typed \1 instead of \l ("one" instead of small "L") in
your sample field.

If you copied the field code from the doc to the dialog, and looked out for
(missing) blanks, there isn't anything else that might go wrong and comes to
my mind (which is halfway in the long weekend already).

Klaus
 
G

Guest

Klaus

It was fat fingers on my part. It works just like you said. Thank You.
On other question is after I convert to the correct heading, I want to
replace d^LISTNUM 40 \l 1 and a tab right after it with nothing. In other
words I want to delete them. I know if I enter d^LISTNUM 40 \l 1 in Find Next
and in Replace I leave it blank, it deletes it. But how do I include the tab?
 
K

Klaus Linke

[...] On other question is after I convert to the correct heading, I want
to
replace d^LISTNUM 40 \l 1 and a tab right after it with nothing. In other
words I want to delete them. I know if I enter d^LISTNUM 40 \l 1 in Find
Next
and in Replace I leave it blank, it deletes it. But how do I include the
tab?

You could try another ^d for the closing field brace, followed by ^t for the
tab.
But IIRC, searches like this sometimes don't work properly.

If it does fail, you could maybe clean up whitespace at the beginning of the
paragraph, in a separate replacement:
Find what: ^p^w
Replace with: ^p
(this replacement without "Match wildcards")

Klaus
 
G

Guest

Thank you it worked.


Klaus Linke said:
[...] On other question is after I convert to the correct heading, I want
to
replace d^LISTNUM 40 \l 1 and a tab right after it with nothing. In other
words I want to delete them. I know if I enter d^LISTNUM 40 \l 1 in Find
Next
and in Replace I leave it blank, it deletes it. But how do I include the
tab?

You could try another ^d for the closing field brace, followed by ^t for the
tab.
But IIRC, searches like this sometimes don't work properly.

If it does fail, you could maybe clean up whitespace at the beginning of the
paragraph, in a separate replacement:
Find what: ^p^w
Replace with: ^p
(this replacement without "Match wildcards")

Klaus
 

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

Similar Threads

LISTNUM 1
LISTNUM Question 5
LISTNUM & Wildcards 14
LISTNUM with tab positions 3
LISTNUM number display instable 2
Word 2007 - Listnum fields 2
Restart numbering using LISTNUM 2
2007 paragraph numbering 1

Top