Frequently asked questions - Writer
TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate
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
▸ then:- Indexes and tables or
- Current index (if the selection is located in an index) or
- 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:
- edit the index (right-click, then Edit index);
- under the Type tab, check ☑ Concordance File;
- from the dropdown menu select ▸ ;
- give a name to the file and save; and
- add the words you want to index.
Note
- to modify a concordance file, proceed in the same way:
- edit the index;
- on the Index tab, click ▸ ; and
- ▸
- 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.