You open a completed document and click a selected chapter in the table of contents. However, the page number points to a completely different location. Additionally, a subchapter added during the final revisions is missing from the list. Does this mean you need to recreate the entire table of contents?
Fortunately, no. You simply need to use the update feature available in LibreOffice Writer.
The program will analyze the document structure again, retrieve heading titles, and recalculate page numbers. This means you do not have to manually correct individual entries.
In this guide, you will learn how to update the table of contents in LibreOffice Writer, refresh all indexes, and resolve problems that occur after making changes to a document.
Why Does the Table of Contents Need to Be Updated?
An automatic table of contents is generated based on the document structure. Writer uses headings, their levels, and information about the placement of text on pages.
However, as you continue editing the document, its content may change.
Updating the table of contents is necessary when, for example:
- You add new chapters or subchapters.
- You remove unnecessary sections of the document.
- You change heading titles.
- You move chapters to different locations.
- You insert images, charts, or tables.
- You change the font size.
- You modify page margins.
- You add page breaks.
- You change chapter numbering settings.
Each of these actions can affect the contents of the table of contents or its page numbers.
Therefore, it is important to remember that automatically generating a table of contents does not mean it is continuously updated while you write.
How to Update the Table of Contents in LibreOffice Writer
The fastest method is to use the context menu.
You do not need to open additional windows or reconfigure the entire table of contents.
Follow these steps:
- Open the document in LibreOffice Writer.
- Go to the page containing the table of contents.
- Right-click inside the table of contents.
- Select Update Index or Table of Contents.
- Check the chapter titles and page numbers.
Writer will regenerate the table of contents based on the current document structure.
New chapters will appear in the list, deleted entries will disappear, and page numbers will be recalculated.
Importantly, the program will preserve the table of contents settings, such as the number of levels, assigned styles, and entry configuration.
How to Update All Tables of Contents and Indexes
A lengthy document may contain more than one automatically generated list.
For example, an academic thesis may include a table of contents, a list of figures, a list of tables, and an alphabetical index.
Updating each element individually would be inconvenient.
Fortunately, Writer provides a feature for updating them all at once.
To use it:
- Open the Tools menu.
- Select Update.
- Click All Indexes and Tables.
- Wait for the update to finish.
- Check the contents of the generated lists.
This allows you to refresh all indexes and tables of contents in the document using a single command.
It is particularly useful before submitting an academic thesis, printing a report, or preparing technical documentation.
Does the Table of Contents Update Automatically?
LibreOffice Writer automatically generates a table of contents, but you should not assume that its contents will be refreshed immediately after every change.
If you add a new chapter or change the placement of text, the previously generated list may still contain outdated information.
Therefore, it is worth manually updating the table of contents after completing a substantial set of revisions.
You do not have to do this after every sentence you write. Simply refresh the table of contents after finishing a chapter or before saving the final version of the document.
How Does the Table of Contents Change After an Update?
Let’s look at a simple example.
Suppose you are preparing a software user manual. Initially, the table of contents looks like this:
1. Introduction ……………………….. 3
2. Installing the Program ………….. 5
3. Configuring Settings ……………. 8
4. Summary ………………………….. 12
While editing, you add a chapter about the user interface. At the same time, you expand the installation instructions.
After updating, the table of contents may look like this:
1. Introduction ……………………….. 3
2. Installing the Program ………….. 5
3. User Interface ……………………… 9
4. Configuring Settings ……………. 12
5. Summary ………………………….. 16
Writer has included the new chapter and recalculated the locations of the remaining elements.
If you use automatic heading numbering, the chapter numbers will also change.
There is no need to manually correct each entry.
How to Update Page Numbers in the Table of Contents
Sometimes all chapter titles are correct, but the page numbers do not match.
This can happen after changing margins, adding illustrations, or increasing the font size.
You do not have to correct the numbering manually.
Right-click inside the table of contents and select Update Index or Table of Contents.
Writer will recalculate the locations of headings within the document.
Remember that the update applies to the entire table of contents, not just the page numbers. This allows the program to incorporate changes to chapter titles and newly added subchapters at the same time.
How to Add a New Chapter to an Existing Table of Contents
Adding a new chapter does not require deleting the previously created table of contents.
The most important step is to apply the appropriate heading style.
Follow these steps:
- Enter the title of the new chapter.
- Place the cursor in its title.
- Apply the Heading 1 style.
- Write the chapter content.
- Return to the table of contents.
- Update it.
The new chapter should appear in the list.
If you are adding a subchapter, apply the Heading 2 style or another level corresponding to the document structure.
This allows Writer to correctly recognize the hierarchy of individual sections.
How to Change a Chapter Title in the Table of Contents
Suppose a chapter is titled “Basic Program Features.”
After expanding its content, you decide to rename it “The Most Important Features of LibreOffice Writer.”
Do not change the title directly in the table of contents.
Instead, go to the appropriate chapter and change its heading.
Then return to the table of contents and select the update command.
The program will retrieve the new title from the document.
This approach ensures consistency between the actual content and the list of chapters.
How to Remove a Chapter from the Table of Contents
The procedure depends on whether you want to delete the entire chapter or simply hide its title from the table of contents.
If the chapter is no longer needed, delete its content along with its heading. Then update the table of contents.
However, if you want to keep the text without including its title in the list, change the paragraph style or its outline level.
You can also create a separate style for headings that should remain outside the table of contents.
Remember that changing the outline level may also affect the visibility of that element in Navigator and the overall document structure.
How to Update the Table of Contents After Rearranging Chapters
When preparing a larger document, the order in which information is presented often changes.
For example, a chapter about configuring the program may be moved before the description of its features.
After making such a change, refresh the table of contents.
Writer will determine the new order of headings and assign their current page numbers.
If you use automatic chapter numbering, the program will also account for changes resulting from the new arrangement.
You do not need to recreate the table of contents from scratch.
Why Doesn’t a New Chapter Appear in the Table of Contents?
If a new chapter is still missing after an update, the problem is most likely related to its style or outline level.
Simply making text bold and increasing its font size is not enough for Writer to recognize it as part of the document structure.
First, place the cursor in the title of the missing chapter.
Check which paragraph style has been applied.
If you see an ordinary text style, assign the appropriate heading style.
Then update the table of contents again.
If you use custom paragraph styles, check whether they are included in the table of contents configuration or have the appropriate outline level assigned.
Why Do Subchapters Disappear After an Update?
The cause may be a limit on the number of levels included in the table of contents.
For example, the document contains first-, second-, and third-level headings. However, the table of contents settings allow only two levels to be displayed.
In this situation, third-level headings will not appear in the list.
To change this:
- Right-click the table of contents.
- Select Edit Index or Table of Contents.
- Open the Type tab.
- Increase the maximum number of levels included.
- Confirm the settings.
- Check the contents of the table of contents.
This allows you to adjust the level of detail in the list to match the document structure.
However, displaying every level is not always necessary. In short reports, a table of contents containing only the main chapters may be easier to read.
Why Are the Page Numbers Still Incorrect?
If updating the table of contents did not resolve the problem, check the document settings.
The cause may be custom page numbering settings, manual page breaks, or changes to page styles.
It is also worth making sure that you are actually using an automatic table of contents.
If the list was created manually, Writer will not be able to automatically recalculate its contents.
Also, check whether chapter numbering has been confused with page numbering.
For example, Chapter 5 may begin on page 18. These are two independent pieces of information.
After correcting the document settings, update the table of contents again.
If its length has changed and shifted the remaining content, check the page numbers and perform another update if necessary.
How to Check the Document Structure Before Updating
Navigator is a very useful tool.
It allows you to quickly display a list of all headings and check their hierarchy.
To open it:
- Press F5.
- Locate the Headings category.
- Expand the list of chapters.
- Check the order and levels of individual elements.
If a chapter is also missing from Navigator, check its paragraph style and outline level.
Navigator is particularly useful when working with documents containing dozens or hundreds of pages.
It makes it easier to identify structural errors without reviewing the entire text.
Does Updating the Table of Contents Change Its Appearance?
Properly configured styles should be preserved during an update.
This includes font size, indentation, spacing, and the placement of page numbers.
Problems may occur when the appearance of individual entries has been modified manually.
Such changes may be lost when the table of contents is regenerated.
Therefore, it is best to customize the appearance using paragraph styles assigned to individual table of contents levels.
If you want to use a different font, larger spacing, or additional indentation, modify the appropriate style.
This means you will not have to reformat the entire list after every update.
Why Do Manual Changes Disappear from the Table of Contents?
An automatic table of contents is generated based on information contained in the document.
If you manually change a chapter title or page number directly in the table of contents, the program may replace that information during the next update.
This is normal behavior for this feature.
The best solution is to correct information at its source.
Change chapter titles in the headings. Configure page numbering in the document settings. Customize the appearance of the table of contents using styles.
This way, all necessary changes will be preserved during the next update.
Does the F9 Key Update the Table of Contents?
The F9 key is primarily used to update fields in LibreOffice Writer.
It can be useful when refreshing dates, statistics, and other information retrieved from the document.
However, to update the table of contents, it is best to use the command specifically designed for that purpose.
Select Update Index or Table of Contents from the context menu or use Tools → Update → All Indexes and Tables.
This ensures that you are performing the correct operation.
How to Update Lists of Figures and Tables
Like a table of contents, an automatic list of figures or tables may need to be refreshed after changes are made to the document.
If you add a new photo with a caption, change a chart description, or delete a table, the previously generated list may contain outdated information.
Right-click the appropriate list and select the update command.
If you want to refresh all lists at once, use Tools → Update → All Indexes and Tables.
However, remember that new figures and tables must have the appropriate captions or other identifiers required by the configuration of the corresponding list.
How to Prepare the Table of Contents Before Exporting to PDF
Exporting a document to PDF should be one of the final stages of your work.
After saving the PDF file, the table of contents will not automatically adjust to subsequent changes in the Writer document.
Therefore, before exporting, follow these steps:
- Finish editing the text.
- Check the placement of images and tables.
- Verify page numbering.
- Update all indexes and tables of contents.
- Check chapter titles.
- Test clickable hyperlinks.
- Save the document in ODT format.
- Select File → Export As → Export as PDF.
- Open the finished file and check its contents.
If you make additional revisions later, update the table of contents in Writer again and export the document.
This will help you avoid sharing a file with incorrect page numbering.
How Often Should You Update the Table of Contents?
There is no single mandatory update frequency.
While writing, you can refresh the table of contents after completing each major chapter.
For shorter documents, updating it before finishing your work is usually sufficient.
It is worth developing the habit of updating all tables of contents and indexes before printing, exporting to PDF, or sending the document to other people.
This is a simple task that can prevent many corrections later.
Most Common Mistakes When Updating the Table of Contents
The first mistake is manually correcting page numbers. Such changes may disappear during the next update.
Another problem is using bold formatting instead of proper heading styles.
Some users delete the entire table of contents and recreate it from scratch, even though simply updating it would be sufficient.
It is also important to avoid exporting the document to PDF before completing changes to the page layout.
If the table of contents does not work correctly, first check the document structure, level settings, and paragraph styles. Only then should you consider recreating the table of contents.
Frequently Asked Questions
Does Updating the Table of Contents Delete Document Text?
No. Updating changes the contents of the generated table of contents. It does not remove chapters or subchapters from the document.
Do I Need to Create a New Table of Contents After Adding a Chapter?
No. Simply apply the appropriate heading style and update the existing table of contents.
Can I Update All Tables of Contents and Indexes at Once?
Yes. Select Tools → Update → All Indexes and Tables.
Does Updating the Table of Contents Change the Document’s Page Numbering?
The update itself does not change page numbering settings. It retrieves the current page numbers corresponding to the locations of headings. However, a change in the length of the table of contents may affect the layout of subsequent pages.
Can I Update the Table of Contents in a PDF File?
Not using Writer’s standard update feature. You need to modify the source document, update the table of contents, and export the PDF file again.
Does Updating the Table of Contents Preserve Its Formatting?
Yes, provided that its appearance has been configured using the table of contents settings and appropriate styles. Manual changes to individual entries may be lost.
Updating the table of contents in LibreOffice Writer allows you to quickly adjust the list of chapters to match the current contents of the document.
The simplest method is to right-click the table of contents and select Update Index or Table of Contents.
If the document contains several automatically generated lists, use Tools → Update → All Indexes and Tables.
Remember to apply appropriate heading styles and check the document structure using Navigator.
Before printing or exporting to PDF, always verify that the page numbers are up to date.
A properly configured table of contents does not require constant manual corrections. With just a few clicks, even a very lengthy document can maintain an organized structure and make it easier for readers to find the information they need.