Ask Your Question

Empty table of contents - even thought I set all the headings correctly

asked 2017-03-25 15:22:19 +0200

bawsi gravatar image

Idk what to do.. I have set my main headings as heading 1, and headings that are 1 level below them, as heading 2. When I insert the table of contents, all I get is this: screenshot of error

Any ideas?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2020-06-08 20:22:34 +0200

Phillip_M_Feldman gravatar image

When the "Table of Contents, Index or Bibliography" dialog opens, one must check the "Additional Styles" checkbox, click on the "Assign styles" button, and then click on the buttons to assign heading levels to table-of-contents levels. This functionality is nice, but the default settings don't make much sense.

edit flag offensive delete link more


Thank you. After a day of not being able to progress, your answer solved my problem. I had exported from Google Docs and couldn't understand why I had this problem with both ODT and DOCX. Very much appreciated!

TenLeftFingers gravatar imageTenLeftFingers ( 2020-07-26 22:44:35 +0200 )edit

Thank you. As I cannot upvote your answer I put a comment (I need 5 points).

houdini68 gravatar imagehoudini68 ( 2020-10-24 18:32:06 +0200 )edit

answered 2017-03-25 15:34:03 +0200

By default, ToC takes its content from outline levels of paragraphs, so first of all - check that your header paragraphs have outline level set to corresponding value. Normally, that should be done with applying header paragraph styles, but if the styles are edited to remove the levels (for unclear reason), or paragraphs themselves are formatted manually with same effect (after styles already applied), this may happen.

edit flag offensive delete link more



Note that for "header" you should read "heading".

You should also check out Tools - Outline numbering and make sure that Level 1 is linked to the Heading 1 style.

floris v gravatar imagefloris v ( 2017-03-25 21:32:51 +0200 )edit

This happen with every document downloaded like ODT from Google Docs (a bug), for some strange reason, for headings 1 to 6 only. Always have to fix going to where Floris point:

PabloAB gravatar imagePabloAB ( 2017-07-03 00:42:47 +0200 )edit

In libreoffice 6.0.7 I had to go to Tools > Chapter numbering to fix this issue. I had exactly the same situation as @PabloAB described after I've exported the document from google docs.

radio gravatar imageradio ( 2020-07-18 20:29:12 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2017-03-25 15:22:19 +0200

Seen: 6,268 times

Last updated: Jun 08 '20