Frequently asked questions - Writer

From The Document Foundation Wiki
< Faq‎ | Writer
Jump to: navigation, search

How do I take new occurrences into account in an alphabetical index?

The FAQ entry How to add an alphabetical index to my document explains the creation of an index, how to index words or expressions and how to remove entries.

The update of an index is done via a right click on the index, then Update index/table in the contextual menu or via the menu Tools ▸ Updade then:

  • All indexes and tables or
  • Current index (if the selection is located in an index)
  • Update all

However, new occurrences of indexed words are not taken into account during the update. For example, you have the following index in a document:

Marseille.......2,7
Paris...........1,4,10

The text is then modified and you add Paris on page 2. Now you wish to update the index to reflect this addition:

Marseille.......2,7
Paris...........1,2,4,10


However the updating of the index does not include the new instance on page 2, unless of course this new instance has been indexed explicitly.

It is possible to use another technique to overcome this constraint. The solution is to use a Concordance File:

  1. Edit the index (right click, then Edit)
  2. On the Index tab, check Concordance File
  3. Click File ▸ New, give a name to the file
  4. Add the words you want to index


copie d'écran cf. légende
Update of the concordance file


Note

  • To modify a concordance file, proceed in the same way:
  1. Edit the index
  2. On the Index tab, click File ▸ Open then
  3. File ▸ Edit
  • This technique has several advantages:
    • It avoids having to index words in the document multiple times
    • It allows you to define once and for all the words you want to index regularly.