Paragraph Numbers in Index

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Anyone know how to get paragraph numbers to show up in an index? I want the
index entry, paragraph number, and page number. I'm using legal-numbered
heading styles for all paragraphs.
 
In a very limited trial (using a List Number paragraph), this worked for me:

Using the \t switch in the XE field, you can insert text to be displayed
instead of a page number. The syntax is:

{ XE "Index Entry" \t "Text to be displayed" }

Create your XE field as usual. If you're using the Mark Index Entry dialog,
select the radio button for "Cross-reference," and the \t switch will be
inserted manually. By default, it has the text "See" in italics. You can
leave "See," but remove the italics, as that will make the rest a little
easier. With the XE field displayed, manually edit it to insert
cross-references to the paragraph number and page number as the display
text.

If you toggle field codes (Alt+F9), you'll see something like:

{ XE "Index Entry" \t "{ REF _Ref86678126 \r }{ PAGEREF Ref86678126 } }

You can add any desired punctuation between the REF and PAGEREF fields.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Suzanne,

Thank you for the ideas. I appreciate the help, but what I'm really looking
for is something generic like "styleref" that will give me whatever sequence
or listnum applies to that paragraph without my manually editing each index
entry. Essentially, I want the paragraph number to show up automatically the
same way the page number does. I'm lazy: I really DON'T want to go through
and manually mark each index entry. (For the indexing purists: I'm not
setting up a standard subject entry, which is why I'm not concerned about
manually marking each index entry.)

Here's what I am doing: using the index feature with the \f switch to create
a custom list of requirements

We marked each requirement in the specification with an "R:" code, and I
wrote a macro that finds each code, sets up an index entry with the code, and
then grabs the text of the requirement paragraph and adds that to the index
entry. I've set up delimiters to allow me to separate the resulting index
entries so that I end up with a table showing the requirement ID, the text of
the requirement, and the page number. I want to add the paragraph number to
that. I should be able to using the \s switch, but I can't find the right
sequence number identifier to say "give me the paragraph number.

Jan
 
You can use the \s switch in the index if you've used SEQ fields to number
the paragraphs.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Suzanne: Sorry for the delay; I thought I had this on auto-notification of
replies, but apparently didn't.

I'd looked at the \s switch and the other options, but the SEQ field is
buried in the paragraphing style code, so I haven't been able to get Word to
recognize it. I'm going to try creating paragraph numbering manually rather
than using the outline/numbering feature, and see if that works. I'll let you
know!

Thanks,

Jan
 
As I say, you have to use SEQ fields to number the paragraphs in order to
use the \s switch in the index.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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

Back
Top