Link to home
Start Free TrialLog in
Avatar of eloureiro
eloureiro

asked on

Indexing words in numbered lists (with links) in Word 2007

Hi,

I have an extensive document with numbered lists inside numbered lists:
A.
 a.
  i.
   1.
   2.
  ii.
   1.
   2.
   3.
 b.
   i.
    1.
    2.
    3.
   ii.
    1.
    2.
B
 a.
  i.
   1.
   2.
  ii.
   1.
   2.
   3.
 b.
   i.
    1.
    2.
    3.
   ii.
    1.
    2.
C. (etc.)

I'd like to index some words, but refering to the position in numbered lists instead of page number.

For example, indexing ORANGE, I'd like the Index to show not all the page numbers in which ORANGE is found, but the specific position in the lists.
Instead of:
ORANGE..... 3, 6, 7, 13
I need:
ORANGE..... A-a-ii-3, B-a-i-2

I'd also like these specific positions to be links to the numbered lists. For instance, when clicking on B-a-i-2, I'd go to number 2 of "i" of "a" of "B".

And, if it's not to ask too much, I'd like these links to be preserved when saving this word document into a PDF file.

Is it possible?
How could it be done?

Thanks in advance,

 Eduardo
ASKER CERTIFIED SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
unless u used Heading styles (Heading 1, Heading 2, etc,) numbering, i don't think this is possible in the way you describe th problem
Avatar of eloureiro
eloureiro

ASKER

Hi, Paul. How could I apply Heading without losing the numbering? And, after, how could Index words associated with these Headings?

I played with this last night and the standard index is only going to produce page numbers.  :-(

Do you want to  select your own index entries using {XE } tags?

Or are you looking for an index builder that will build a table of words and their use locations?
If so, that would require some non-trivial programming.  First, you would need to iterate your paragraphs, gathering the ListLevelNumber and ListString values
Option Explicit


Dim colLevelNum as New Collection
Dim colListString as New Collection
For lngPP =1 to ActiveDocument.Paragraphs.Count
  colLevelNum.Add activedocument.Paragraphs(lngPP).Range.ListFormat.ListLevelNumber
  colListString.Add activedocument.Paragraphs(lngPP).Range.ListFormat.ListString
Next

Open in new window


Then you would need to iterate the collections, creating a concatenated outline 'path' for each paragraph, since you need to know the parentage for the index.
aikimark is correct, it can't be done with ToC either...
Aikimark, I'm not a programmer so I couldn't even understand completely your answer. Sorry for that.

Since the solution seems so complicated, let me try another approach...

Is it possible to link the page numbers in the Index to the words in respective pages?
For example, in
ORANGE..... 3, 6, 7, 13
Is it possible to click on number 6 and go to the first occurrence of ORANGE in page 6?
That is not all the way I want it, but anyway...

I want my reader who is interested in a certain topic to easily locate the points in the document where that topic is present.
Are you going to insert your own index tags?
I have a long text. I thought to select some words from this text and mark an entry for all occurrences of each word.
mark it up and post it.  that will give us something to play with.
This can be accomplished with the Index feature of Word 2007: References tab -> Index function ->select a word or expression -> click on Mark Entry -> select Mark All button.

Once all the keywords have been marked, go to the end of the document: References tab -> Index function -> then select Insert Index

Here's an example: Index-2010PS.docx
Ok, take a look at a file... I've marked two words: "tapeba" and "anacé". And I've also created an index at the end.

(Tomorrow morning, I'm going to travel without internet access until late Sunday. Excuse me if my next comment is not so fast.) teste-PRESEN-A-IND-GENA-E-DE-POP.doc
That I've done, Paul, but I'd like position in numbered lists instead of page number, or at least linkable page numbers which could lead to the first occurrence of that word in that page.
It was solved not the way I liked. But it helped as a Plan B.