You are looking for information about a specific topic in a book, but you cannot remember the chapter title. Instead of browsing through every page, you turn to the end of the publication, find the relevant entry, and immediately know where to look for the answer.
This is exactly how a subject index works.
You can use a similar solution in your own documents. LibreOffice Writer allows you to mark important terms, arrange them alphabetically, and assign page numbers to them.
You do not have to manually sort entries or check which pages they appear on.
In this guide, I will show you how to create an alphabetical index in LibreOffice Writer, add entries and subentries, customize the appearance of the index, and update it after making changes to the document.
What Is a Subject Index?
A subject index is an organized list of terms, names, and topics appearing in a document. Next to each entry are the page numbers where related information can be found.
Entries are most commonly arranged alphabetically. That is why this feature is called an alphabetical index in LibreOffice Writer.
A subject index is particularly useful in publications such as:
- Textbooks and books.
- Academic papers.
- Technical documentation.
- User manuals.
- Computer guides.
- Training materials.
- Encyclopedias and specialized publications.
It allows readers to find a specific topic without knowing the structure of the entire document.
What Is the Difference Between a Subject Index and a Table of Contents?
Although both elements make it easier to navigate a document, they serve different purposes.
A table of contents presents chapters and subchapters in the order in which they appear.
A subject index presents selected terms in alphabetical order, regardless of where they appear in the document.
For example, a chapter about document formatting may contain information about fonts, margins, and paragraph styles.
The table of contents will include the chapter title. However, the subject index may contain separate entries for each of these topics.
Importantly, both elements can appear in the same document and complement each other.
How to Prepare a Document for Creating an Index
Before generating an alphabetical index, consider what information your readers might be looking for.
If you are preparing a guide to LibreOffice Writer, the following entries may be useful:
- Paragraphs.
- Fonts.
- Text formatting.
- Hyperlinks.
- Margins.
- Page numbering.
- Images.
- Styles.
- Tables.
- Bookmarks.
You do not have to mark every word appearing in the document. Focus primarily on terms that are relevant to the reader.
A well-prepared index should help readers find information rather than contain random words.
How to Add an Entry to an Alphabetical Index
The first step in creating an index is to mark entries in the document.
To add an index entry, follow these steps:
- Open the document in LibreOffice Writer.
- Select the word or phrase you want to include in the index.
- Select Insert → Table of Contents and Index → Index Entry.
- In the Index field, select Alphabetical Index.
- Check the contents of the Entry field.
- Click Insert.
Writer will mark the selected portion of the document as an index entry.
You can leave the index entry dialog open and continue selecting additional terms in the document.
This makes preparing a large number of entries much more convenient.
How to Change an Index Entry Without Changing the Document Text
Not every term appears in the text in a form suitable for an index.
For example, your document may contain the following Polish sentence:
„Po zmianie marginesów dokumentu należy sprawdzić rozmieszczenie tekstu”.
(“After changing the document margins, you should check the placement of the text.”)
In the index, it is better to use the entry Marginesy (Margins) rather than the inflected Polish word “marginesów.”
To do this, select the appropriate text and open the index entry dialog.
Then enter Marginesy in the Entry field.
Writer will preserve the original sentence but display the name you entered in the generated index.
This is particularly useful in Polish because words appear in different grammatical forms.
How to Mark All Occurrences of a Selected Word
If an important term appears repeatedly, you do not have to mark each occurrence individually.
Writer allows you to automatically mark other occurrences of the selected text.
First, select the word and open the Index Entry dialog.
Then enable the Apply to all other occurrences option.
Depending on your needs, you can also specify whether the program should match case and match whole words only.
After confirming the settings, Writer will mark the matching occurrences.
However, remember that automatic searching does not recognize the meaning of words or all their inflected forms.
For example, marking the Polish word “tabela” (table) may not automatically include the forms “tabeli,” “tabelę,” and “tabelami.”
Therefore, it is worth checking the results before generating the index.
How to Create Subentries and Group Related Terms
A comprehensive index does not have to consist exclusively of individual entries.
You can also group information by topic.
For example, instead of listing every topic separately, you can create the following structure:
Images
Adding, 15
Cropping, 18
Numbering, 24
Resizing, 21
Tables
Formatting, 32
Inserting, 29
Merging cells, 35
To create this type of hierarchy, use the 1st key and 2nd key fields available when adding an index entry.
The first key allows you to specify a parent category. The second key allows you to create an additional grouping level.
For example, you can use the following settings:
1st key: Images
2nd key: Formatting
Entry: Cropping
After generating the index, you will have an organized thematic structure.
This approach is particularly useful in comprehensive textbooks and technical documentation.
How to Mark a Main Entry
Some topics may appear on many pages but are explained in detail in only one location.
In this situation, it is worth using the Main entry option.
It allows you to highlight the most important occurrence of a particular term.
For example, the term “paragraph styles” may appear on pages 8, 15, 27, and 42. However, the most comprehensive explanation is on page 27.
Marking this occurrence as a main entry allows its page number to be highlighted using the appropriate character style.
This makes it easier for readers to find the most important information.
How to Create an Alphabetical Index in LibreOffice Writer
After marking the necessary entries, you can generate the index.
It is most commonly placed at the end of the document, although Writer allows you to choose another location.
To create an index:
- Place the cursor where you want the index to appear.
- Open the Insert menu.
- Select Table of Contents and Index.
- Click Table of Contents, Index or Bibliography.
- Open the Type tab.
- From the list of available types, select Alphabetical Index.
- Enter the index title.
- Customize the available settings.
- Click OK.
Writer will analyze the marked entries, arrange them alphabetically, and assign page numbers to them.
You do not have to manually sort entries or enter page numbers.
What Does an Example Subject Index Look Like?
Suppose you are preparing a textbook about using LibreOffice Writer.
The finished index might look like this:
A
Automatic numbering, 24, 28
B
Bookmarks, 80, 82
F
Fonts, 8, 10, 15
H
Headings, 40, 42
M
Margins, 32, 34
P
Page numbering, 45, 48
Paragraph styles, 58, 60
Paragraphs, 5, 12, 18
S
Special characters, 85, 88
T
Table of contents, 52, 55
Tables, 65, 68, 72
Text formatting, 12, 16, 20
Each entry indicates the pages containing information about a particular topic.
If a term appears in several locations throughout the document and has been properly marked, the index can display all its associated page numbers.
How to Add Letters Separating Groups of Entries
An index containing dozens or hundreds of entries can be difficult to browse.
Therefore, it is worth using alphabetical separators.
These are individual letters that separate groups of entries.
To enable them:
- Right-click the index.
- Select the index editing command.
- Open the Entries tab.
- Enable the Alphabetical delimiter option.
- Confirm the changes.
Writer will divide the index into groups corresponding to successive letters of the alphabet.
You can also customize the appearance of the separators using the appropriate styles.
This ensures that even a comprehensive index remains easy to navigate.
How to Set Polish Alphabetical Sorting
When preparing documents in Polish, it is important to pay attention to how entries are sorted.
An index may contain words beginning with the letters Ą, Ć, Ł, Ś, or Ż.
Open the alphabetical index settings and go to the Type tab.
Then check the sorting and language settings.
Select Polish and the appropriate sorting method.
This ensures that entries are arranged according to the rules of the Polish language.
After changing the settings, pay particular attention to entries containing Polish diacritical marks.
How to Combine Identical Index Entries
If the same term has been marked on several pages, you may not always want to display it as separate entries.
Instead, you can combine identical entries.
For example, the index may contain a single entry:
Text formatting, 12, 16, 20
Instead of three separate entries with the same name.
Open the index settings and go to the Type tab.
Then locate the option to combine identical entries.
You can also specify how consecutive page numbers should be displayed.
Remember that it is worth using consistent entry names. If you use “Image” in one location and “Images” in another, Writer may treat them as different entries.
How to Customize the Appearance of a Subject Index
The default appearance of the index may not meet your needs.
You can customize the font, spacing, indentation, and the way page numbers are displayed.
Right-click the index and select the editing command.
In the dialog that opens, you will find several tabs corresponding to different settings.
Type allows you to configure how the index is generated and sorted.
Entries allows you to change the structure of individual entries.
Styles is used to assign paragraph styles.
Columns allows you to divide the index into several sections arranged side by side.
It is better to customize the appearance using styles rather than manually formatting each entry.
This allows you to maintain consistent formatting after subsequent updates.
How to Create a Two-Column Index
In books and textbooks, an alphabetical index often occupies two columns.
This layout makes better use of the available page space.
To create a similar layout:
- Open the settings of the existing index.
- Go to the Columns tab.
- Set the number of columns to 2.
- Adjust the spacing between columns.
- Confirm the settings.
Writer will arrange the entries according to the selected layout.
If entries contain long names or many page numbers, check whether dividing the index into columns makes it more difficult to read.
In some documents, a single wider column may be more practical.
How to Automatically Create Entries Using a Concordance File
If you are preparing a lengthy publication, manually marking every term can take a considerable amount of time.
LibreOffice Writer allows you to use a concordance file.
This is a special file containing a set of expressions that the program should search for when generating the index.
You can specify search terms, alternative entry names, and keys for grouping entries.
To use this feature:
- Open the alphabetical index creation dialog.
- Go to the Type tab.
- Enable the Concordance file option.
- Click the File button.
- Create a new file or select an existing one.
- Enter the necessary terms.
- Save the settings and generate the index.
Writer will use the prepared list when searching for entries.
You can reuse the concordance file in other documents covering similar topics.
For example, when preparing a series of computer textbooks, you can use a shared list of technical terms.
However, remember that automatic word matching is not a substitute for reviewing the relevance and accuracy of the index.
How to Edit an Existing Index Entry
If you notice a typo or want to change how an entry is grouped, you do not have to recreate the entire index from scratch.
First, locate the marked text in the document.
Then place the cursor at the index entry and select:
Edit → Reference → Index Entry
You can also use the appropriate command in the context menu.
In the dialog that opens, change the entry name or its keys.
After confirming the changes, return to the generated index and update it.
The corrected entry will then appear in the list.
How to Remove an Entry from a Subject Index
Sometimes, when reviewing a completed document, you may discover that certain terms are unnecessary.
To remove a selected entry, locate its index marking in the document text.
Then open the index entry editing dialog and use the delete button.
If the term has been marked in several locations, you may need to remove additional index entries.
When you are finished, update the index.
Removing an index marking does not require deleting the word itself from the document.
How to Update an Alphabetical Index
While editing a document, page numbers, entry names, and the number of marked entries may change.
Therefore, the index should be refreshed after completing substantial revisions.
To do this:
- Locate the index in the document.
- Right-click it.
- Select Update Index or Table of Contents.
- Check the contents and page numbers.
Writer will regenerate the list based on the current index entries.
If the document also contains a table of contents, a list of tables, and a list of figures, you can use the bulk update feature available under Tools → Update.
This is a convenient solution before preparing the final version of a publication.
Why Don’t Some Entries Appear in the Index?
If important terms are missing from the generated index, first check how they have been marked.
Simply having a word appear in the document does not automatically add it to the index.
The most common causes of this problem include:
- Failure to mark the selected term as an index entry.
- Assigning the entry to the wrong type of index.
- Failure to update the index after adding new entries.
- Incorrect key settings.
- Limiting the index scope to the current chapter.
- Incorrect word matching in the concordance file.
After checking the settings, update the index again.
You do not have to delete the entire index and generate it from scratch.
Why Does the Index Contain Too Many Page Numbers?
Not every occurrence of a term is equally important.
If you automatically mark every occurrence of a commonly used word, the index may contain a very long list of page numbers.
As a result, readers will still have to browse through many sections of the document.
Therefore, it is worth focusing primarily on locations containing definitions, explanations, examples, and specific instructions.
You can also highlight the most important occurrences as main entries.
A good index should not simply be a list of every word found in the document. Its purpose is to guide readers toward valuable information.
Can a Subject Index Be Saved in PDF Format?
Yes. An alphabetical index remains visible after exporting a document to PDF.
However, it is worth checking that the index is up to date before saving the file.
First, finish editing the document. Then refresh the index and verify the page numbers.
Select File → Export As → Export as PDF.
After the export is complete, open the finished file and check the placement of the entries.
Remember that a standard alphabetical index does not necessarily contain clickable links to pages.
You should also not expect the index in the finished PDF to update after changes are made to the source document.
If you make additional revisions, refresh the index in Writer and export the document again.
How to Prepare a Good Subject Index
Generating an index is only part of the work.
Selecting appropriate terms is equally important.
Use consistent terminology and avoid unnecessary variations of the same entry. Group related topics and mark locations containing genuinely useful information.
Also consider which terms beginner readers might use.
For example, someone learning Writer may look for information about changing letter case without yet knowing the term character formatting.
Taking these differences into account will help you create a more useful index.
Finally, check the alphabetical order, the accuracy of entry names, and the corresponding page numbers.
Frequently Asked Questions
Are a Subject Index and an Alphabetical Index the Same Thing?
A subject index contains terms and topics appearing in a publication. If they are arranged alphabetically, it can be called an alphabetical index. In Writer, the Alphabetical Index feature is used to create this type of list.
Does Writer Automatically Select the Most Important Terms?
No. The standard indexing feature requires you to mark entries or prepare a concordance file. The program automates searching for specified expressions, sorting, and assigning page numbers.
Can I Create an Index of Names?
Yes. Simply mark surnames as alphabetical index entries. If the document needs to contain several independent indexes, you can consider additional solutions, including user-defined indexes.
Does the Index Have to Be at the End of the Document?
No. You can place it anywhere, although the end of a publication is the most common location.
Does the Index Update After Adding New Pages?
After modifying the document, you need to update the index. Writer will recalculate page numbers and include newly added, properly marked entries.
Can I Use a Table of Contents and an Index at the Same Time?
Yes. A table of contents presents the chapter structure, while an index helps readers find specific topics. Both elements complement each other perfectly.
An alphabetical index in LibreOffice Writer allows you to create an organized list of the most important terms along with their corresponding page numbers.
First, mark the necessary entries using Insert → Table of Contents and Index → Index Entry.
Then generate the index by selecting the appropriate type in the table of contents and index creation dialog.
You can use subentries, alphabetical separators, main entries, and a multicolumn layout. A concordance file is also useful for larger publications.
Remember to update the index after making changes to the document and verify the accuracy of all entries before publication.
A well-prepared subject index makes even a very lengthy book, user manual, or technical document easier to use. Readers can find the information they need more quickly, and the document gains a more professional structure.